-
Notifications
You must be signed in to change notification settings - Fork 238
practice-html-and-css-basics from Neil #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
f657a20
b20b78b
3a482cf
14e6aab
184d4a3
e263faa
681e084
e4c1c1f
e465a62
9d2ee64
b928a33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,193 @@ | ||
| <!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> | ||
|
|
||
| </body> | ||
| </html> | ||
| <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>NG Dev - Home</title> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <img src="./Capture.PNG" alt="Logo NG Dev" width="200" /> | ||
| <nav> | ||
| <ul> | ||
| <li><a href="/">Home</a></li> | ||
| <li> | ||
| <a href="/travel">Traveling</a> | ||
| <ul> | ||
| <li><a href="/travel/germany">Germany</a></li> | ||
| <li><a href="/travel/switzerland">Switzerland</a></li> | ||
| <li><a href="/travel/usa">USA</a></li> | ||
| <li><a href="/travel/japan">Japan</a></li> | ||
| <li><a href="/travel/kenia">Kenia</a></li> | ||
| </ul> | ||
| </li> | ||
| <li> | ||
| <a href="/learn">Learning</a> | ||
| <ul> | ||
| <li><a href="/learn/software">Software Development</a></li> | ||
| <li> | ||
| <a href="/learn/security">IT Security</a> | ||
| <ul> | ||
| <li> | ||
| <a href="/learn/security/pentest">Penetration Testing</a> | ||
| </li> | ||
| <li> | ||
| <a href="/learn/security/analyst">Security Analyst</a> | ||
| </li> | ||
| <li> | ||
| <a href="/learn/security/engineer">Security Engineer</a> | ||
| </li> | ||
| </ul> | ||
| </li> | ||
| <li> | ||
| <a href="/learn/cloud">Cloud</a> | ||
| <ul> | ||
| <li><a href="/learn/cloud/aws">AWS</a></li> | ||
| <li><a href="/learn/cloud/azure">Azure</a></li> | ||
| <li><a href="/learn/cloud/gcp">Google Cloud</a></li> | ||
| </ul> | ||
| </li> | ||
| </ul> | ||
| </li> | ||
| </ul> | ||
| </nav> | ||
| </header> | ||
| <main> | ||
| <article> | ||
| <h2><a href="/travel/germany">Visit Oktoberfest in Germany</a></h2> | ||
| <img | ||
| src=".\1280px-Haupteingang_Oktoberfest_2012.jpg" | ||
| alt="Oktoberfest main entrance" | ||
| width="400px" | ||
| /> | ||
| <p> | ||
| Oktoberfest in Germany, held annually in Munich, is the world's | ||
| largest folk festival, attracting millions of visitors. It is famous | ||
| for its traditional Bavarian beer served in massive tents, lively | ||
| music, and hearty food like pretzels, sausages, and roast chicken.<br /> | ||
| Visitors wear traditional outfits like lederhosen and dirndls, adding | ||
| to the festive atmosphere. Beyond beer, Oktoberfest features amusement | ||
| rides, parades, and cultural performances, making it a unique blend of | ||
| tradition and celebration.<br /> | ||
| <time datetime="2024-10-31">31.01.2025</time> <br /> | ||
| <author>Neil Gorski</author> | ||
| </p> | ||
| <table> | ||
| <caption> | ||
| Oktoberfest statistics | ||
| </caption> | ||
| <thead> | ||
| <tr> | ||
| <th scope="col">Year</th> | ||
| <th scope="col">Attendence (Million)</th> | ||
| <th scope="col">Beer Consupsion (Million Liters)</th> | ||
| <th scope="col">Notes</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>2024</td> | ||
| <td>6.7</td> | ||
| <td>7.0</td> | ||
| <td>Beer prices reached up to €15 per liter</td> | ||
| </tr> | ||
| <tr> | ||
| <td>2023</td> | ||
| <td>7.2</td> | ||
| <td>6.5</td> | ||
| <td> | ||
| Record attendance; increase in non-alcoholic drinks (+50%) and | ||
| food sales (+15%) | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td>2022</td> | ||
| <td>5.7</td> | ||
| <td>7.1</td> | ||
| <td>Festival returns after two-year break</td> | ||
| </tr> | ||
| <tr> | ||
| <td>2021</td> | ||
| <td>0</td> | ||
| <td>0</td> | ||
| <td>Canceled due to COVID-19</td> | ||
| </tr> | ||
| <tr> | ||
| <td>2020</td> | ||
| <td>0</td> | ||
| <td>0</td> | ||
| <td>Canceled due to COVID-19</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
| </article> | ||
| <hr /> | ||
| <form> | ||
| <fieldset> | ||
| <legend>Have you already been there?</legend> | ||
| <label for="name">What's your name?</label><br /> | ||
| <input type="text" id="name" value="Frank Messner" /><br /> | ||
| <label for="message">Tell us your Story.</label><br /> | ||
| <textarea name="comment" id="message" cols="50" rows="5"></textarea | ||
| ><br /> | ||
| <input type="submit" /> | ||
| </fieldset> | ||
| </form> | ||
| <hr /> | ||
| <div class="comments"> | ||
| <div class="comment"> | ||
| <author>Flynn Wilson</author><br /> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Takiego znacznika nie ma, można użyć atrybutu rel="author" np. |
||
| <time datetime="2024-12-10">10.12.2024</time> | ||
| <p> | ||
| As I stepped into Oktoberfest, the energy was electric—music, | ||
| laughter, and the clinking of massive beer steins filled the air. | ||
| Dressed in my freshly bought lederhosen, I found a spot in a packed | ||
| beer tent, where strangers quickly became friends over a shared Maß. | ||
| The rich aroma of roasted chicken and pretzels tempted me between | ||
| sips of the smoothest beer I’d ever tasted. As the brass band | ||
| played, I stood on the bench, singing along with thousands of | ||
| others, completely lost in the moment. Under the glowing festival | ||
| lights, I knew—I’d be back next year. | ||
| </p> | ||
| </div> | ||
|
|
||
| <div class="comment"> | ||
| <author>Ruth Byrd</author><br /> | ||
| <time datetime="2024-11-3">3.11.2024</time> | ||
| <p> | ||
| The moment I entered Oktoberfest, I was swept up in a whirlwind of | ||
| music, laughter, and the smell of sizzling bratwurst. I grabbed a | ||
| Maß of golden beer, its foam spilling over as I toasted with | ||
| strangers who felt like old friends. The band struck up a lively | ||
| tune, and before I knew it, I was standing on a bench, singing at | ||
| the top of my lungs. Between bites of warm pretzels and spinning | ||
| rides, I felt pure joy. As the night ended, I smiled, knowing this | ||
| was an experience I’d never forget. | ||
| </p> | ||
| </div> | ||
| <div class="comment"> | ||
| <author>Fatimah Best</author><br /> | ||
| <time datetime="2024-11-30">30.11.2024</time> | ||
| <p> | ||
| As I stepped into Oktoberfest, I expected a dreamlike festival, but | ||
| the reality was different. The crowds were overwhelming, pushing in | ||
| every direction, and finding a seat in a beer tent felt impossible. | ||
| When I finally got a Maß, the price nearly made me choke—€15 for a | ||
| single beer! The music was deafening, and after hours of standing | ||
| shoulder to shoulder with sweaty strangers, the excitement faded. | ||
| The lines for food were endless, and even the famous pretzel felt | ||
| dry and overpriced. As I left, dodging puddles of spilled beer, I | ||
| couldn’t help but think—maybe Oktoberfest just isn’t for me. | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </main> | ||
| <footer> | ||
| <p> | ||
| © 2022-2025 <a href="mailto:info@ng-dev.com">NG-DEV.com</a>. All | ||
| rights reserved. | ||
| </p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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; | ||
|
|
@@ -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; | ||
| } | ||
|
|
||
|
|
@@ -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); | ||
|
|
@@ -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); | ||
| } | ||
|
|
||
|
|
@@ -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:active ~ article { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
|
|
||
| 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. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,54 @@ | ||
| <!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" /> | ||
| <link rel="stylesheet" href="./styles/reset.css" /> | ||
| <link rel="stylesheet" href="./styles/style.css" /> | ||
| <title>devmentor.pl - HTML & CSS BASICS - #03</title> | ||
| </head> | ||
| <body> | ||
|
|
||
| <section class="parent parent--inline-block"> | ||
| <div class="child child--first"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.</div> | ||
| <div class="child child--middle"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!</div> | ||
| <div class="child child--last"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div> | ||
| </head> | ||
| <body> | ||
| <section class="parent parent--inline-block"><!-- | ||
| --><div class="child child--first"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, | ||
| asperiores. | ||
| </div><!-- | ||
| --><div class="child child--middle"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis | ||
| praesentium in possimus! | ||
| </div><!-- | ||
| --><div class="child child--last"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure? | ||
| </div> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| </section> | ||
|
|
||
| <section class="parent parent--float"> | ||
| <div class="child child--first"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.</div> | ||
| <div class="child child--middle"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!</div> | ||
| <div class="child child--last"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div> | ||
| <div class="child child--first"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, | ||
| asperiores. | ||
| </div> | ||
| <div class="child child--middle"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis | ||
| praesentium in possimus! | ||
| </div> | ||
| <div class="child child--last"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure? | ||
| </div> | ||
| </section> | ||
|
|
||
| <section class="parent parent--flexbox"> | ||
| <div class="child child--first"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, asperiores.</div> | ||
| <div class="child child--middle"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis praesentium in possimus!</div> | ||
| <div class="child child--last"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure?</div> | ||
| <div class="child child--first"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo, | ||
| asperiores. | ||
| </div> | ||
| <div class="child child--middle"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis | ||
| praesentium in possimus! | ||
| </div> | ||
| <div class="child child--last"> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Delectus, iure? | ||
| </div> | ||
| </section> | ||
| </body> | ||
| </html> | ||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W HTML ukośniki robimy w drugą stronę tj.
./1280px-...