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
Binary file added 01/JA
Binary file not shown.
31 changes: 0 additions & 31 deletions 01/README.md

This file was deleted.

106 changes: 103 additions & 3 deletions 01/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,112 @@
<!DOCTYPE html>
<html lang="pl">
<html lang="en">
<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>
<title>Kurs maturalny z matematyki</title>
</head>
<body>

<div id="nav">
<header>
<img src="/my solutions/2/logo.jpg" alt="200">
<ul>
<li> <a href="#">O mnie</a> </li>
<li> <a href="#">rodzaje kursów</a> </li>
<ul>
Comment on lines +15 to +16
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.

Zwróć uwagę, że </li> ma być przed </ul>. Ten element zawiera menu podrzędne tj.

<li> 
    <a href="#">rodzaje kursów</a>
    <ul>
    ...
    </ul>
</li>

<li> <a href="#">podstawowy</a> </li>
<li> <a href="#">rozszerzony</a></li>
</ul>
<li> <a href="#">cennik</a> </li>
<li> <a href="#">recenzje</a> </li>
<li> <a href="#">formularz kontatkowy</a> </li>
</ul>
</header>
</div>

<div id="hero">
<article>
<h2>O mnie</h2>
<img src="/my solutions/2/JA" alt="200">
<p>Nauczaniem matematyki zajmuje się 8 lat. W tym czasie udało mi się skutecznie pomóc kilkuset uczniom w zdaniu egzaminów – głównie szkoły średniej, a także ósmoklasistom (kiedyś absolwentom gimnazjów). Mam kilka autorskich planów przygotowania do matury podstawowej i rozszerzonej (w zależności od czasu i zaangażowania ucznia). Pomagam również w zrozumieniu bieżącego materiału z lekcji lub wykładu.</p>
<table border="1">
<caption>Cennik</caption>
<colgroup>
<col span="3" style="background: wheat;">
</colgroup>
<thead>
<tr>
<th scope="col">Rodzaj lekcji</th>
<th scope="col">Czas trwania</th>
<th scope="col">Cena</th>
</tr>
</thead>
<tbody>
<tr>
<td>Online</td>
<td>50 minut</td>
<td>75 zł</td>
</tr>
<tr>
<td>Stacjonarna</td>
<td>50 minut</td>
<td>75 zł</td>
</tr>
</tbody>
</table>
<br/>
<footer>
<time datetime="2.09.2024">2 września 2024</time>
<p>Autor: Piotr Palka</p>
</footer>
</article>
</div>
<div id="form">
<form>
<h3>Formularz kontaktowy</h3>
<div>
<label>Imię
<input name="First name"/>
</label>
</div>
<div>
<label>Nazwisko
<input name="Last name"/>
</label>
</div>
<div>
<label>Treść
<input type="text" size="50">
</label>
</div>
<div>
<input type="submit"/>
</div>
</form>
</div>
<div id="testimonials">
<div>
<h3>Komentarze uczniów</h3>
<p>
<em>
Bardzo polecam korepetycje. Konkretna pomoc i miłe podejście. Wynik z matury bardzo satysfakcjonujący!
</em>
</p>
<p>Wiktor</p>
<time datetime="3.07.2023">3 lipca 2023</time>
<hr/>
<p>
<em>
Świetne podejście do ucznia, oraz ogromne umiejętności przekazywania wiedzy. Korepetycje zawsze przebiegały w miłej atmosferze, bez presji i stresu. Z czystym sumieniem mogę polecić Pana Piotra, dzięki jego korepetycjom wynik matury przeszedł moje najśmielsze oczekiwania!
</em>
</p>
<p>Jagoda</p>
<time datetime="2.07.2024">2 lipca 2024</time>
</div>
</div>
<div id="contact"></div>
<footer>
<p> &copy; Matematyka Twoja Przyszłość. Wszelkie prawa zastrzeżone</p>
</footer>
</body>
</html>
Binary file added 01/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion 02/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<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 - #02</title>

