From 6b8c878c0b41b127e6710f5e4d7c3bb0c8e52e3d Mon Sep 17 00:00:00 2001 From: Diona Katzlein Date: Thu, 9 Nov 2023 16:46:30 +0800 Subject: [PATCH] added some stuff --- css/style.css | 614 +++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 504 insertions(+), 110 deletions(-) diff --git a/css/style.css b/css/style.css index 9800afa..4fd753b 100644 --- a/css/style.css +++ b/css/style.css @@ -1,150 +1,544 @@ -body { - font-family: 'Courier New', Courier, monospace; +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-size: medium; + font-weight: normal; + font-family:Verdana, Geneva, Tahoma, sans-serif; + scroll-behavior: smooth; } -li { - list-style-type: none; +.header { + overflow: hidden; + background-color: #000; + padding: 20px 10px; } -a:link { - text-decoration: none; - color: black; +.header a { + float: left; + color: #fff; + text-align: center; + padding: 12px; + text-decoration: none; + font-size: 18px; + line-height: 25px; + border-radius: 4px; } -a:visited { - text-decoration: none; +.header a.logo { + font-size: 25px; + font-weight: bold; } -a:hover { - text-decoration: none; - color: brown; +.header a:hover { + background-color: #bee2d0a2; + color: #fff; } -a:active { - text-decoration: none; +.header a.active { + background-color: dodgerblue; + color: white; } -.header { - background-color:rgba(202, 179, 77, 0.521); - color: rgb(0, 0, 0); - height: 80px; +.header-right { + float: right; } -.header-logo { - float: left; - font-size: 36px; - padding: 20px 40px; +@media screen and (max-width: 500px) { + .header a { + float: none; + display: block; + text-align: left; + } + + .header-right { + float: none; + } } -.header-list li { - float: left; - padding: 33px 20px; +.img-app { + height: 32px; } -.header-right li { - float: right; - padding: 33px 20px; +/* Common styles */ +.title { + font-size: 25px; + margin: 10px 0; } -.img-app { - height: 40px; +.sub-title { + font-size: 20px; } -.main { - padding: 10px 80px; +.paragraph { + text-align: justify; + line-height: 30px; + color: #1f1e1e; } -.copy-container h1 { - font-size: 120px; +.paragraph sup { + font-size: 13px; } -.copy-container h2 { - font-size: 40px; +.mb-1 { + margin-bottom: 30px; } -.copy-container span { - color: brown; +.btn { + border: none; + border-radius: 5px; + padding: 10px 15px; + background-color: #1e9c9c; + color: white; + font-weight: 500; + cursor: pointer; + transition: background-color .3s ease-in-out; } -.contents { - height: auto; - margin-top: 100px; +.btn:hover { + background-color: #136767; } -.section-title { - border-bottom: 2px solid rgba(85, 209, 81, 0.781); - font-size: 28px; - padding-bottom: 15px; - margin-bottom: 50px; +.btn-reset { + background-color: white; + border: 1px solid gray; + color: black; } -.section-p { - border-bottom: 2px solid rgba(85, 209, 81, 0.781); - font-size: 12px; - padding-bottom: 15px; - margin-bottom: 50px; +.btn-reset:hover { + background-color: #c3c2c2; } -.contents-item { - float: left; - margin-right: 40px; +.d-hidden { + display: none; } -.contents-item p { - font-size: 24px; - margin-top: 30px; - } - - .contact-form { - padding-top: 100px; - } - - input { - width: 400px; - margin-top: 10px; - margin-bottom: 30px; - padding: 20px; - font-size: 18px; - border: 1px solid; - color: #dee7ec; - } +.error-message { + color: #ff0000; + font-size: 13px; + margin-top: 5px; +} - textarea { - width: 400px; - margin-top: 10px; - margin-bottom: 30px; - padding: 20px; - font-size: 18px; - border: 1px solid; - color: #dee7ec; - } - - .contact-submit { - background-color: #dee7ec; - color: #889eab; - } - - .footer { - background-color: #2f5167; - color: #fff; - height: 100px; - padding: 60px; - } - - .footer-logo { - float: left; - font-size: 32px; - } +/* Home styles */ +.container { + margin: 30px 5%; +} - .img-footer { - height: 200px; - padding-bottom: 20px; - } - - .footer-list { - float: right; - } - - .footer-list li { - padding-bottom: 20px; - } \ No newline at end of file +.form { + background-color: #dbdbdbcd; + padding: 20px; + border-radius: 10px; + display: flex; + flex-direction: column; + gap: 20px; + margin: 10px 0; +} + +.form .form-label { + display: block; + margin-bottom: 0.5rem; +} + +.form .form-input { + display: block; + width: 100%; + padding: 0.375rem 0.75rem; + font-size: 1rem; + font-weight: 400; + line-height: 1.5; + color: black; + background-color: white; + background-clip: padding-box; + border: 1px solid #c3c2c2; + appearance: none; +} + +.form .input-group { + position: relative; + display: flex; + flex-wrap: wrap; + align-items: stretch; + width: 100%; +} + +.form .input-group > .form-input { + position: relative; + flex: 1 1 auto; + width: 1%; + min-width: 0; +} + +.form .input-group-desc, +.form .input-group-icon { + display: flex; + align-items: center; + padding: 0.375rem 0.75rem; + font-size: 1rem; + font-weight: 400; + line-height: 1.5; + color: white; + text-align: center; + white-space: nowrap; + border: 1px solid; +} + +.form .input-group-desc { + background-color: #1e9c9c; + border-color: #db304c; + border-radius: 0 5px 5px 0; +} + +.form .input-group-icon { + background-color: #c3c2c2; + border-color: #59db94e7; + border-radius: 5px 0 0 5px; +} + +.features { + margin-left: 20px; + line-height: 30px; + color: #1f1e1e; +} + +/* Result styles */ +.sub-container { + background-color: #dbdbdbcd; + padding: 20px 0; + display: flex; + flex-direction: column; + align-items: center; +} + +.result-title { + font-size: 18px; +} + +.result-bmi { + font-size: 40px; +} + +.result-desc { + margin: 10px 0 20px; + font-size: 15px; +} + +.button-cta { + display: flex; + align-items: center; + gap: 10px; + margin: 10px 0; +} + +.button-cta button { + font-size: 12px; +} + +.list-risk { + list-style: none; + text-align: center; +} + +.download-app { + display: flex; + flex-direction: column; + align-items: center; + margin: 10px 0; +} + +.img { + width: 300px; + width: 100px; + cursor: pointer; + border-radius: 8px; +} + +.text-input, +.radio-button, +.check-boxes { + margin-bottom: 13px; +} + +.text-input label, +.radio-button label, +.check-boxes label { + display: block; + margin-bottom: 3px; + font-family: 'Josefin Sans', sans-serif; + font-size: 14px; + font-weight: 600; +} + +.radio-button label, +.check-boxes label { + margin-bottom: 7px; + font-weight: 900; +} + +.text-input input, +.text-input textarea, +.text-input select { + padding: 10px 10px; + display: block; + width: 100%; + border: solid 3px #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.text-input select { + width: 100%; +} + +.text-input textarea { + height: 100px; +} + +.sqr-input .text-input, +.sqr-radio-input .radio-button, +.sqr-check-input .check-boxes { + float: left; + width: 45%; +} + +.sqr-input .text-input:nth-child(1), +.sqr-radio-input .radio-button:nth-child(1), +.sqr-check-input .check-boxes:nth-child(1) { + margin-right: 10%; +} + +.cub-input .text-input { + float: left; + width: 26.66%; +} + +.cub-input .text-input:nth-child(1), +.cub-input .text-input:nth-child(2) { + margin-right: 10%; +} + +.ns-radio-btn input[type="radio"], +.ns-check-box input[type="checkbox"] { + visibility: hidden; +} + +.ns-radio-btn { + width: 20px; + height: 20px; + display: inline-block; + float: left; + margin: 3px 7px 0 0; + cursor: pointer; + position: relative; + -webkit-border-radius: 100%; + -moz-border-radius: 100%; + border-radius: 100%; + border: 3px solid #ccc; + box-shadow: 0 0 1px #ccc; + background: rgb(255, 255, 255); + background: -moz-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(47%, rgba(246, 246, 246, 1)), color-stop(100%, rgba(237, 237, 237, 1))); + background: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: -o-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: -ms-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed', GradientType=0); +} + +.checkedRadio { + -moz-box-shadow: inset 0 0 5px 1px #ccc; + -webkit-box-shadow: inset 0 0 5px 1px #ccc; + box-shadow: inset 0 0 5px 1px #ccc; +} + +.ns-radio-btn i { + border: 1px solid #E1E2E4; + width: 10px; + height: 10px; + position: absolute; + left: 4px; + top: 4px; + -webkit-border-radius: 100%; + -moz-border-radius: 100%; + border-radius: 100%; +} + +.checkedRadio i { + background-color: #898A8C; +} + +.ns-check-box { + width: 22px; + height: 22px; + cursor: pointer; + display: inline-block; + margin: 2px 7px 0 0; + position: relative; + overflow: hidden; + box-shadow: 0 0 1px #ccc; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + background: rgb(255, 255, 255); + background: -moz-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(47%, rgba(246, 246, 246, 1)), color-stop(100%, rgba(237, 237, 237, 1))); + background: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: -o-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: -ms-linear-gradient(top, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 47%, rgba(237, 237, 237, 1) 100%); + filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed', GradientType=0); + border: 1px solid #ccc; +} + +.ns-check-box i { + background: url('http://cdn1.iconfinder.com/data/icons/mimiGlyphs/16/check_mark.png') no-repeat center center; + position: absolute; + left: 3px; + bottom: -15px; + width: 16px; + height: 16px; + opacity: .5; + -webkit-transition: all 400ms ease-in-out; + -moz-transition: all 400ms ease-in-out; + -o-transition: all 400ms ease-in-out; + transition: all 400ms ease-in-out; + -webkit-transform: rotateZ(-180deg); + -moz-transform: rotateZ(-180deg); + -o-transform: rotateZ(-180deg); + transform: rotateZ(-180deg); +} + +.checkedBox { + -moz-box-shadow: inset 0 0 5px 1px #ccc; + -webkit-box-shadow: inset 0 0 5px 1px #ccc; + box-shadow: inset 0 0 5px 1px #ccc; + border-bottom-color: #fff; +} + +.checkedBox i { + bottom: 2px; + -webkit-transform: rotateZ(0deg); + -moz-transform: rotateZ(0deg); + -o-transform: rotateZ(0deg); + transform: rotateZ(0deg); +} + +.radio-button ul li, +.check-boxes ul li { + display: inline-block; + vertical-align: top; + margin-right: 30px; + margin-bottom: 7px; +} + +.sqr-radio-input .radio-button ul li, +.sqr-check-input .check-boxes ul li { + margin-right: 15px; +} + +.radio-button ul li span { + display: inline-block; + margin-top: 8px; + font-family: 'Josefin Sans', sans-serif; +} + +.check-boxes ul li span { + display: inline-block; + vertical-align: top; + margin-top: 5px; + font-family: 'Josefin Sans', sans-serif; +} + +.sqr-input .text-input .sqr-input .text-input:nth-child(1) { + margin-right: 15%; + width: 40%; +} + +.margin-bottom-zero { + margin-bottom: 0px; +} + +footer{ + position: bottom; + bottom: 0; + left: 0; + right: 0; + background: #009736; + height: auto; + width: 100vw; + + padding-top: 40px; + color: #000; +} + +.footer-content{ + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + text-align: center; +} +.footer-content h3{ + font-size: 2.1rem; + font-weight: 500; + text-transform: capitalize; + line-height: 3rem; +} +.footer-content p{ + max-width: 500px; + margin: 10px auto; + line-height: 28px; + font-size: 14px; + color: #000; +} + +.footer-bottom{ + background: #EE2A35; + width: 100vw; + padding: 20px; +padding-bottom: 40px; + text-align: center; +} +.footer-bottom p{ +float: left; + font-size: 14px; + word-spacing: 2px; + text-transform: capitalize; +} +.footer-bottom p a{ +color:#000000; +font-weight: bold; +font-size: 16px; +text-decoration: none; +} +.footer-bottom span{ + text-transform: uppercase; + opacity: .4; + font-weight: 200; +} +.footer-menu{ +float: right; + +} +.footer-menu ul{ +display: flex; +} +.footer-menu ul li{ +padding-right: 10px; +display: block; +} +.footer-menu ul li a{ +color: #000; +text-decoration: none; +} +.footer-menu ul li a:hover{ +color: #27bcda; +} + +@media (max-width:500px) { +.footer-menu ul{ +display: flex; +margin-top: 10px; +margin-bottom: 20px; +} +} \ No newline at end of file