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
123 changes: 122 additions & 1 deletion 01/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,133 @@
<!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">
<title>devmentor.pl - HTML & CSS BASICS - #01</title>
</head>

<body>


<header class="header">
<div class="header__container container">
<h1 class="header__logo">Logo</h1>
<nav class="header__nav">Nav
<ul class="nav">
<li class="nav__item"><a href="#">Home</a></li>
<li class="nav__item"><a href="#">Portfolio</a>
<ul class="nav__dropdown">
<li class="dropdown__item"><a href="#">strony www</a></li>
<li class="dropdown__item"><a href="#">aplikacje</a></li>
</ul>
</li>
<li class="nav__item"><a href="#">Kontakt</a></li>
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.

👍

</ul>
</nav>
</div>
</header>


<main class="content">
<div class="content__container container">
<article class="main__article">
<h2 class="article__title">Tytuł artykułu</h2>
<p class="article__content">Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga doloribus
illum
recusandae cumque? Voluptatum blanditiis corporis atque, alias magni dignissimos cumque, cupiditate
minus odio dolorem minima repellendus, molestias quia. Nisi?</p>
<time datetime="25-11-2024">25-11-2024</time>
<a rel="author">Michał Majewski</a>
<figure>
<img src="" alt="">
<figcaption>opis zdjecia</figcaption>
</figure>

<table>
<caption>Dane uzytkowników</caption>
<colgroup>
<col span="1" style="background: grey;">
<col style="background: gold;">
<col style="background: gold;">
<col style="background: gold;">
<col style="background: gold;">
</colgroup>

<thead style="background: grey;">
<tr>
<th scope="col">LP.</th>
<th scope="col">Nazwa</th>
<th scope="col">Użytkownik</th>
<th scope="col">Profil</th>
<th scope="col">Ocena</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Alfa</td>
<td>User-1</td>
<td>Pełny</td>
<td>4+</td>
</tr>
<tr>
<td>2</td>
<td>Beta</td>
<td>User-2</td>
<td>Niepełny</td>
<td>3</td>
</tr>
</tbody>
</table>
</article>
<hr>
<form class="comment__form">
<input type="text" name="userName" placeholder="Nazwa użytkownika">
<p><input /></p>
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.

👍

<textarea name="comment"></textarea>
<p><input /></p>

<button type="submit">Wyślij</button>
</form>


<section class="comments__section">
<article class="comment__container">
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.

👍

<h3 class="comment__author">Jan Kowalski</h3>
<p class="comment__text">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Unde iusto ipsa architecto recusandae
libero atque quisquam placeat necessitatibus laborum similique.
</p>
<p class="comment__date">25 listopada 2024</p>
</article>
<article class="comment__container">
<h3 class="comment__author">Jan Kowalski</h3>
<p class="comment__text">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Unde iusto ipsa architecto recusandae
libero atque quisquam placeat necessitatibus laborum similique.
</p>
<p class="comment__date">25 listopada 2024</p>
</article>
<article class="comment__container">
<h3 class="comment__author">Jan Kowalski</h3>
<p class="comment__text">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Unde iusto ipsa architecto recusandae
libero atque quisquam placeat necessitatibus laborum similique.
</p>
<p class="comment__date">25 listopada 2024</p>
</article>
</section>

</div>
</main>

<footer class="footer container">
<div class="footer__container">
<section class="footer__copyrights">&copy 2024 CodeMike</section>
</div>
</footer>

</body>

