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
28 changes: 17 additions & 11 deletions 01/index.html
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>
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;
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;
}
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.

👍

61 changes: 48 additions & 13 deletions 02/styles/global.css
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;
}
}
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/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.
60 changes: 47 additions & 13 deletions 03/index.html
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>
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.

👍

19 changes: 19 additions & 0 deletions 03/styles/desktop.css
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;
}
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.

👍

47 changes: 34 additions & 13 deletions 03/styles/global.css
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%;
}
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.

👍

4 changes: 4 additions & 0 deletions 03/styles/mobile.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.t,
.v {
order: 1;
}
19 changes: 19 additions & 0 deletions 03/styles/tablet.css
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;
}
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.

👍

60 changes: 35 additions & 25 deletions 04/index.html
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>
Loading