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
116 changes: 115 additions & 1 deletion 01/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,126 @@
<!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>
<div class="logo">
<img src="logo.png" alt="Site Logo" width="100" height="50">
</div>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li>
<a href="#">Categories</a>
<ul>
<li><a href="/category1">Category 1</a></li>
<li><a href="/category2">Category 2</a></li>
<li><a href="/category3">Category 3</a></li>
</ul>
</li>
<li><a href="/contact">Contact</a></li>
</ul>
</nav>
</header>

<main>
<article>
<h1>Article Title</h1>

<section>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec auctor, nisl eget aliquam tincidunt,
nisl
nunc aliquet nunc, vel malesuada nunc nunc et nunc. Vivamus non magna vel orci efficitur ultricies.
</p>
<p>Aliquam erat volutpat. Integer commodo, mauris sit amet consectetur consequat, nisl nunc aliquet
nunc,
eget aliquam nunc nunc et nunc.</p>
</section>

<p><small>Published: <time datetime="2025-01-30">30 January 2025</time> | Author: John Smith</small></p>

<figure>
<img src="articleimage.jpg" alt="Article Image" width="100" height="100">
<figcaption>Article Image Description</figcaption>
</figure>

<table>
<caption>Example Table</caption>
<thead>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
</tr>
<tr>
<td>Data 4</td>
<td>Data 5</td>
<td>Data 6</td>
</tr>
</tbody>
</table>
</article>

<section id="comments">
<h2>Add Comment</h2>

<form action="/" method="POST">
<div>
<label for="author">Name:</label>
<input type="text" id="author" name="author" required>
</div>

<div>
<label for="comment">Comment:</label>
<textarea id="comment" name="comment" rows="4" required></textarea>
</div>

<button type="submit">Submit</button>
</form>

<div class="comment">
<header>
John Smith <small> - <time datetime="2025-01-31T10:00">31 January 2025, 10:00</time></small>
</header>

<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit.</p>
</div>

<div class="comment">
<header>
James Jones <small> - <time datetime="2025-01-31T12:30">31 January 2025, 12:30</time></small>
</header>

<p>Sequi quam dolorum quia possimus velit ut nulla corrupti fuga mollitia quae, ducimus laboriosam assumenda esse!</p>
</div>
</section>
</main>

<footer>
<div>&copy; 2025 devmentor.pl. All rights reserved.</div>
<nav>
<ul>
<li>
<a href="/">home</a>
</li>
<li>
<a href="/contact">contact</a>
</li>
</ul>
</nav>
</footer>
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>
14 changes: 7 additions & 7 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 @@ -44,10 +44,10 @@ Znacznik label, którego przodkiem jest klasa .ac-container

/*
Zmiana koloru tła po najechaniu przez kursor myszy na znacznik label,
który znajduje się wewnątrze elementu o klasie .ac-container
który znajduje się wewnątrz 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 input:checked + label,
.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 input:checked + 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
3 changes: 2 additions & 1 deletion 03/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
<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="./styles/index.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 Down
43 changes: 43 additions & 0 deletions 03/source-sans-pro/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/source-sans-pro/SourceSansPro-Black.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-BlackIt.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-Bold.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-BoldIt.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-ExtraLight.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-ExtraLightIt.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-It.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-Light.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-LightIt.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-Regular.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-Semibold.otf
Binary file not shown.
Binary file added 03/source-sans-pro/SourceSansPro-SemiboldIt.otf
Binary file not shown.
73 changes: 73 additions & 0 deletions 03/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* Import czcionki Source Sans Pro */
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: normal;
src: url('/03/source-sans-pro/SourceSansPro-Regular.otf') format('opentype');
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.

Raczej wstawiałbym ścieżki względne niż bezwzględne. W zależności od sposobu uruchamiania takiej strony ścieżka względna tj. ./03/source-sans-pro/SourceSansPro-Regular.otf - będzie częściej prawidłowa niż wzlędna tj. zaczynająca się od ukośnika tj. / - bo to oznacza katalog główny aplikacji, a nie zawsze jest on zgodny z adresem "plików statycznych".

}

@font-face {
font-family: 'Source Sans Pro';
font-style: italic;
font-weight: normal;
src: url('/03/source-sans-pro/SourceSansPro-It.otf') format('opentype');
}

@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: bold;
src: url('/03/source-sans-pro/SourceSansPro-Bold.otf') format('opentype');
}

body {
font-family: 'Source Sans Pro', sans-serif;
box-sizing: border-box;
font-weight: normal;
font-style: normal;
}

.parent {
width: 600px;
padding: 20px;
margin-bottom: 20px;
}

.parent--flexbox {
display: flex;
}

.parent--inline-block {
font-size: 0;
}

.parent--inline-block .child {
font-size: initial;
display: inline-block;
vertical-align: top;
}

.parent--float .child {
float: left;
}

.child--first,
.child--middle {
margin-right: 10px;
width: calc(30% - 10px);
}

.child--middle {
font-weight: bold;
}

.child--last {
width: 40%;
font-style: italic;
}

.parent::after {
content: "";
display: table;
clear: both;
}
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.

👍

43 changes: 43 additions & 0 deletions 04/assets/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 04/assets/fonts/SourceSansPro-Regular.otf
Binary file not shown.
40 changes: 40 additions & 0 deletions 04/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +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">
<title>devmentor.pl - HTML & CSS BASICS - #04</title>

<link rel="stylesheet" href="./styles/index.css">
</head>

<body>
<header>
<nav class="header-nav">
<ul class="nav-list">
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.

Nie chcesz spróbować używać BEM?
https://devmentor.pl/b/metodologia-bem-w-css-i-sass

<li><a href="/" title="Home">Home</a></li>
<li class="has-items">
<span class="menu-title">Items<span class="arrow arrow-down">></span></span>

<ul>
<li><a href="/item1" title="item1">Item 1</a></li>
<li class="has-items">
<span class="submenu-title">Item 2<span class="arrow arrow-right">></span></span>

<ul>
<li><a href="/item2.1" title="item2.1">Item 2.1</a></li>
<li><a href="/item2.2" title="item2.2">Item 2.2</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="/settings" title="settings">Settings</a></li>
<li><a href="/contact" title="contact">Contact</a></li>
</ul>
</nav>
</header>
</body>

</html>
Loading