</html>
12 changes: 6 additions & 6 deletions 02/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Znacznik label, którego przodkiem jest klasa .ac-container
(0, 1, 1)
*/
?? {
.ac-container label {
height: 30px !important;
line-height: 21px !important;
font-size: 12px !important;
Expand Down Expand Up @@ -47,7 +47,7 @@ Zmiana koloru tła po najechaniu przez kursor myszy na znacznik label,
który znajduje się wewnątrze elementu o klasie .ac-container
(0, 2, 1)
*/
?? {
.ac-container label:hover {
background: #fff;
}

Expand All @@ -61,8 +61,8 @@ i ten brat musi posiadać przodka o klasie .ac-container
to samo co w 1) ale z efektem najechania kursorem na label
(0, 3, 2)
*/
??,
?? {
.ac-container label:hover::before,
.ac-container input:checked + label:hover{
background: #f1f2f3;
color: #666;
text-shadow: 0 1px 1px rgba(255,255,255,0.6);
Expand All @@ -89,7 +89,7 @@ którego poprzedni brat jest zaznaczonym inputem (użyj pseudoklasy),
którego przodek to element o klasie .ac-container
(0, 3, 3)
*/
?? {
.ac-container label:hover::after {
background-image: url(../images/arrow_up.png);
}

Expand Down Expand Up @@ -126,7 +126,7 @@ Rodzeństwo o typie article, dla elementu input, który jest zaznaczony (użyj p
oraz posiada przodka o klasie .ac-container
(0, 2, 2)
*/
?? {
.ac-container input:checked ~ article {
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.

👍

-webkit-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
-moz-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
-o-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
Expand Down
Binary file added 03/assets/fonts/SourceSansPro-Bold.otf
Binary file not shown.
Binary file added 03/assets/fonts/SourceSansPro-It.otf
Binary file not shown.
Binary file added 03/assets/fonts/SourceSansPro-Regular.otf
Binary file not shown.
9 changes: 7 additions & 2 deletions 03/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<!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">
<title>devmentor.pl - HTML & CSS BASICS - #03</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="reset.css">
</head>

<body>

<section class="parent parent--inline-block">
<div class="child child--first">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.</div>
Expand All @@ -17,7 +21,7 @@
Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div>
</section>

<section class="parent parent--float">
<section class="parent parent--float clearfix">
<div class="child child--first">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.</div>
<div class="child child--middle">
Expand All @@ -35,4 +39,5 @@
Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div>
</section>
</body>

</html>
43 changes: 43 additions & 0 deletions 03/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@font-face {
font-family: 'SOURCE SANS PRO';
src: url('./assets/fonts/SourceSansPro-Bold.otf') format('opentype');
src: url('./assets/fonts/SourceSansPro-Regular.otf') format('opentype');
font-style: normal;
font-weight: bold;
}
.parent {
border: 3px solid gold;
min-width: 600px;
outline-color: green;
padding: 20px;
}
.child--first {
width: 30%;
margin-right: 10px;
font-family: 'SOURCE SANS PRO';
}
.child--middle {
width: 30%;
margin-right: 10px;
font-family: 'SOURCE SANS PRO';
font-weight: bold;
}
.child--last{
width: calc(40% - 30px);
font-family: 'SOURCE SANS PRO';
font-style: italic;
}
.parent--inline-block > .child {
display: inline-block;
}
.parent--float > .child {
float: left;
}
.clearfix::after {
content: "";
clear: both;
}
.parent--flexbox {
display: flex;
justify-content: start;
}
89 changes: 89 additions & 0 deletions 03/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {margin: 0; padding: 0; border: 0; font-size: 100%; font-weight: normal; vertical-align: baseline; background: transparent;}

main, article, aside, figure, footer, header, nav, section, details, summary {display: block;}

html {box-sizing: border-box;}

*, *:before, *:after {box-sizing: inherit;}

img {max-width: 100%;}

ul {list-style: none;} /* we'll restore bullets as needed for content */

blockquote, q {quotes: none;}

blockquote:before, blockquote:after, q:before, q:after {content: ''; content: none;}

a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;}

del {text-decoration: line-through;}

abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;}

table {border-collapse: separate; border-spacing: 0; text-align: left;}
th {font-weight: bold; vertical-align: bottom;}
td {font-weight: normal; vertical-align: top;}
td img {vertical-align: top;}

hr {display: block; height: 1px; border: 0; border-top: 1px solid #999; margin: 1rem 0; padding: 0;}

input, select {vertical-align: middle;}

pre {white-space: pre-line;}

input[type="radio"] {vertical-align: text-bottom;}
input[type="checkbox"] {vertical-align: bottom;}

small {font-size: .8rem;}

strong {font-weight: bold;}

sub, sup {font-size: .8rem; line-height: 0; position: relative;}
sup {top: -0.5rem;}
sub {bottom: -0.25rem;}

pre, code, kbd, samp {font-family: monospace, sans-serif;}

label, input[type=button], input[type=submit], input[type=file], button {cursor: pointer;}

button, input, select, textarea {margin: 0;}

ins {background-color: var(--highlight-color); color: #000; text-decoration: none;}
mark {background-color: var(--highlight-color); color: #000; font-style: italic; font-weight: bold;}

blockquote {padding: 2rem; border-left: 1px solid #333;}

.clearfix:after {content: ""; display: table; clear: both;} /* https://css-tricks.com/snippets/css/clear-fix/ */

h1, h2, h3, h4, h5, h6 {text-wrap: balance}

p {text-wrap: pretty;}

@media (prefers-reduced-motion: no-preference) {
:has(:target) {
scroll-behavior: smooth;
}
}

/* ———— END THE GENERIC RESETS ———— */

:root {
--font-system: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* https://css-tricks.com/snippets/css/system-font-stack */
--text-color: #333;
--featured-color: #03f;
--featured-color-hover: #69f;
--highlight-color: #fcd700;
}

body {font-size: 16px; font-family: var(--font-system); color: var(--text-color);}

a {color: var(--featured-color);}
a:hover {color: var(--featured-color-hover);}

@media screen and (max-width: 480px) {

}

@media print {

}
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.
Loading