diff --git a/css/index.css b/css/index.css index 21442c782..59fd98b5d 100644 --- a/css/index.css +++ b/css/index.css @@ -52,9 +52,6 @@ table { } html { - max-width: 1920px; - min-width: 428px; - width: 100%; font-size: 62.5%; } @@ -63,8 +60,9 @@ body { line-height: 1.5; } -h1, h2, h3, h4, h5, h6, p, a, i { +h1, h2, h3, h4, h5, h6, p, a, i ,label, small{ text-decoration: none; + color: rgb(225, 239, 230); } h1 { @@ -73,6 +71,7 @@ h1 { h2 { font-size: 6rem; + padding: 1rem 0; } h3 { @@ -80,7 +79,13 @@ h3 { } p, a { - font-size: 3rem; + font-size: 2.5rem; +} +button, input, label { + font-size: 2rem; +} +small { + font-size: 1rem; } /* header section */ @@ -91,6 +96,23 @@ header { background-size: cover; background-position: center; background-repeat: no-repeat; + text-align: center; +} +.header-container { + background-color: rgb(0, 4, 17, .8); + display: flex; + flex-direction: column; + +} +.header-container nav { + display: flex; + justify-content: space-around; +} +.header-container nav a { + padding: 1rem 4%; +} +.header-container .icons a { + padding: 1rem 1%; } /* spacers */ @@ -108,15 +130,23 @@ header { /* gallery section */ .gallery { width: 100%; - height: 100vh; text-align: center; background-color: rgb(0, 4, 17); } +.gallery-container { + display: flex; + flex-flow: row wrap; + align-items: center; +} + +.gallery img { + margin: 1rem auto; + width: 30%; +} /* about us section */ .about { width: 100%; - height: 75vh; text-align: center; background-image: url("../img/staff-cooks.jpg"); background-size: cover; @@ -127,18 +157,16 @@ header { .about-container { height: 100%; display: flex; - flex-wrap: wrap; + flex-flow: column wrap; justify-content: center; align-items: center; background-color: rgb(0, 4, 17, .8); -} - -.about h2 { - width: 100%; + padding: 2rem; } .about-container .text { - width: 50%; + width: 60%; + padding: 10rem 0; } /* contact us section */ @@ -191,41 +219,91 @@ header { /* footer section */ footer { width: 100%; - height: 15vh; - padding-top: 2.5vh; - font-size: 3rem; + padding: 2rem; + background-color: rgb(0, 4, 17); + display: flex; + flex-flow: row wrap; } - -/* mobile media query */ -@media (max-width: 428px) { - /* header section */ +footer form { + flex-basis: 25%; + display: flex; + flex-flow: wrap; + justify-content: center; +} +footer form label{ + flex-basis: 100%; + text-align: center; + padding: 1rem; +} +footer form input { + flex-basis: 75%; +} +footer form button { + padding: 0.5rem; + flex-basis: 25%; + +} +footer nav { + flex-basis: 75%; + display: flex; + justify-content: space-around; +} - /* gallery section */ - .gallery { - height: auto; +footer nav a { + padding-bottom: 3rem; +} + +footer small { + flex-basis: 100%; + text-align: right; + margin-right: 10%; +} +@media screen and (max-width: 1440px) { + .contact a { + font-size: 2rem; } - - /* about us section */ + footer form input { + flex-basis: 100%; + } + footer form button { + flex-basis: 100%; + } + footer form { + flex-basis: 35%; + } + footer nav { + flex-basis: 65%; + } +} - .about { - height: 200vh; +/* mobile media query */ +@media screen and (max-width: 800px) { + p, a { + font-size: 2rem; } - - .about h2 { - width: 100%; - padding-top: 5vh; + h1 { + font-size: 4.5rem; } - - .about-container .text { - width: 85%; + h2 { + font-size: 5.5rem; } - - /* contact us section */ - .contact h3 { - padding-top: 2.5vh; + /* header section */ + header h1 span { + display: block; } - + header nav { + flex-flow: column wrap ; + } + /* gallery section */ + .gallery-container { + flex-direction: column; + } + .gallery img { + width: 70%; + margin: 1rem auto; + } + /* about section */ .info { flex-wrap: wrap; } @@ -243,11 +321,92 @@ footer { width: 100%; padding-bottom: 2.5vh; } + /* footer section */ + footer { + flex-flow: column wrap; + align-items: center; + } + footer nav { + flex-flow: column; + align-items: center; + padding: 2rem 0; + } + footer nav a { + padding-bottom: 1rem; + } + footer small { + margin: 0; + text-align: center; + } + +} + +@media screen and (max-width: 428px) { + h2 { + font-size: 5rem; + } + /* header section */ + + h1 { + font-size: 4rem; + } + + h3 { + font-size: 4rem; + } + header h1 span { + display: block; + } + + /* gallery section */ + + .gallery img { + width: 100%; + margin: 1rem auto; + } + + /* about us section */ + + .about { + height: 200vh; + } + + .about h2 { + width: 100%; + padding-top: 4vh; + } + .about-container { + padding: 0; + } + + .about-container .text { + width: 90%; + padding: 5vh 0; + } + + /* contact us section */ + .contact h3 { + padding-top: 2.5vh; + } + + /* footer section */ footer { - height: auto; padding-top: 2.5vh; + } +} + + + +@media screen and (max-width:350px) { + h2 { + font-size: 4rem; + } + h3 { + font-size: 3rem; + } + p { font-size: 2rem; } } diff --git a/css/menu.css b/css/menu.css index 9aba6954d..977418143 100644 --- a/css/menu.css +++ b/css/menu.css @@ -52,8 +52,6 @@ table { } html { - max-width: 1920px; - min-width: 428px; font-size: 62.5%; } @@ -62,8 +60,9 @@ body { line-height: 1.5; } -h1, h2, h3, h4, h5, h6, p, a, i { +h1, h2, h3, h4, h5, h6, p, a, i ,label, small{ text-decoration: none; + color: rgb(225, 239, 230); } h1 { @@ -72,28 +71,52 @@ h1 { h2 { font-size: 6rem; + padding: 1rem 0; } h3 { font-size: 5rem; } - h4 { - font-size: 4rem; + font-size: 3.5rem; } p, a { - font-size: 3rem; + font-size: 2.5rem; +} +button, input, label { + font-size: 2rem; +} +small { + font-size: 1rem; } /* header section */ + header { width: 100%; height: 100vh; - background-image: url('../img/menu-header.jpg'); + background-image: url('../img/home-header.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; + text-align: center; +} +.header-container { + background-color: rgb(0, 4, 17, .8); + display: flex; + flex-direction: column; + +} +.header-container nav { + display: flex; + justify-content: space-around; +} +.header-container nav a { + padding: 1rem 4%; +} +.header-container .icons a { + padding: 1rem 1%; } /* spacer */ @@ -119,17 +142,165 @@ header { background-position: center; background-repeat: no-repeat; } +.menu-container { + margin: 0 auto; + background-color: rgb(0, 4, 17, 0.8); + display: flex; + flex-flow: row wrap; + justify-content: center; +} +.menu-container > div { + width: 50%; + padding: 3% 7%; +} +.menu-container > div > h3 { + padding: 2% 6%; +} +.menu-item { + padding: 2% 6%; +} + +.menu h2 { + text-align: center; + width: 100%; +} +.menu-item > h4 { + display: inline-block; +} +.menu-item h4:nth-child(2) { + float: right; +} /* footer section */ footer { width: 100%; - height: 15vh; - padding-top: 2.5vh; - font-size: 3rem; + padding: 2vh; + background-color: rgb(0, 4, 17); + display: flex; + flex-flow: row wrap; +} +footer form { + flex-basis: 25%; + display: flex; + flex-flow: wrap; + justify-content: center; + +} +footer form label{ + flex-basis: 100%; + text-align: center; + padding: 1rem; +} +footer form input { + flex-basis: 75%; +} +footer form button { + padding: 0.5rem; + flex-basis: 25%; + +} +footer nav { + flex-basis: 75%; + display: flex; + justify-content: space-around; +} + +footer nav a { + padding-bottom: 3rem; +} + +footer small { + flex-basis: 100%; + text-align: right; + margin-right: 10%; } /* mobile media query */ +@media screen and (max-width: 1440px) { + footer form input { + flex-basis: 100%; + } + footer form button { + flex-basis: 100%; + } + footer form { + flex-basis: 35%; + } + footer nav { + flex-basis: 65%; + } +} + +@media screen and (max-width: 800px) { + p, a { + font-size: 2rem; + } + h1 { + font-size: 4.5rem; + } + h2 { + font-size: 5rem; + } + h3 { + font-size: 4.5rem; + } + /* header section */ + header h1 span { + display: block; + } + header nav { + flex-flow: column wrap ; + } + /* menu section*/ + .menu-container > div { + width: 100%; + } + + + /* footer section */ + footer { + flex-flow: column wrap; + align-items: center; + } + footer nav { + flex-flow: column; + align-items: center; + padding: 2rem 0; + } + footer nav a { + padding-bottom: 1rem; + } + footer small { + margin: 0; + text-align: center; + } + +} + @media (max-width: 428px) { + h2 { + font-size: 5rem; + } + /* header section */ + + h1 { + font-size: 4rem; + } + + h3 { + font-size: 4rem; + } + h4 { + font-size: 3.5rem; + } + p { + font-size: 2.5rem; + } + + header h1 span { + display: block; + } + /* header section */ .header-title { width: 75%; @@ -138,11 +309,63 @@ footer { font-size: 4rem; } + /* menu */ .menu { background-image: none; + background-color: rgb(225, 239, 230); + } + + .menu :is(h1, h2, h3, h4, h5, h6, p, a, i ,label, small, article) { + text-decoration: none; + color: rgb(0, 4, 17); + } + + .menu-container { + background: none; + text-align: center; + padding: 3%; + } + + .menu-container > h2:after { + width: 80%; + content: ''; + margin: 0 auto; + display: block; + border-bottom: 1.5rem solid rgb(0, 4, 17); + } + + .menu-container > div > h3 { + border: 0.5rem solid rgb(0, 4, 17); + width: min-content; + padding: 1% 4%; + margin: 4% auto; + } + .menu-container > div:not(:nth-child(2)){ + padding: 5rem 0; + } + + .menu-item:not(:last-child)::after { + content: ""; + display: block; + border-bottom: 0.5rem solid rgb(0, 4, 17); + width: 75%; + padding-top:1.5rem; + margin: 2% auto; } + + + + .menu-item h4 { + display: block; + } + .menu-item h4:nth-child(2) { + float: none; + } + + + /* footer section */ footer { height: auto; @@ -150,3 +373,17 @@ footer { font-size: 2rem; } } +@media screen and (max-width:350px) { + h2 { + font-size: 4rem; + } + h3 { + font-size: 3rem; + } + h4 { + font-size: 3rem; + } + p { + font-size: 2rem; + } +} diff --git a/index.html b/index.html index a59021d2a..992c40c1d 100644 --- a/index.html +++ b/index.html @@ -4,50 +4,57 @@ + + + + Sprint Challenge - Anasayfa - -
-
- ERGİNEER BAR VE MANGAL - - - Menü - Rezervasyonlar - Özel Teklifler - İletişim +
@@ -73,19 +80,19 @@

Güzel Yemekler, Güzel İnsanlar

shankle duis chicken dolore andouille do tenderloin qui.

-
-
+ - -
+ +
- -
-
-

BİZE ULAŞIN

+ +
+
+

BİZE ULAŞIN

+

Adres

@@ -116,26 +123,37 @@

İletişim

-
-
- - -
- - - \ No newline at end of file diff --git a/menu.html b/menu.html index 6fec23a78..9e129dcdb 100644 --- a/menu.html +++ b/menu.html @@ -6,22 +6,31 @@ Sprint Challenge - Menu - + + +
- ERGİNEER BAR VE MANGAL - - - Menü - Rezervasyonlar - Özel Teklifler - İletişim +
@@ -29,88 +38,119 @@ @@ -118,16 +158,29 @@