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
5 changes: 4 additions & 1 deletion 01/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
min-width: 320px;
max-width: 600px;
text-align: justify;

}

.content::before {
Expand All @@ -19,5 +20,7 @@
height: 0;
border: 150px solid #dcdcdc;
border-right-color: transparent;
border-bottom-color: transparent;
border-bottom-color: transparent;
shape-outside: polygon(0 0, 0% 100%, 100% 0);
margin-right: 1rem;
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.

👍

}
33 changes: 32 additions & 1 deletion 02/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.a, .b, .c {
border: 3px solid transparent;
min-height: 50px;

width: 100%;
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -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 {
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.

UWaga na kolejność elementów przy szerszym ekranie (patrz readme.md)

grid-column: 1;
grid-row: 2;
}

.c {
grid-column: 2;
grid-row: 2;
}
}
Binary file added 03/assets/cat-desktop.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/assets/cat-mobile.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/assets/cat-tablet.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/assets/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 40 additions & 3 deletions 03/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
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>
114 changes: 112 additions & 2 deletions 03/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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.

👍

}
3 changes: 3 additions & 0 deletions 04/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
29 changes: 16 additions & 13 deletions 04/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
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.

👍

</li>
</ul>
</nav>

</body>
</html>
Loading