-
Notifications
You must be signed in to change notification settings - Fork 192
Zadania wykonane - naniosłem wcześniejsze wskazówki #166
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?
Changes from all commits
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 |
|---|---|---|
| @@ -1,16 +1,22 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="pl"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <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 - #02</title> | ||
|
|
||
| <link rel="stylesheet" href="./styles/global.css"> | ||
| <link rel="stylesheet" href="./styles/mobile.css"> | ||
| <link rel="stylesheet" media="(min-width: 600px)" href="./styles/tablet.css"> | ||
| <link rel="stylesheet" media="(min-width: 1281px)" href="./styles/desktop.css"> | ||
|
Comment on lines
+11
to
+13
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. Twoje rozwiązanie działa odwrotnie do tego co zostało zapisane w zadaniu ;) |
||
| </head> | ||
|
|
||
| <body> | ||
| <header class="a">A</header> | ||
| <section class="c">C</section> | ||
| <main class="b">B</main> | ||
| </body> | ||
|
|
||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| body { | ||
| display: block; | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| body { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-template-rows: repeat(2, 1fr); | ||
| grid-column-gap: 0px; | ||
| grid-row-gap: 0px; | ||
| } | ||
|
|
||
| .a { | ||
| grid-area: 1 / 1 / 2 / 3; /* Zaczyna się na 1 wierszu i 1 kolumnie, kończy się na 2 wierszu 3 kolumnie */ | ||
| } | ||
|
|
||
| .b { | ||
| grid-area: 2 / 1 / 3 / 2; /* Zaczyna się na 2 wierszu i 1 kolumnie, kończy się na 3 wierszu 2 kolumnie */ | ||
| } | ||
|
|
||
| .c { | ||
| grid-area: 2 / 2 / 3 / 3; /* Zaczyna się na 2 wierszu i 2 kolumnie, kończy się na 3 wierszu 3 kolumnie */ | ||
| } | ||
|
|
||
| /* | ||
|
|
||
| lub | ||
|
|
||
| .a { | ||
| grid-row: span 1; | ||
| grid-column: span 2; | ||
| } | ||
|
|
||
| .b { | ||
| grid-row: span 1; | ||
| grid-column: span 1; | ||
| } | ||
|
|
||
| .c { | ||
| grid-row: span 1; | ||
| grid-column: span 2; | ||
| } | ||
|
|
||
| */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| body { | ||
| display: block; | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,56 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="pl"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <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"> | ||
| <link rel="stylesheet" href="./styles/mobile.css"> | ||
| <link rel="stylesheet" media="(min-width: 599px)" href="./styles/tablet.css"> | ||
| <link rel="stylesheet" media="(min-width: 1199px)" href="./styles/desktop.css"> | ||
| </head> | ||
|
|
||
| <body> | ||
|
|
||
| <main class="t">T</main> | ||
| <header class="p">P</header> | ||
| <side class="v">V</side> | ||
|
|
||
| <main class="t"> | ||
| <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the | ||
| industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled | ||
| it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic | ||
| typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset | ||
| sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker | ||
| including versions of Lorem Ipsum.</p> | ||
| <p> | ||
| It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). | ||
| </p> | ||
| <p> | ||
| Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. | ||
| </p> | ||
| </main> | ||
| <header class="p"> | ||
| <picture> | ||
| <source srcset="./assets/640.jpg, | ||
| ./assets/1280.jpg 2x | ||
| " media="(max-width: 599px)"> | ||
| <source srcset="./assets/1280.jpg, | ||
| ./assets/1920.jpg 2x | ||
| " media="(min-width: 1199px)"> | ||
| <source srcset=" | ||
| ./assets/1920.jpg, | ||
| ./assets/5431.jpg 2x | ||
| "> | ||
| <img src="./assets/5431.jpg"> | ||
| </picture> | ||
| </header> | ||
| <side class="v"> | ||
| <iframe width="100%" height="100%" src="https://www.youtube.com/embed/2CHS7fdbX6o?si=Y8nkTgTm5SR-GRGA" | ||
| 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> | ||
|
|
||
| </body> | ||
|
|
||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| body { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-template-rows: repeat(2, 1fr); | ||
| grid-column-gap: 0px; | ||
| grid-row-gap: 0px; | ||
| } | ||
|
|
||
| .t { | ||
| grid-area: 2 / 1 / 2 / 3; /* Zaczyna się na 1 wierszu i 1 kolumnie, kończy się na 2 wierszu 3 kolumnie */ | ||
| padding: 5% 10%; | ||
| display: flex; | ||
| flex-flow: row wrap; | ||
| align-content: flex-start; | ||
| gap: 20px; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .p { | ||
| grid-area: 1 / 1 / 2 / 2; /* Zaczyna się na 2 wierszu i 1 kolumnie, kończy się na 3 wierszu 2 kolumnie */ | ||
| } | ||
|
|
||
| .p img{ | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .v { | ||
| grid-area: 1 / 2 / 2 / 3; /* Zaczyna się na 2 wierszu i 2 kolumnie, kończy się na 3 wierszu 3 kolumnie */ | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
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 |
|---|---|---|
|
|
@@ -14,7 +14,8 @@ | |
| } | ||
|
|
||
| .p { | ||
| border-color: #ffffba | ||
| border-color: #ffffba; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| .t { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| body { | ||
| display: flex; | ||
| flex-flow: row wrap; | ||
| } | ||
|
|
||
| .t { | ||
| order: 2; | ||
| width: 100%; | ||
| padding: 5% 4%; | ||
| display: flex; | ||
| flex-flow: row wrap; | ||
| align-content: flex-start; | ||
| gap: 20px; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .p { | ||
| order: 1; | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .v { | ||
| order: 3; | ||
| width: 100%; | ||
| height: 30vh; | ||
| } | ||
|
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,28 @@ | ||
| body { | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-template-rows: repeat(2, 1fr); | ||
| grid-column-gap: 0px; | ||
| grid-row-gap: 0px; | ||
| } | ||
|
|
||
| .t { | ||
| grid-area: 1 / 2 / 3 / 3; /* Zaczyna się na 1 wierszu i 1 kolumnie, kończy się na 2 wierszu 3 kolumnie */ | ||
| padding: 5% 10%; | ||
| display: flex; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .p { | ||
| grid-area: 1 / 1 / 2 / 2; /* Zaczyna się na 2 wierszu i 1 kolumnie, kończy się na 3 wierszu 2 kolumnie */ | ||
| } | ||
|
|
||
| .p img{ | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .v { | ||
| grid-area: 2 / 1 / 3 / 2; /* Zaczyna się na 2 wierszu i 2 kolumnie, kończy się na 3 wierszu 3 kolumnie */ | ||
| width: 100%; | ||
| height: 100%; | ||
| } | ||
|
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,67 @@ | ||
| :root { | ||
| --color-alfa: hwb(0 75% 25%); | ||
| --color-beta: hwb(0 55% 45%); | ||
| --color-gamma: hwb(0 45% 55%); | ||
| --color-delta: hwb(0 35% 65%); | ||
| --color-epsilon: hwb(0 25% 75%); | ||
| } | ||
|
|
||
| .hamburger { | ||
| display: none; | ||
| } | ||
|
|
||
| #menu__mobile--hamburger:checked~nav { | ||
| display: block; | ||
| } | ||
|
|
||
| nav { | ||
| display: block; | ||
| position: static; | ||
| padding-top: 0; | ||
| } | ||
|
|
||
| nav ul { | ||
| display: flex; | ||
| width: 5vw; | ||
| min-width: max-content; | ||
| } | ||
|
|
||
|
|
||
| nav ul > li > a { | ||
| display: block; | ||
| padding: 15px 20px; | ||
| text-decoration: none; | ||
| color: var(--color-alfa); | ||
| border-bottom: 2px solid var(--color-delta); | ||
| } | ||
|
|
||
| nav ul > li > a:hover { | ||
| display: block; | ||
| padding: 15px 20px; | ||
| text-decoration: none; | ||
| color: var(--color-alfa); | ||
| border-bottom: 2px solid var(--color-alfa); | ||
| } | ||
|
|
||
| nav ul li ul li a { | ||
| display: block; | ||
| padding: 15px 20px; | ||
| background: var(--color-beta); | ||
| border-bottom: 1px solid var(--color-delta); | ||
| } | ||
|
|
||
| /* Ukrycie */ | ||
|
|
||
| nav ul li ul { | ||
|
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. Lepiej jest stylować po klasach - wtedy jest mniej problemów, spróbuj dołożyć jeszcze jedno zagnieżdżenie i zobaczysz co tam się może wydarzyć :P |
||
| position: absolute; | ||
| top: 100%; | ||
| left: 0; | ||
| width: 200px; | ||
| display: none; | ||
| } | ||
|
|
||
| /* Odkrycie menu */ | ||
|
|
||
| nav ul li:hover ul { | ||
| display: block; | ||
| } | ||
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.
👍