Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions 01/style.css
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);
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

54 changes: 41 additions & 13 deletions 02/styles/global.css
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';
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The 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
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The 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;
}
}
Binary file added 03/images/image-1200.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 03/images/image-1400.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 03/images/image-600.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 45 additions & 4 deletions 03/index.html
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>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


</body>

</html>
8 changes: 8 additions & 0 deletions 03/styles/desktop.css
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;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

46 changes: 33 additions & 13 deletions 03/styles/global.css
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%;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

7 changes: 7 additions & 0 deletions 03/styles/tablet.css
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;
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

12 changes: 9 additions & 3 deletions 04/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
<!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/style.css">
<title>devmentor.pl - HTML & CSS: RWD - #04</title>
</head>

<body>

<nav>

<nav class="navigation">
<label for="switch"></label>
<input type="checkbox" id="switch">
<ul>
<li>
<a href="#">start</a>
</li>
<li>
<a href="#">oferta</a>
<ul>
<ul class="dropdown-menu">
<li><a href="">strony internetowe</a></li>
<li><a href="">pozycjonowanie stron www</a></li>
</ul>
Expand All @@ -27,4 +32,5 @@
</nav>

</body>

</html>
Loading