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
151 changes: 148 additions & 3 deletions 01/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,157 @@
<!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 BASICS - #01</title>
</head>

<body>

<div>
<header>
<h1>logo</h1>
<nav>
<ul>
<li>
<a href="#">start</a>
</li>
<li>
<a href="#">portfolio</a>
<ul>
<li>
<a href="#">www</a>
</li>
<li>
<a href="#">app</a>
</li>
<li>
<a href="#">SEO</a>
</li>
</ul>
</li>
<li>
<a href="#">kontakt</a>
</li>
</ul>
</nav>

</header>
<main>
<article>
<h2>Tytul</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Et perspiciatis
nostrum eos natus deserunt
repellat quasi libero voluptate, quidem distinctio nobis quaerat. Vitae velit nisi nostrum molestiae
deleniti veritatis provident quas corrupti, modi sint, asperiores ea, quo repellendus sed iusto
possimus exercitationem ipsa maiores? Tenetur maiores ipsam animi eius. Ex tenetur ad aliquam ut cum
illum quaerat eos, laudantium quas, tempore voluptates minima rerum ea rem? Atque fugit odio
reprehenderit, numquam adipisci ad debitis architecto in dicta qui voluptatem dolor libero
temporibus possimus eum doloribus repudiandae eius perferendis. Iste omnis facilis alias tempora,
sapiente laboriosam quo non veritatis et cumque!</p>
<time>2025-03-25</time><span>Michal Wasiak</span>

<figure><img
src="https://cdn.pixabay.com/photo/2022/11/02/12/30/islands-7564775_1280.jpg"
alt="Ludzie spacerujacy po plazy na tle skal w oceanie"
>
<figcaption></figcaption>
</figure>
<table>
<caption>Cennik</caption>

<thead>
<tr>
<th>Usluga</th>
<th>Cena</th>
<th>Czas realizacji</th>
</tr>
</thead>
<tbody>
<tr>
<td>SEO</td>
<td>300 PLN</td>
<td>3 miesiace</td>
</tr>
<tr>
<td>Strona WWW</td>
<td>1999 PLN</td>
<td>2 tygodnie</td>
</tr>
<tr>
<td>Aplikacja webowa</td>
<td>4999 PLN</td>
<td>4 tygodnie</td>
</tr>
</tbody>
</table>
</article>
<form>
<div>
<h2>Dodaj komentarz</h2>
<label>Imie
<input
type="text"
placeholder="Podaj swoje Imie"
>
</label>
<label class="form__item">Nazwisko
<input
type="text"
placeholder="Podaj swoje Nazwisko"
>
</label>
<label class="form__item">Komentarz
<textarea
rows="10"
name="komentarz"
placeholder="Napisz swoj komentarz"
></textarea>
</label>
<input
type="submit"
value="Wyslij komentarz"
>
</div>
</form>
<section>
<h2>Komentarze</h2>
<ul>
<li>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iste, ea?</p>
<span>John Doe</span>
<time>2025-02-20</time>
</li>

<li>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iste, ea?</p>
<span>Jan Kowalski</span>
<time>2025-01-29</time>
</li>
<li>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iste, ea?</p>
<span>Andrzej Kwiatkowski</span>
<time>2024-12-20</time>
</li>
<li>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Iste, ea?</p>
<span>Anna Mucha</span>
<time>2024-02-20</time>
</li>
</ul>
</section>
</main>
<footer>
<p>&copy; Michal Wasiak</p>
</footer>
</div>
</body>

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.

👍

</html>
70 changes: 35 additions & 35 deletions 02/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
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;
font-family: 'Open Sans','Arial Narrow',Arial,sans-serif !important;
font-family: 'Open Sans', 'Arial Narrow', Arial, sans-serif !important;
padding: 5px 20px;
position: relative;
z-index: 20;
display: block;
height: 30px;
cursor: pointer;
color: #777;
text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
line-height: 33px;
font-size: 19px;
background: #fff;
background: -moz-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(1%,#fff),color-stop(100%,#eaeaea));
background: -webkit-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: -o-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: -ms-linear-gradient(top,#fff 1%,#eaeaea 100%);
background: linear-gradient(top,#fff 1%,#eaeaea 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff',endColorstr='#eaeaea',GradientType=0 );
box-shadow: 0 0 0 1px rgba(155,155,155,0.3),1px 0 0 rgba(255,255,255,0.9) inset,0 2px 2px rgba(0,0,0,0.1);
background: -moz-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #fff), color-stop(100%, #eaeaea));
background: -webkit-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: -o-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: -ms-linear-gradient(top, #fff 1%, #eaeaea 100%);
background: linear-gradient(top, #fff 1%, #eaeaea 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff', endColorstr='#eaeaea', GradientType=0);
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3), 1px 0 0 rgba(255, 255, 255, 0.9) inset, 0 2px 2px rgba(0, 0, 0, 0.1);
font-size: 12px;
height: 30px;
line-height: 20px;
Expand All @@ -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,19 +61,19 @@ 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 input:checked+label,
.ac-container input:checked+label:hover {
background: #f1f2f3;
color: #666;
text-shadow: 0 1px 1px rgba(255,255,255,0.6);
box-shadow: 0 0 0 1px rgba(155,155,155,0.3),0 2px 2px rgba(0,0,0,0.1);
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3), 0 2px 2px rgba(0, 0, 0, 0.1);
height: 30px;
line-height: 21px;
font-size: 13px;
}

.ac-container label:hover:after,
.ac-container input:checked + label:hover:after {
.ac-container input:checked+label:hover:after {
content: '';
position: absolute;
width: 24px;
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 input:checked+label:hover::after {
background-image: url(../images/arrow_up.png);
}

Expand All @@ -98,17 +98,17 @@ którego przodek to element o klasie .ac-container
}

.ac-container article {
background: rgba(255,255,255,0.5);
background: rgba(255, 255, 255, 0.5);
margin-top: -1px;
overflow: hidden;
height: 0;
position: relative;
z-index: 10;
-webkit-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-moz-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-o-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-ms-transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
transition: height 0.3s ease-in-out,box-shadow 0.6s linear;
-webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
-ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
}

.ac-container article p {
Expand All @@ -117,7 +117,7 @@ którego przodek to element o klasie .ac-container
line-height: 23px;
font-size: 10px;
padding: 20px;
text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
font: normal normal 12px 'Open Sans';
}

Expand All @@ -126,23 +126,23 @@ 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)
*/
?? {
-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;
-ms-transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
transition: height 0.5s ease-in-out,box-shadow 0.1s linear;
box-shadow: 0 0 0 1px rgba(155,155,155,0.3);
.ac-container input:checked ~ article {
-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;
-ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
box-shadow: 0 0 0 1px rgba(155, 155, 155, 0.3);
}

.ac-container input:checked ~ article.ac-small {
.ac-container input:checked~article.ac-small {
height: 140px;
}

.ac-container input:checked ~ article.ac-medium {
.ac-container input:checked~article.ac-medium {
height: 180px;
}

.ac-container input:checked ~ article.ac-large {
.ac-container input:checked~article.ac-large {
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.

👍

height: 230px;
}
43 changes: 43 additions & 0 deletions 03/fonts/SIL Open Font License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the copyright statement(s).

"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.

5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file added 03/fonts/SourceSansPro-Black.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-BlackIt.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-Bold.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-BoldIt.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-ExtraLight.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-ExtraLightIt.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-It.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-Light.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-LightIt.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-Regular.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-Semibold.otf
Binary file not shown.
Binary file added 03/fonts/SourceSansPro-SemiboldIt.otf
Binary file not shown.
Loading