-
Notifications
You must be signed in to change notification settings - Fork 192
resolved tasks 1-5 #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
resolved tasks 1-5 #154
Changes from all commits
d9cc9d9
6ef90af
b97ad1b
6918649
90a1e88
abf9c3f
edcf8b6
1e267fd
e5dde59
799e286
bf8b029
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,13 +4,18 @@ | |
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| display: grid; | ||
| } | ||
|
|
||
| .a, .b, .c { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
|
|
||
| height: 50vh; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .a { | ||
|
|
@@ -19,8 +24,36 @@ | |
|
|
||
| .b { | ||
| border-color: #ffdfba; | ||
| grid-row: 2 / 3; | ||
| } | ||
|
|
||
| .c { | ||
| border-color: #baffc9; | ||
| } | ||
|
|
||
| @media (min-width: 601px) { | ||
|
|
||
| body { | ||
| grid-template-areas: | ||
| "a a" | ||
| "c b"; | ||
| justify-items: center; | ||
| } | ||
|
|
||
| .a { | ||
| grid-area: a; | ||
| } | ||
|
|
||
| .b { | ||
| grid-area: b; | ||
| } | ||
|
|
||
| .c { | ||
| grid-area: c; | ||
| } | ||
|
|
||
| .a, .b, .c { | ||
| max-width: 1200px; | ||
|
|
||
| } | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,22 @@ | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <title>devmentor.pl - HTML & CSS: RWD - #03</title> | ||
| <link rel="stylesheet" href="styles/global.css"> | ||
| </head> | ||
| <body> | ||
|
|
||
| <main class="t">T</main> | ||
| <header class="p">P</header> | ||
| <side class="v">V</side> | ||
| <main class="t">Lorem ipsum dolor sit amet consectetur adipisicing elit. Rem, sit ipsum nostrum aliquam aliquid suscipit fugiat quasi similique cumque, magni velit porro. Assumenda deleniti delectus quo ipsam, et, exercitationem temporibus quidem dolore dolorem pariatur laborum perspiciatis soluta. Error, nihil eligendi! Quae illo quam ducimus laudantium adipisci reiciendis, dolores fugit eum, optio itaque accusamus omnis repellendus ex natus alias qui, nesciunt temporibus? Ab sed perspiciatis cupiditate nostrum nesciunt adipisci omnis beatae ad voluptates, placeat id optio ratione magni, dolore unde modi laborum non corporis laudantium, quam nulla amet eum similique delectus. Quibusdam, corrupti ipsa. Veritatis perferendis magni reiciendis excepturi, vitae dolorum?</main> | ||
| <header class="p"> | ||
| <picture> | ||
| <source | ||
| srcset="assets/pumpkins-8338100_1920--smaller.jpg" | ||
| media="(max-width: 599px)"> | ||
| <img src="assets/pumpkins-8338100_1920.jpg" alt="pumpkins photo"> | ||
| </picture> | ||
| </header> | ||
| <side class="v"> | ||
| <iframe src="https://www.youtube.com/embed/W_e4hWPPmGQ?si=bHihwJMju_Afjadl" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> | ||
| </side> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
|
||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,10 @@ | |
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body { | ||
| display: grid; | ||
| } | ||
|
|
||
| .p, .t, .v { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
|
|
@@ -14,7 +18,7 @@ | |
| } | ||
|
|
||
| .p { | ||
| border-color: #ffffba | ||
| border-color: #ffffba; | ||
| } | ||
|
|
||
| .t { | ||
|
|
@@ -23,4 +27,110 @@ | |
|
|
||
| .v { | ||
| border-color: #baffc9; | ||
| height: 0; | ||
| padding-bottom: 56.25%; | ||
| position: relative; | ||
| width: 100%; | ||
| } | ||
|
|
||
| img { | ||
| max-width: 100%; | ||
| height: auto; | ||
| } | ||
|
|
||
| iframe { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| height: 100%; | ||
| width: 100%; | ||
| } | ||
|
|
||
| @media (max-width: 599px) { | ||
|
|
||
| body { | ||
| grid-template-areas: | ||
| "p" | ||
| "t" | ||
| "v"; | ||
| } | ||
|
|
||
| .p { | ||
| grid-area: p; | ||
| } | ||
|
|
||
| .t { | ||
| grid-area: t; | ||
| } | ||
|
|
||
| .v { | ||
| grid-area: v; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| @media (min-width: 600px) and (max-width: 1199px) { | ||
|
|
||
| body { | ||
| grid-template-areas: | ||
| "p t" | ||
| "v t"; | ||
| } | ||
|
|
||
| .p { | ||
| grid-area: p; | ||
| } | ||
|
|
||
| .t { | ||
| grid-area: t; | ||
| } | ||
|
|
||
| .v { | ||
| grid-area: v; | ||
| } | ||
|
|
||
| .p, .t, .v { | ||
| min-width: 200px; | ||
| max-width: 50vw; | ||
| } | ||
|
|
||
|
|
||
| } | ||
|
|
||
| @media (min-width: 1200px) { | ||
|
|
||
| body { | ||
| grid-template-areas: | ||
| "p v" | ||
| "t t"; | ||
| justify-items: center; | ||
| max-width: 1400px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .p { | ||
| grid-area: p; | ||
| height: 0; | ||
| padding-bottom: 56.25%; | ||
| position: relative; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .t { | ||
| grid-area: t; | ||
| } | ||
|
|
||
| .v { | ||
| grid-area: v; | ||
| } | ||
| picture { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| height: 100%; | ||
| width: 100%; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
|
|
||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .navbar { | ||
| width: 100%; | ||
| background-color: grey; | ||
| font-family: 'Courier New', Courier, monospace; | ||
| font-weight: 500; | ||
| color: white; | ||
| } | ||
|
|
||
| .navbar__container { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| height: 70px; | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| padding: 0 25px; | ||
| } | ||
|
|
||
| .menu-toggle { | ||
| display: none; | ||
| } | ||
|
|
||
|
|
||
| .navbar__list { | ||
| font-size: 16px; | ||
| line-height: 20px; | ||
| list-style: none; | ||
| display: flex; | ||
| } | ||
|
|
||
| .link { | ||
| text-decoration: none; | ||
| color: #333; | ||
| color: white; | ||
| padding: 27px 25px; | ||
| } | ||
|
|
||
| .link:hover { | ||
| color: skyblue; | ||
| } | ||
|
|
||
| .navbar__dropdown { | ||
| display: none; | ||
| position: absolute; | ||
| top: 70px; | ||
| list-style: none; | ||
| background-color: darkgray; | ||
| } | ||
|
|
||
| .navbar__element--dropdown:hover > .navbar__dropdown { | ||
| display: block; | ||
| } | ||
|
|
||
| .navbar__link--last { | ||
| padding-right: 0; | ||
| } | ||
|
|
||
| .dropdown__link { | ||
| text-decoration: none; | ||
| display: block; | ||
| padding: 10px 10px; | ||
| color: white; | ||
| } | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,26 +4,50 @@ | |
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <meta name="theme-color" content="grey"> | ||
| <link rel="stylesheet" href="./mobile.css" media="(max-width: 760px)"> | ||
| <link rel="stylesheet" href="./desktop.css" media="(min-width: 761px)"> | ||
| <title>devmentor.pl - HTML & CSS: RWD - #04</title> | ||
| </head> | ||
| <body> | ||
|
|
||
| <nav> | ||
| <ul> | ||
| <li> | ||
| <a href="#">start</a> | ||
| </li> | ||
| <li> | ||
| <a href="#">oferta</a> | ||
| <ul> | ||
| <li><a href="">strony internetowe</a></li> | ||
| <li><a href="">pozycjonowanie stron www</a></li> | ||
| </ul> | ||
| </li> | ||
| <li> | ||
| <a href="#">kontakt</a> | ||
| </li> | ||
| </ul> | ||
| <nav class="navbar"> | ||
| <div class="navbar__container"> | ||
| <div class="logo">LOGO</div> | ||
| <input type="checkbox" class="menu-toggle" id="menu-toggle"> | ||
| <label for="menu-toggle" class="hamburger"> | ||
| <span class="hamburger__element hamburger__element--first"></span> | ||
| <span class="hamburger__element hamburger__element--second"></span> | ||
| <span class="hamburger__element hamburger__element--third"></span> | ||
| </label> | ||
|
|
||
| <ul class="navbar__list"> | ||
|
|
||
| <li class="navbar__element"> | ||
| <a class="navbar__link link" href="#">start</a> | ||
| </li> | ||
|
|
||
| <li class="navbar__element navbar__element--dropdown"> | ||
| <a class="navbar__link link" href="#">oferta</a> | ||
| <ul class="navbar__dropdown dropdown"> | ||
|
|
||
| <li class="dropdown__element"> | ||
| <a class="dropdown__link link" href="">strony internetowe</a> | ||
| </li> | ||
|
|
||
| <li class="dropdown__element"> | ||
| <a class="dropdown__link link" href="">pozycjonowanie stron www</a> | ||
| </li> | ||
|
|
||
| </ul> | ||
| </li> | ||
|
|
||
| <li class="navbar__element"> | ||
| <a class="navbar__link--last link" href="#">kontakt</a> | ||
| </li> | ||
|
|
||
| </ul> | ||
| </div> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| </nav> | ||
|
|
||
| </body> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