-
Notifications
You must be signed in to change notification settings - Fork 192
Tasks completed #172
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?
Tasks completed #172
Changes from all commits
7b532f2
dc12914
b4d5aff
8d86b8a
3944910
791265b
4e916b6
9ee2bbd
40997c9
295866c
265b494
f3c1615
cb29024
3a072c2
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,23 +1,24 @@ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .content { | ||
| background-color: #fff; | ||
| min-height: 320px; | ||
| min-width: 320px; | ||
| max-width: 600px; | ||
| text-align: justify; | ||
| background-color: #fff; | ||
| min-height: 320px; | ||
| min-width: 320px; | ||
| max-width: 600px; | ||
| text-align: justify; | ||
| } | ||
|
|
||
| .content::before { | ||
| float: left; | ||
| display: block; | ||
| content: ''; | ||
| height: 0; | ||
| border: 150px solid #dcdcdc; | ||
| border-right-color: transparent; | ||
| border-bottom-color: transparent; | ||
| } | ||
| float: left; | ||
| display: block; | ||
| content: ''; | ||
| height: 0; | ||
| border: 150px solid #dcdcdc; | ||
| border-right-color: transparent; | ||
| border-bottom-color: transparent; | ||
| shape-outside: polygon(0 0, 0% 100%, 100% 0); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,54 @@ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .a, .b, .c { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
| body { | ||
| display: grid; | ||
| grid-template-areas: | ||
| 'A' | ||
| 'B' | ||
| 'C'; | ||
| } | ||
|
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. 👍 |
||
|
|
||
| .a, | ||
| .b, | ||
| .c { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
|
|
||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
|
|
||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 50vh; | ||
| } | ||
|
|
||
| .a { | ||
| border-color: #ffffba | ||
| border-color: #ffffba; | ||
| grid-area: A; | ||
| } | ||
|
|
||
| .b { | ||
| border-color: #ffdfba; | ||
| border-color: #ffdfba; | ||
| grid-area: B; | ||
| } | ||
|
|
||
| .c { | ||
| border-color: #baffc9; | ||
| } | ||
| border-color: #baffc9; | ||
| grid-area: C; | ||
| } | ||
|
|
||
| @media (min-width: 600px) { | ||
| body { | ||
| margin: 0 auto; | ||
| display: grid; | ||
| grid-template-areas: | ||
| 'A A' | ||
| 'C B'; | ||
| grid-template-columns: 1fr 1fr; | ||
|
Comment on lines
+47
to
+50
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. Zwróć uwagę, że nie zgadza się kolejność na mobilce ;) |
||
| max-width: 1200px; | ||
| justify-content: center; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,57 @@ | ||
| <!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"> | ||
| <link rel="stylesheet" href="./styles/global.css"> | ||
| <link rel="stylesheet" media="(min-width: 600px)" href="./styles/tablet.css"> | ||
| <link rel="stylesheet" media="(min-width: 1200px)" href="./styles/desktop.css"> | ||
| <title>devmentor.pl - HTML & CSS: RWD - #03</title> | ||
| </head> | ||
|
|
||
| <body> | ||
|
|
||
| <main class="t">T</main> | ||
| <header class="p">P</header> | ||
| <side class="v">V</side> | ||
|
|
||
| <main class="t"> | ||
| <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita velit soluta eaque tempore quaerat error | ||
| ratione inventore reprehenderit, dolorum, doloremque impedit nisi nostrum magnam, quae voluptas. | ||
| Perferendis, ullam! Omnis odit cum animi temporibus ex laborum accusamus maxime corporis nam, error quisquam | ||
| ab officiis, facilis voluptatibus tempora atque laboriosam libero sit veritatis perferendis, soluta | ||
| reiciendis magni. Repellat nostrum asperiores, nesciunt placeat maxime ab deleniti vel libero, perferendis | ||
| ipsa, voluptatibus voluptas eius expedita odit obcaecati quas omnis corrupti repudiandae. Eaque harum, | ||
| voluptatem veritatis tempora fugiat facilis rem nemo quisquam maxime velit numquam aliquid sapiente dolorem, | ||
| laborum id dicta debitis quibusdam veniam, hic minus quia accusamus corrupti quas! Tenetur assumenda dolores | ||
| doloribus eum, quos officia magnam atque repellendus minus maiores deleniti sapiente libero illum nihil | ||
| recusandae asperiores commodi. Velit a quibusdam nobis corrupti nulla culpa dolor dicta accusamus corporis | ||
| sequi, nam ratione molestiae aspernatur animi expedita similique doloremque aut atque amet ipsam omnis rem. | ||
| Harum numquam veniam laudantium temporibus modi ad officiis quas minima deleniti necessitatibus earum | ||
| assumenda, sapiente suscipit, ipsum unde doloribus! Sunt, soluta. Necessitatibus eveniet magni accusamus | ||
| modi totam, fuga dolorem, et sed sequi alias ex beatae dignissimos quod corrupti hic consequuntur nisi | ||
| facilis temporibus fugiat! Facere id quisquam hic. Sapiente distinctio in hic, impedit libero exercitationem | ||
| voluptates porro itaque corporis officiis animi aspernatur, repellendus repudiandae autem. Maxime, alias | ||
| illo facere, iusto illum aspernatur quas corrupti quibusdam ab sed odio qui aut autem! Iusto dignissimos | ||
| suscipit eaque. Est odio quisquam ipsum possimus quibusdam atque aspernatur vero reiciendis accusamus omnis? | ||
| Voluptas, ea aperiam enim provident fugit harum? In sunt vero provident ducimus repellendus eveniet placeat | ||
| nisi iure aut harum! Iure eum delectus culpa dolores illum animi quo accusantium porro libero itaque | ||
| perferendis pariatur, debitis ipsum facere quod commodi tenetur doloribus, praesentium dolorem doloremque | ||
| earum aspernatur natus veniam sunt? Fugit illum vel sapiente.</p> | ||
| </main> | ||
| <header class="p"> | ||
| <picture> | ||
| <source srcset="./images/image-1400.jpg" media="(min-width: 1200px)"> | ||
| <source srcset="./images/image-1200.jpg" media="(min-width: 600px)"> | ||
| <source srcset="./images/image-600.jpg"> | ||
| <img src="./images/image-1400.jpg"> | ||
| </picture> | ||
| </header> | ||
| <side class="v"> | ||
| <iframe src="https://www.youtube.com/embed/7UBj0fkQApA?si=N6A9r5UUICFVmgJz" | ||
| 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| body { | ||
| display: grid; | ||
| grid-template-areas: | ||
| 'p v' | ||
| 't t'; | ||
| max-width: 1400px; | ||
| margin: 0 auto; | ||
| } | ||
|
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 |
|---|---|---|
| @@ -1,26 +1,46 @@ | ||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .p, .t, .v { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
| .p, | ||
| .t, | ||
| .v { | ||
| border: 3px solid transparent; | ||
| min-height: 50px; | ||
|
|
||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .p { | ||
| border-color: #ffffba | ||
| border-color: #ffffba; | ||
| grid-area: p; | ||
| } | ||
|
|
||
| .p img { | ||
| width: 100%; | ||
| } | ||
|
|
||
| .t { | ||
| border-color: #ffdfba; | ||
| border-color: #ffdfba; | ||
| grid-area: t; | ||
| } | ||
|
|
||
| .v { | ||
| border-color: #baffc9; | ||
| } | ||
| border-color: #baffc9; | ||
| grid-area: v; | ||
| height: 0; | ||
| padding-bottom: calc(315 / 560 * 100%); | ||
| position: relative; | ||
| } | ||
|
|
||
| .v iframe { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| 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,7 @@ | ||
| body { | ||
| display: grid; | ||
| grid-template-areas: | ||
| 'p t' | ||
| 'v t'; | ||
| grid-template-columns: minmax(200px, 50%) auto; | ||
| } | ||
|
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. 👍 |
||
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.
👍