From 679935dd597e95368a5ec2914c982f813a9b8c18 Mon Sep 17 00:00:00 2001 From: fuludu onome Date: Sun, 30 Jul 2023 12:39:08 +0100 Subject: [PATCH] landing dom tasl --- submissions/onomeFuludu/DOM/landingDOM.js | 66 +++ submissions/onomeFuludu/css/landing.css | 506 +++++++++------------- submissions/onomeFuludu/css/landing.html | 192 +++++--- 3 files changed, 405 insertions(+), 359 deletions(-) create mode 100644 submissions/onomeFuludu/DOM/landingDOM.js diff --git a/submissions/onomeFuludu/DOM/landingDOM.js b/submissions/onomeFuludu/DOM/landingDOM.js new file mode 100644 index 000000000..cff5e6b66 --- /dev/null +++ b/submissions/onomeFuludu/DOM/landingDOM.js @@ -0,0 +1,66 @@ +var userSelection = document.getElementById("select-state"); +var errorBlock = document.querySelector(".error-block"); +var submitForm = document.getElementById('submitForm') +var submitForm1 = document.getElementById('submitForm1') +var submitForm2 = document.getElementById('submitForm2') +var submitForm13 = document.getElementById('submitForm3') + +function Validate() { + if (userSelection.value == "") { + errorBlock.innerHTML = "Please select your prefer location!" + return false + } else { + errorBlock.innerHTML = ""; + return true; + } +} + +function SubmitInput() { + return Validate(); +} + +submitForm.addEventListener('click', () => { + if (userSelection.value == "") { + errorBlock.innerHTML = "please select your prefer location" + return false; + } else { + location.href = "./vendor.html"; + return true; + } +}) + +submitForm1.addEventListener('click', () => { + if (userSelection.value == "") { + errorBlock.innerHTML = "please select your prefer location" + return false; + } else { + location.href = "./vendor.html"; + return true; + } +}) + +submitForm2.addEventListener('click', () => { + if (userSelection.value == "") { + errorBlock.innerHTML = "please select your prefer location" + return false; + } else { + location.href = "./vendor.html"; + return true; + } +}) + +submitForm3.addEventListener('click', () => { + if (userSelection.value == "") { + errorBlock.innerHTML = "please select your prefer location" + return false; + } else { + location.href = "./vendor.html"; + return true; + } +}) + +submitForm.addEventListener('click', SubmitInput); +submitForm1.addEventListener('click', SubmitInput); +submitForm2.addEventListener('click', SubmitInput); +submitForm3.addEventListener('click', SubmitInput); + diff --git a/submissions/onomeFuludu/css/landing.css b/submissions/onomeFuludu/css/landing.css index 4d4067a9e..08b4adf1d 100644 --- a/submissions/onomeFuludu/css/landing.css +++ b/submissions/onomeFuludu/css/landing.css @@ -1,358 +1,282 @@ -body{ - margin-left: 2px; -} -h4{ - position: absolute; - padding: 3px; - float: left; - margin-top: 18px; + +body { + max-width: 1240px; + margin: 0px auto; } -ul{ - width: auto; - float: right; - margin-top: 2px; + +.header-container { + margin-top: 50px; + display: flex; + justify-content: space-between; } -li{ - display: inline-block; - padding: 15px 30px; +.header-container ul { + display: flex; + list-style: none; + } - .head{ - margin-left: 40%; - } +.header-container ul li { + padding: 10px 10px; + text-decoration: none; +} -.st{ - margin-left:-8%; - opacity: 0.8; +.header-container ul li a { + text-decoration: none; + color: #696969; + font-weight: 400; } -.in{ - width:90%; - height:30px; - border-radius:4px; +.error-block { + color: red; + font-size: 16px; + } -.comp{ -display: flex; -padding: 2px; + +.select-state{ + color: red; } -.com{ - margin-left: 20px; - width: 25%; +.header-container ul .link-item a{ + color:#AD4C4C ; + border: 1px solid #AD4C4C; + padding: 5px; + border-radius: 5px; } -.omp{ - display: flex; -padding: 2px; +.logo-container { + font-weight: 500; + font-style: normal; + font-size: 20px; + line-height: 30px; } -.mp{ -width: 75%; -margin-left: 30px; +.logo-container span{ + color: #AD4C4C; } -.we{ - margin-left:38%; - } + .banner-container { + margin-top: 100px; +} - .tat{ - margin-top: 10%; - margin-left: 44%; - } -.s{ - display: flex; - justify-content: center; - margin-top: 6.5%; - margin-left: 50px; +.banner-heading { + text-align: center; } -.sm{ - padding: -90px; - margin: -80px; +.banner-paragraph { + text-align: center; } -.spi{ - float:right; margin-top:-19px; +.banner-heading { + font-weight: 600; + font-size: 40px; + margin-top: 10px; + } -@media screen and (max-width: 600px) { - - ul{ - width: auto; - margin-right:6%; - margin-top: 15px; - } +.banner-paragraph { + font-weight: 400; + font-style: normal; + font-size: 20px; + margin-top: -30px; - li{ - display: inline-block; - padding: 3px; - } - - .head{ - margin-left: 1%; - } - .st{ - margin-left:-1%; } -.in{ - width: 80%; + +#address-container { + margin-top: 60px; } -.comp{ - display: block; + +#address-container .select-container { + width: 100%; + height: 40px; padding: 2px; - - } + border: 1px solid #C4C4C4; + border-radius: 5px; +} - .com{ - border: 1px solid rgba(187, 176, 176, 0.8); - border-radius: 3px; - width: 80%; - } +.food-container{ + margin-top: 42px; +} - .we{ - margin-left: 20%; - } +.food-container hr { + color: #F2F2F2; +} - .omp{ - display: block; - margin-left: 10%; - } - - .tat{ - margin-top: -3%; - margin-left: 35%; - } +.food-items { + display: flex; + justify-content: space-between; + flex-wrap: wrap; +} -.s{ - margin-top: 25%; - margin-left: 34%; +.item-list { + width: 230px; + height: 169px; + box-shadow: 0px 0px 3px 1.5px rgba(0, 0, 0, 0.1); + padding: 30px; } -.spit{ - position: absolute; - top:310%; - left:20%; - opacity: 0.7; +.services-container { + margin-top: 60px; } -.spi{ -position: absolute; -top: 320%; -left: 20%; -opacity: 0.7; +.services-container h3 { + text-align: center; + font-size: 30px; + font-weight: 600; + line-height: 45px; + color: #4E4D4D; } +.service-container { + display: flex; + justify-content: space-between; + flex-wrap: wrap; } -@media screen and (min-width: 768px) { - - ul{ - width: auto; - margin-top: 2px; - margin-right: 19%; - } - - li{ - display: inline-block; - padding: 7px 10px; - } - - .head{ - margin-left: 25%; - } +.service-item h4 { + color: #696969; + text-align: center; +} - .st{ - margin-left:-8%; - opacity: 0.8; - } - - .in{ - width:80%; - height:30px; - border-radius:4px; - } - .comp{ - display: flex; - padding: 2px; - margin-left:-3%; - } - - .com{ - margin-left: 20px; - width: 19%; - } - - .omp{ - display: flex; - padding: 2px; - margin-left:-4.5%; - } - - .mp{ - width: 25%; - margin-left: 30px; - } - - .we{ - margin-left:28%; - } - - .tat{ - margin-top: 2%; - margin-left: 34%; - } - .s{ - display: flex; - justify-content: center; - margin-top: 9.5%; - margin-left: 5px; - } - .sm{ - padding: -90px; - margin: -80px; - } - - .spi{ - margin-top:-19px; - margin-right: 10%; - } +.service-item h4{ + font-weight: 500; + font-style: normal; + font-size: 25px; + line-height: 37.5px; } -@media screen and (min-width: 1200px){ - ul{ - width: auto; - margin-right:5%; - margin-top: 15px; - } +.service-item p { + margin-top: -25px; + color: #696969; +} - li{ - display: inline-block; - padding: 3px; - } - - .head{ - margin-left: 1%; - } - .st{ - margin-left:-1%; +.footer-container h3 { + text-align: center; } -.in{ - width: 80%; + +.footer-content-1 { + display: flex; + justify-content: center; } -.comp{ - display: block; - padding: 2px; - + +.footer-items { + padding: 10px; +} + +.footer-content-2 { + display: flex; + justify-content: space-between; + margin-top: 20px; + flex-wrap: wrap; +} + +@media screen and (max-width: 540px){ + .header-container h3 { + margin-left: 10px; + } + .food-items { + margin-left: 100px; + padding: 10px; } - .com{ - border: 1px solid rgba(187, 176, 176, 0.8); - border-radius: 3px; - width: 80%; + .service-item { + margin-left: 70px; } - .we{ - margin-left: 20%; + #address-container .select-container{ + width: 90%; + margin-left: 15px; } - .omp{ - display: block; - margin-left: 15%; + #address-container h4 { + margin-left: 10px; } - - .tat{ - margin-top: -3%; - margin-left: 35%; - } -.s{ - margin-top: 25%; - margin-left: 34%; -} + .footer-container.footer-heading { + margin-left: 25px; + } + + .footer-content-2 .footer-items-2 { + margin-left: 130px; -.spit{ - position: absolute; - top:310%; - left:20%; - opacity: 0.7; -} + } -.spi{ -position: absolute; -top: 320%; -left: 20%; -opacity: 0.7; -} + .footer-content-2 .footer-items-3 { + margin-left: 70px; + } + } -@media screen and (min-width: 1200px) { - - ul{ - width: auto; - float: right; - margin-top: 2px; +@media screen and (max-width: 360px) { + .header-container h3 { + margin-left: 10px; } - - li{ - display: inline-block; - padding: 15px 30px; + .banner-heading { + text-align: inherit; + margin-left: 10px; + font-size: 25px; + margin-top: -50px; + + } + .banner-paragraph { + text-align: start; + font-size: 16px; + padding-top: 7px; + margin-left: 10px; + } - - .head{ - margin-left: 40%; - } - .st{ - margin-left:-8%; - opacity: 0.8; + .header-container ul li { + margin-top: -2px; } - - .in{ - width:90%; - height:30px; - border-radius:4px; + + #address-container .select-container{ + width: 90%; + margin-left: 10px; + margin-top: -5px; + } - .comp{ - display: flex; - padding: 2px; + #address-container h4 { + margin-left: 10px; + margin-top: -5px; } - - .com{ - margin-left: 20px; - width: 25%; + + .item-list { + width: 200px; + margin-top: 20px; } - - .omp{ - display: flex; - padding: 2px; + + .food-container h4 { + margin-left: 10px; + + } + .food-items { + margin-left: 35px; + padding: 10px; } - - .mp{ - width: 75%; + + .service-container{ margin-left: 30px; - } - - .we{ - margin-left:38%; - } - - .tat{ - margin-top: 10%; - margin-left: 44%; - } - .s{ - display: flex; - justify-content: center; - margin-top: 6.5%; - margin-left: 50px; - } - .sm{ - padding: -90px; - margin: -80px; - } - - .spi{ - float:right; margin-top:-19px; - } -} \ No newline at end of file + } + + .service-item { + margin-left: 0px; + } + + + .footer-container.footer-heading { + margin-left: 25px; + } + + .footer-content-2 .footer-items-2 { + margin-left: 45px; + } + + .footer-content-2 .footer-items-3 { + margin-left: 20px; + font-size: 14px; + } + +} + + diff --git a/submissions/onomeFuludu/css/landing.html b/submissions/onomeFuludu/css/landing.html index 9fea30afe..a68911bb4 100644 --- a/submissions/onomeFuludu/css/landing.html +++ b/submissions/onomeFuludu/css/landing.html @@ -1,79 +1,135 @@ - + + - Document - + Responsive E-commerce Landing Page + -
-

FoodBag

- -





+ -
-

FoodBag

-

Anything food, we have you covered.

-


-

- - - - -
-

pick an interest





-
-
-
Fast food
-

All sorrows are less with bread

-
-
-
Vegetables & Fruits
-

May not want it,but good for you

-
-
-
Drinks & Cocktails
-

I feel sad for those who dont drink

-
-
-
Resturants
-

All sorrows are less with bread

-
-
-



-

How we serve you

-
-
-
-
Tell us where you are
-

select the location you want us to deliver

-
-
-
Tell us what you want
-

Browse the type of food that interests you

+ +
+

FoodBag

+ + + +
+ +
+ + + + + + + +
+

Where are you?

+ + +
+ + + + +
+

Pick an interest

+
+
+ +
Fast food
+

All sorrows are less with bread.

+
+
+ +
Vegetables & Fruits
+

Vegetables & Fruits

+
+
+ +
Drinks & Cocktails
+

I feel sad for those who don't drink.

+
+
+ +
Resturants
+

All sorrows are less with bread.

+
+
+
+
+
+ + + + +
+

How we serve you

+
+
+ world in search +

Tell us where you are

+

Select the location you want us to deliver.

+
+
+ world in search +

Tell us what you want

+

Browse the type of food that interest you.

+
+
+ world in search +

We’ll come running

+

Your order will be delivered to you in no time.

+
+
+
+ +
+ + + + + + \ No newline at end of file