-
Notifications
You must be signed in to change notification settings - Fork 192
Feat: Practice HTML and CSS RWD #165
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
f97aaba
8a0f491
08b84f9
b69a229
731c579
a9449e1
9cf3e50
a8c0fd0
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"> | ||
| <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 - #01</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <link rel="stylesheet" href="style.css" /> | ||
| </head> | ||
| <body> | ||
| <div class="content"> | ||
| Lorem ipsum, dolor sit amet consectetur adipisicing elit. Beatae debitis dignissimos, voluptatem quas, quo aliquid veniam illo itaque doloribus, sequi exercitationem tempore obcaecati cum consectetur blanditiis natus at. Dicta nobis eum provident quasi atque cum eveniet, voluptas adipisci fugit esse. | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Adipisci dolorem assumenda, laboriosam suscipit ad eligendi rerum fuga esse dignissimos. Quam suscipit ratione vel dolore enim, soluta libero fugit sapiente cumque necessitatibus perferendis tenetur quia ab recusandae. Alias et laboriosam, doloremque at temporibus, expedita provident ipsam qui vitae blanditiis ratione illo. | ||
| Lorem ipsum, dolor sit amet consectetur adipisicing elit. Beatae debitis dignissimos, | ||
| voluptatem quas, quo aliquid veniam illo itaque doloribus, sequi exercitationem tempore | ||
| obcaecati cum consectetur blanditiis natus at. Dicta nobis eum provident quasi atque cum | ||
| eveniet, voluptas adipisci fugit esse. Lorem ipsum dolor sit amet consectetur adipisicing | ||
| elit. Adipisci dolorem assumenda, laboriosam suscipit ad eligendi rerum fuga esse dignissimos. | ||
| Quam suscipit ratione vel dolore enim, soluta libero fugit sapiente cumque necessitatibus | ||
| perferendis tenetur quia ab recusandae. Alias et laboriosam, doloremque at temporibus, | ||
| expedita provident ipsam qui vitae blanditiis ratione illo. | ||
| </div> | ||
| </body> | ||
| </html> | ||
| </body> | ||
| </html> |
| 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; | ||
| shape-outside: polygon(100% 3%, 0% 100%, 1% 100%); | ||
| display: block; | ||
| content: ''; | ||
| height: 0; | ||
| border: 150px solid #dcdcdc; | ||
| border-right-color: transparent; | ||
| border-bottom-color: transparent; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,61 @@ | ||
| * { | ||
| 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; | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| } | ||
|
|
||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| .a, | ||
| .b, | ||
| .c { | ||
| border: 3px solid transparent; | ||
| height: 50vh; | ||
|
|
||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .a { | ||
| border-color: #ffffba | ||
| border-color: #ffffba; | ||
| } | ||
|
|
||
| .b { | ||
| border-color: #ffdfba; | ||
| border-color: #ffdfba; | ||
| } | ||
|
|
||
| .c { | ||
| border-color: #baffc9; | ||
| } | ||
| border-color: #baffc9; | ||
| order: 1; | ||
| } | ||
|
|
||
| /* Media queries */ | ||
|
|
||
| @media only screen and (min-width: 600px) { | ||
| html { | ||
| justify-content: center; | ||
| } | ||
|
|
||
| body { | ||
| grid-template-columns: 1fr 1fr; | ||
| max-width: 1200px; | ||
| } | ||
|
|
||
| .a { | ||
| grid-column: span 2; | ||
| } | ||
|
|
||
| .b, | ||
| .c { | ||
| grid-row: 2; | ||
| } | ||
|
|
||
| .b { | ||
| order: 1; | ||
| } | ||
| } | ||
|
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,16 +1,50 @@ | ||
| <!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"> | ||
| <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> | ||
| </head> | ||
| <body> | ||
|
|
||
| <main class="t">T</main> | ||
| <header class="p">P</header> | ||
| <side class="v">V</side> | ||
|
|
||
| </body> | ||
| </html> | ||
| <link rel="stylesheet" href="./styles/global.css" /> | ||
| <link rel="stylesheet" href="./styles/mobile.css" media="(max-width: 599px)" /> | ||
| <link | ||
| rel="stylesheet" | ||
| href="./styles/tablet.css" | ||
| media="(min-width: 600px) and (max-width: 1199px)" /> | ||
| <link rel="stylesheet" href="./styles/desktop.css" media="(min-width: 1200px)" /> | ||
| </head> | ||
| <body> | ||
| <article class="grid-container"> | ||
| <main class="t"> | ||
| <p> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum officia repudiandae fugit | ||
| voluptatem, labore assumenda quasi eius porro illo nulla exercitationem unde in adipisci | ||
| quisquam omnis quas nam animi suscipit. Laborum harum ullam officia, ex sed laboriosam | ||
| porro dolorum illum alias. Dolorem ab iste sunt debitis laborum, harum consequuntur magnam | ||
| animi illum, eius nobis eligendi inventore id modi natus alias? Possimus voluptate | ||
| excepturi dolor deleniti ipsa placeat odio mollitia sed ea nulla voluptas ratione nihil | ||
| autem expedita suscipit cumque error nisi, quam quos accusantium. | ||
| </p> | ||
| </main> | ||
| <header class="p"> | ||
| <picture> | ||
| <source media="(min-width: 1200px)" srcset="./assets/cat-desktop.jpg" /> | ||
| <source | ||
| class="picture__tablet" | ||
| media="(min-width:600px)" | ||
| srcset="./assets/cat-tablet.jpg" /> | ||
| <img src="./assets/cat-mobile.jpg" alt="Cat" /> | ||
| </picture> | ||
| </header> | ||
| <side class="v"> | ||
| <iframe | ||
| src="https://www.youtube.com/embed/xPuYbmmPdEM?si=-pqEChr_7_oFWRTl" | ||
| 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> | ||
| </article> | ||
| </body> | ||
| </html> | ||
|
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,19 @@ | ||
| .grid-container { | ||
| max-width: 1400px; | ||
| margin: 0 auto; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| } | ||
|
|
||
| .p { | ||
| grid-column: 1 / 2; | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .v { | ||
| grid-column: 2; | ||
| } | ||
|
|
||
| .t { | ||
| grid-column: span 2; | ||
| grid-row: 2; | ||
| } | ||
|
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,47 @@ | ||
| * { | ||
| 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; | ||
| .grid-container { | ||
| display: grid; | ||
| } | ||
|
|
||
| .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; | ||
| } | ||
|
|
||
| .t { | ||
| border-color: #ffdfba; | ||
| border-color: #ffdfba; | ||
| } | ||
|
|
||
| .v { | ||
| border-color: #baffc9; | ||
| } | ||
| border-color: #baffc9; | ||
| height: 0; | ||
| position: relative; | ||
| padding-bottom: calc(4 / 6 * 100%); | ||
| } | ||
|
|
||
| img { | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| iframe { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| height: 100%; | ||
| width: 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,4 @@ | ||
| .t, | ||
| .v { | ||
| order: 1; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| .grid-container { | ||
| display: grid; | ||
| grid-template-columns: minmax(200px, 50%) 1fr; | ||
| } | ||
|
|
||
| .p { | ||
| grid-column: span 1; | ||
| grid-row: 1; | ||
| } | ||
|
|
||
| .v { | ||
| grid-column: 1; | ||
| grid-row: 2; | ||
| } | ||
|
|
||
| .t { | ||
| grid-column: 2; | ||
| grid-row: 1 / span 2; | ||
| } | ||
|
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,30 +1,40 @@ | ||
| <!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"> | ||
| <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 - #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> | ||
| <link rel="stylesheet" href="./styles/reset.css" /> | ||
| <link rel="stylesheet" href="./styles/global.css" /> | ||
| <link rel="stylesheet" href="./styles/mobile.css" media="(max-width: 760px)" /> | ||
| <link rel="stylesheet" href="./styles/desktop.css" media="(min-width: 761px)" /> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <a class="logo" href="/">LOGO</a> | ||
| <nav class="container"> | ||
| <label for="hamburger"></label> | ||
| <input type="checkbox" id="hamburger"></input> | ||
| <ul class="nav"> | ||
| <li class="nav__item">HOME</li> | ||
| <li class="nav__item nav__item--hover"> | ||
| ITEMS | ||
| <ul class="nav__first-level"> | ||
| <li class="first-level__item-one">Item 1</li> | ||
| <li class="first-level__item-two"> | ||
| Item 2 | ||
| <ul class="nav__second-level"> | ||
| <li class="second-level__item-one">Item 2.1</li> | ||
| <li class="second-level__item-two">Item 2.2</li> | ||
| </ul> | ||
| </li> | ||
| <li> | ||
| <a href="#">kontakt</a> | ||
| </li> | ||
| </li> | ||
| </ul> | ||
| </li> | ||
| <li class="nav__item">SETTINGS</li> | ||
| <li class="nav__item">CONTACT</li> | ||
| </ul> | ||
| </nav> | ||
|
|
||
| </body> | ||
| </html> | ||
| </nav> | ||
| </header> | ||
| </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.
👍