Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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 @@ -19,5 +19,8 @@
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: 10px;
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.

👍

}
23 changes: 20 additions & 3 deletions 02/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
<!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">
<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/global.css"
>
<link
rel="stylesheet"
media="(min-width: 601px)"
href="./styles/tablet.css"
>
</head>

<body>
<header class="a">A</header>
<section class="c">C</section>
<main class="b">B</main>
</body>

</html>
13 changes: 12 additions & 1 deletion 02/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,34 @@
box-sizing: border-box;
}

body {
display: grid;
grid-template-areas:
"a-item"
"b-item"
"c-item";
}

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;
min-height: 50vh;

display: flex;
justify-content: center;
align-items: center;
}

.a {
grid-area: a-item;
border-color: #ffffba
}

.b {
grid-area: b-item;
border-color: #ffdfba;
}

.c {
grid-area: c-item;
border-color: #baffc9;
}
8 changes: 8 additions & 0 deletions 02/styles/tablet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
body {
margin: 0 auto;
max-width: 1200px;
display: grid;
grid-template-areas:
"a-item a-item"
"c-item b-item";
}
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.

👍

Binary file added 03/img/hero-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/img/hero-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/img/hero-tablet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 63 additions & 6 deletions 03/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,73 @@
<!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">
<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"
href="./styles/mobile.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">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Cupiditate nisi quidem, cum officia
doloremque provident consectetur beatae aut praesentium quasi eaque laborum ut soluta sint nihil itaque
reprehenderit labore. Cumque, quod assumenda! Modi sit repudiandae error pariatur quibusdam non expedita.
reprehenderit labore. Cumque, quod assumenda! Modi sit repudiandae error pariatur quibusdam non expedita.
</main>
<header class="p">
<picture>
<source srcset="img/hero-mobile.jpg">
<source
media="(min-width: 600px)"
srcset="img/hero-tablet.jpg"
>
<source
media="(min-width: 1200px)"
srcset="img/hero-desktop.jpg"
>
<img
src="../img/hero-desktop.jpg"
alt="hero-image"
>
</picture>
</header>
<side class="v">
<iframe
src="https://www.youtube.com/embed/Rik3gHT24AM?si=5sXGuaJIOi3iJmsO"
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>
22 changes: 22 additions & 0 deletions 03/styles/desktop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body {
display: grid;
max-width: 1400px;
margin: 0 auto;
grid-template-areas:
"p-picture v-video"
"t-text t-text";
}

.v {
width: 100%;
min-height: 100%;
}
.p {
width: 100%;
}
img {
width: 100%;
}
picture {
min-width: 100%;
}
4 changes: 4 additions & 0 deletions 03/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@

.v {
border-color: #baffc9;
}
img {
max-width: 100%;
height: auto;
}
35 changes: 35 additions & 0 deletions 03/styles/mobile.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
body {
display: grid;
grid-template-areas:
"p-picture"
"t-text"
"v-video";
}

.t {
grid-area: t-text;
}
.p {
grid-area: p-picture;
}
.v {
grid-area: v-video;
}

.v {
height: 0;
padding-bottom: calc(315 / 560 * 100%);
position: relative;

}
iframe {
border: 5px solid red;
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;

}


11 changes: 11 additions & 0 deletions 03/styles/tablet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
body {
/* display: grid; */
grid-template-areas:
"p-picture t-text"
"v-video t-text";
}

.p, .v {
width: 50vw;
min-width: 200px;
}
Binary file added 04/assets/211607_right_arrow_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions 04/assets/211607_right_arrow_icon.svg
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 04/assets/211687_down_arrow_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions 04/assets/211687_down_arrow_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions 04/css/desktop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.nav__container {
/* padding: 20px 0 20px 0; */
}
.nav {
display: flex;
height: 80px;
}
.nav__item {
padding: 20px 40px 20px 20px;
margin-left: 10px;
}
.arrow-down {
rotate: 0deg;
padding: 5px 0 0 10px;
}
.nav__dropdown {
left: 0;
top: 100%;
}
.dropdown__item {
position: relative;
padding: 10px 20px;
min-width: 180px;
}
.nav__dropdown-second {
left: 180px;
}
.switcher {
display: none;
}
.input {
display: none;
}
Loading