update,
This commit is contained in:
560
givefortune/task1/testweb/style.css
Normal file
560
givefortune/task1/testweb/style.css
Normal file
@@ -0,0 +1,560 @@
|
||||
* {
|
||||
font-family: "Mali", cursive;
|
||||
font-size: small;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.big-container {
|
||||
background-image: ;
|
||||
background-color: contain;
|
||||
border-radius: 50px;
|
||||
grid-gap: 20px;
|
||||
padding: 5px;
|
||||
width: 1000px;
|
||||
height: 750px;
|
||||
display: grid;
|
||||
grid-template-columns: 32% 30% 45%;
|
||||
grid-template-rows: 25% 45% 18%;
|
||||
}
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
|
||||
}
|
||||
|
||||
.welcome {
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
border-radius: 50px;
|
||||
/* width: 75%; */
|
||||
/* grid-row: 1 / 2; */
|
||||
padding: 20px 40px;
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
}
|
||||
|
||||
.part1 {
|
||||
background-color: #ffffff;
|
||||
|
||||
/* grid-row: 2 / 4; */
|
||||
|
||||
/* display: flex; */
|
||||
/* flex-direction: column; */
|
||||
/* justify-content: center; */
|
||||
/* align-items: center; */
|
||||
|
||||
|
||||
padding: 20px 20px;
|
||||
/* width: 75%; */
|
||||
/* height: 110%; */
|
||||
|
||||
border-radius: 50px;
|
||||
/* line-height: 10px; */
|
||||
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
}
|
||||
|
||||
.part1-body {
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 15px;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.form-group label {
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
font-family: "Mali", cursive;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
background-color: #f0f0f0;
|
||||
padding: 5px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #707070;
|
||||
width: calc(100% - 10px);
|
||||
|
||||
}
|
||||
|
||||
.bmrbtn {
|
||||
border-radius: 50px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: #9162f3;
|
||||
color: white;
|
||||
width: 70%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#edit {
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: #d9caf8;
|
||||
width: 90%;
|
||||
font-weight: bold;
|
||||
margin: 30px, 0;
|
||||
}
|
||||
|
||||
.threeBtn {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
font-size: 20px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.three {
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
border: none;
|
||||
background-color: #9ffd98;
|
||||
width: 40%;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#save {
|
||||
border-radius: 10px;
|
||||
padding: 5px;
|
||||
border: none;
|
||||
background-color: #000000;
|
||||
width: 50%;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
margin-top: 40px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.old-part2 {
|
||||
background-color: #74f5fd;
|
||||
border-radius: 50px;
|
||||
padding: 20px;
|
||||
grid-column: 2 / 3;
|
||||
grid-row: 1 / 3;
|
||||
height: 40%;
|
||||
width: 100%;
|
||||
line-height: 15px;
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
}
|
||||
|
||||
.part2 {
|
||||
background-color: #74f5fd;
|
||||
border-radius: 50px;
|
||||
padding: 20px;
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
/* width: 100%; */
|
||||
/* max-width: 300px; */
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.part2>div>div{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content:center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.part2 div.input-label {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.part2 input {
|
||||
margin-top:0.5rem;
|
||||
}
|
||||
|
||||
.calorie {
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
padding: 3px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(180, 134, 134, 0.3);
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.apiInput {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 5px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.apiInput select {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.foodbtn {
|
||||
border-radius: 50px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: #000000;
|
||||
color: white;
|
||||
width: 70%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#part2result {
|
||||
background-color: #9ffd98;
|
||||
min-height: 300px;
|
||||
padding: 15px 15px;
|
||||
border-radius: 50px;
|
||||
/* grid-column: 2 / 3; */
|
||||
/* grid-row: 2 / 4; */
|
||||
/* width: 85%; */
|
||||
/* height: 93%; */
|
||||
/* margin-top: 60px; */
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
}
|
||||
|
||||
#result-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
#foodname {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.line {
|
||||
font-size: 16px;
|
||||
border-bottom: 2px dotted #42329b;
|
||||
width: 80%;
|
||||
margin-bottom: -1px;
|
||||
color: #707070;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#recordbtn button {
|
||||
border-radius: 15px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: #000000;
|
||||
width: 80%;
|
||||
color: #ffffff;
|
||||
margin-top: 20px;
|
||||
font-weight: bold;
|
||||
margin: 10px, 0;
|
||||
}
|
||||
|
||||
.intakeListbtn {
|
||||
border-radius: 15px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: #d9caf8;
|
||||
width: 70%;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.recorddate {
|
||||
border-radius: 15px;
|
||||
padding: 10px;
|
||||
border: none;
|
||||
background-color: #844eda;
|
||||
width: 180px;
|
||||
height: 50px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.nameCal {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
background-color: #ffffff;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.calBar {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.part3 {
|
||||
background-color: #ffffff;
|
||||
border-radius: 50px;
|
||||
padding: 8px 30px;
|
||||
min-height: 300px;
|
||||
/* grid-column: 3 / 4; */
|
||||
/* grid-row: 1 / 3; */
|
||||
/* height: 41vh; */
|
||||
/* width: 40vh; */
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.date {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.datebtn {
|
||||
border: 0px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#dateContainer {
|
||||
/* position: absolute; */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
#currentDate {
|
||||
font-size: 20px; /* Change the font size as desired */
|
||||
font-family: "Mali", cursive;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 50px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.container {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
margin: 50px auto;
|
||||
}
|
||||
.barcontainer {
|
||||
background-color: #181818;
|
||||
border-radius: 20px;
|
||||
position: relative;
|
||||
transform: translateY(-50%);
|
||||
top: 80px;
|
||||
margin-left: 10px;
|
||||
width: 20px;
|
||||
height: 150px;
|
||||
float: left;
|
||||
border: darken(#98afc7, 40%) 3px solid;
|
||||
}
|
||||
|
||||
.bar {
|
||||
background-color: #9bc9c7;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
border-radius: 20px;
|
||||
border-top: 6px solid #fff;
|
||||
box-sizing: border-box;
|
||||
animation: grow 1.5s ease-out forwards;
|
||||
transform-origin: bottom;
|
||||
}
|
||||
@keyframes grow {
|
||||
from {
|
||||
transform: scaleY(0);
|
||||
}
|
||||
}
|
||||
.today {
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#cal-value {
|
||||
position: relative;
|
||||
font-size: x-large;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#back {
|
||||
border-radius: 10px;
|
||||
padding: 5px;
|
||||
border: none;
|
||||
background-color: #ffffff;
|
||||
width: 30%;
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
.part4 {
|
||||
background-color: #ffffff;
|
||||
border-radius: 50px;
|
||||
padding: 8px 20px;
|
||||
/* grid-column: 3 / 4; */
|
||||
/* grid-row: 2 / 3; */
|
||||
/* height: 50vh; */
|
||||
/* width: 40vh; */
|
||||
/* position: relative; */
|
||||
/* top: 90px; */
|
||||
/* right: 3px; */
|
||||
/* margin-top: 50px; */
|
||||
box-shadow: 5px 5px 3px 0px rgba(209, 209, 209, 0.7);
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.weekly-report {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
}
|
||||
/* button {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 30px;
|
||||
color: #000;
|
||||
padding: 0;
|
||||
margin: 0 30px;} /* Add margin between buttons */
|
||||
|
||||
|
||||
.gender-selector {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.form-group .nickname-label{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.form-footer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tile {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 3rem;
|
||||
}
|
||||
|
||||
.tile>div{
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.weight-group {
|
||||
|
||||
}
|
||||
|
||||
.weight-group input {
|
||||
margin-bottom: 5px;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.result-header {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction : row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.result-header div {
|
||||
font-size:2rem;
|
||||
}
|
||||
|
||||
.result-row {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px dotted grey;
|
||||
}
|
||||
|
||||
.result-row div {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.foodresult {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#result-container div.result-footer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.content-container{
|
||||
width: 1000px;
|
||||
height: 750px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
|
||||
}
|
||||
/*
|
||||
.content-container div {
|
||||
width: 33%;
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
} */
|
||||
|
||||
.content-column {
|
||||
width: 33%;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.weekly-report-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content:space-between;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.weekly-report-container p{
|
||||
font-weight: bold;
|
||||
}
|
Reference in New Issue
Block a user