-
Notifications
You must be signed in to change notification settings - Fork 192
complete all 5 tasks #170
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?
complete all 5 tasks #170
Changes from all commits
fc1ecf2
c235e1e
8ee4b0c
6e13580
4d22d94
f3c2299
584e5cb
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 |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| .a, .b, .c { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
|
|
||
| width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
|
|
@@ -19,8 +19,39 @@ | |
|
|
||
| .b { | ||
| border-color: #ffdfba; | ||
| grid-row-start: 2; | ||
| } | ||
|
|
||
| .c { | ||
| border-color: #baffc9; | ||
| } | ||
|
|
||
| body { | ||
| display: grid; | ||
| grid-template-rows: repeat(3, 50vh); | ||
| } | ||
|
|
||
|
|
||
| @media (min-width: 600px) { | ||
| body { | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-template-rows: 50vh 50vh; | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .a { | ||
| grid-column: 1 / 3; | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .b { | ||
|
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. UWaga na kolejność elementów przy szerszym ekranie (patrz readme.md) |
||
| grid-column: 1; | ||
| grid-row: 2; | ||
| } | ||
|
|
||
| .c { | ||
| grid-column: 2; | ||
| grid-row: 2; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,13 +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"> | ||
| <link rel="stylesheet" href="./styles/global.css"> | ||
| <title>devmentor.pl - HTML & CSS: RWD - #03</title> | ||
| </head> | ||
| <body> | ||
| <header class="p"> | ||
| <picture> | ||
| <source | ||
| srcset="./assets/cat-mobile.jpg" | ||
| media="(max-width: 599px)" | ||
| > | ||
| <source | ||
| srcset="./assets/cat-tablet.jpg" | ||
| media="(min-width: 600px) and (max-width: 1199px)" | ||
| > | ||
| <source | ||
| srcset="./assets/cat.jpg" | ||
| media="(min-width: 1200px)" | ||
| > | ||
| <img src="./assets/cat.jpg" alt="cat picture"> | ||
| </picture> | ||
| </header> | ||
| <main class="t"> | ||
| <p> | ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | ||
| incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | ||
| nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
| Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore | ||
| eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, | ||
| sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
| </p> | ||
| </main> | ||
|
|
||
| <main class="t">T</main> | ||
| <header class="p">P</header> | ||
| <side class="v">V</side> | ||
| <aside class="v"> | ||
| <iframe | ||
| width="560" | ||
| height="315" | ||
| src="https://www.youtube.com/embed/YTP1kZNaYmw?si=Tkv6LoU95ETJwvBF" | ||
| 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> | ||
| </aside> | ||
|
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 |
|---|---|---|
|
|
@@ -7,20 +7,130 @@ | |
| .p, .t, .v { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
|
|
||
| width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .p { | ||
| border-color: #ffffba | ||
| border-color: #ffffba; | ||
| grid-row-start: 1; | ||
| } | ||
|
|
||
| .t { | ||
| border-color: #ffdfba; | ||
| grid-row-start: 2; | ||
| } | ||
|
|
||
| .v { | ||
| border-color: #baffc9; | ||
| } | ||
|
|
||
| body { | ||
| display: grid; | ||
| grid-template-rows: auto auto auto; | ||
| } | ||
|
|
||
| .p picture, | ||
| .p img { | ||
| width: 100%; | ||
| height: 100%; | ||
| object-fit: cover; | ||
| } | ||
|
|
||
| .v iframe { | ||
| aspect-ratio: 16 / 9; | ||
| width: 100%; | ||
| height: 100%; | ||
| border: none; | ||
| } | ||
|
|
||
|
|
||
| @media (max-width: 599px) { | ||
| body { | ||
| display: grid; | ||
| grid-template-rows: auto auto auto; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .p { | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .t { | ||
| grid-row: 2; | ||
| } | ||
|
|
||
| .v { | ||
| grid-row: 3; | ||
| } | ||
| p { | ||
| text-align: center; | ||
| padding: 2rem; | ||
| margin: 1rem; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| @media (min-width: 600px) and (max-width: 1199px) { | ||
| body { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-template-rows: 50vh 50vh; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| .p { | ||
| grid-column: 1; | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .v { | ||
| grid-column: 1; | ||
| grid-row: 2; | ||
| } | ||
|
|
||
| .t { | ||
| grid-column: 2; | ||
| grid-row: 1 / 3; | ||
| } | ||
|
|
||
| p { | ||
| text-align: center; | ||
| padding: 2rem; | ||
| margin: 1rem; | ||
| } | ||
| } | ||
|
|
||
| @media (min-width: 1200px) { | ||
| body { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-template-rows: 50vh 50vh; | ||
| margin: 0 auto; | ||
| max-width: 1400px; | ||
| } | ||
|
|
||
| .p{ | ||
| grid-column: 1; | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .v { | ||
| grid-column: 2; | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .t { | ||
| grid-column: 1 / 3; | ||
| grid-row: 2; | ||
| } | ||
|
|
||
| p { | ||
| text-align: center; | ||
| padding: 2rem; | ||
| margin: 1rem; | ||
| } | ||
|
|
||
|
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,3 @@ | ||
| { | ||
| "liveServer.settings.port": 5501 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,27 +4,30 @@ | |
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <link rel="stylesheet" href='./styles/mobile.css' > | ||
| <link rel="stylesheet" href="./styles/global.css" > | ||
| <link rel="stylesheet" href="./styles/desktop.css" > | ||
| <title>devmentor.pl - HTML & CSS: RWD - #04</title> | ||
| </head> | ||
| <body> | ||
|
|
||
| <nav> | ||
| <ul> | ||
| <li> | ||
| <a href="#">start</a> | ||
| <nav> | ||
| <input type="checkbox" id="menu-hamburger"> | ||
| <label for="menu-hamburger" class="hamburger"></label> | ||
| <ul class="menu"> | ||
| <li class="menu-item"> | ||
| <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> | ||
| <li class="menu-item has-submenu"> | ||
| <a href="#">OFERTA</a> | ||
| <ul class="submenu"> | ||
| <li class="submenu-item"><a href="">Strony internetowe</a></li> | ||
| <li class="submenu-item"><a href="">Pozycjonowanie stron www</a></li> | ||
| </ul> | ||
| </li> | ||
| <li> | ||
| <a href="#">kontakt</a> | ||
| <li class="menu-item"> | ||
| <a href="#">KONTAKT</a> | ||
|
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. 👍 |
||
| </li> | ||
| </ul> | ||
| </nav> | ||
|
|
||
| </body> | ||
| </html> | ||
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.
👍