<link rel="stylesheet" href="./styles/index.css">
</head>
<body>
Expand Down
15 changes: 8 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 {
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: 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 {
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.

👍

background: #fff;
}

Expand All @@ -60,9 +60,10 @@ i ten brat musi posiadać przodka o klasie .ac-container
2)
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 {
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.

👍

background: #f1f2f3;
color: #666;
text-shadow: 0 1px 1px rgba(255,255,255,0.6);
Expand All @@ -89,7 +90,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 {
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.

👍

background-image: url(../images/arrow_up.png);
}

Expand Down Expand Up @@ -126,7 +127,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
1 change: 1 addition & 0 deletions 03/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<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="style/style.css">
</head>
<body>

Expand Down
63 changes: 63 additions & 0 deletions 03/style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
@font-face {
font-family: 'Source Sans Pro';
src: url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700;italic&display=swap');
font-style: normal;
font-weight: 400;
}

/* Podstawowy styl dla .parent */
.parent {
width: 600px;
padding: 20px;
margin: 20px auto;
border: 1px solid #ccc;
box-sizing: border-box;
}

/* Podstawowe style dla .child */
.child {
padding: 10px;
background-color: #f0f0f0;
box-sizing: border-box;
}

/* Szerokości dla .child */
.child--first {
width: 30%;
font-family: 'Source Sans Pro', sans-serif;
font-weight: 400; /* Regular */
}

.child--middle {
width: 30%;
font-family: 'Source Sans Pro', sans-serif;
font-weight: 700; /* Bold */
}

.child--last {
width: 40%;
font-family: 'Source Sans Pro', sans-serif;
font-style: italic; /* Italic */
}

/* Odstęp między elementami */
.child:not(:last-child) {
margin-right: 10px;
}

/* Pozycjonowanie za pomocą inline-block */
.parent--inline-block .child {
display: inline-block;
vertical-align: top;
}

/* Pozycjonowanie za pomocą float */
.parent--float .child {
float: left;
}
Comment on lines +55 to +57
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.

Używając float trzeba pamiętać też o tzw. clearfix-e. Czyli musimy dodać nowy element, jako ostatnie dziecko i mu przypisać "clear: both". Wtedy zawartość czyli "dzieci" wypełnią rodzica. Więcej informacje znajdziesz w materiałach :)


/* Pozycjonowanie za pomocą flexbox */
.parent--flexbox {
display: flex;
justify-content: space-between;
}
35 changes: 35 additions & 0 deletions 04/assets/index.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.

Uwaga na odpowiednią lokalizację pliku. Nie powinien być on w katalogu assets, tylko wyżej tj. w bezpośrednio w 04

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="/04/style/style.css">
</head>
<body>
<nav>
<ul class="menu">
<li><a href="#">HOME</a></li>
<li><a href="#">ITEMS <div class="rotated">></div>
</a> <!-- Strzałka w dół -->
<ul class="submenu">
<li><a href="#">Item 1 ></a>
<ul class="submenu">
<li><a href="#">Item 1.1</a></li>
<li><a href="#">Item 1.2</a></li>
</ul>
</li>
<li><a href="#">Item 2 ></a> <!-- Strzałka w prawo -->
<ul class="submenu">
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.

Zwróć uwagę, że to menu pokazuje się na tej samej linii co to wyżej - tak nie powinno być.
Powinno wyświetlać się na tym samym poziomie co "item 2" i iść w dół.
Wystarczy dla elementu li przypisać position: relative i po problemie ;)

<li><a href="#">Item 2.1</a></li>
<li><a href="#">Item 2.2</a></li>
</ul>
</li>
</ul>
</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.

Tutaj jest już dobrze zamknięty ten element! 👍

<li><a href="#">SETTINGS</a></li>
<li><a href="#">CONTACT</a></li>
</ul>
</nav>
</body>
</html>
Empty file added 04/index.html
Empty file.
64 changes: 64 additions & 0 deletions 04/style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: whitesmoke;
}
nav {
background-color: white;
padding: 10px;
}
.menu {
list-style: none;
display: flex;
justify-content: flex-start;
}
.menu > li {
position: relative;
margin-right: 20px;
}

.menu li a {
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.

Zdecydowanie łatwiej jest przypisać każdemu elementowi klasę i ją stylować, zamiast używać nazw znaczników.
Czyli zamiast pisać .menu li a lepiej będzie napisać .link

text-decoration: none;
color: #333;
padding: 10px 15px;
display: block;
}
.menu li a:hover {
color: rgb(66, 98, 202);
}
.submenu {
display: none;
position: absolute;
top: 100%;
left: 0;
background-color: #333;
list-style: none;
padding: 0;
}
.submenu li a {
padding: 10px 15px;
color: white;
text-decoration: none;
display: block;
background-color: #262626;
}
.submenu li a:hover {
color: wheat;
background-color: #383737;
}
.submenu .submenu {
top: 0;
left: 100%;
}
.menu li:hover > .submenu {
display: block;
}
.rotated {
position: relative;
transform: rotate(90deg);
float: right;
}
Loading