-
Notifications
You must be signed in to change notification settings - Fork 238
task from practice-html-and-css-basics #209
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
Open
code-mike-code
wants to merge
8
commits into
devmentor-pl:master
Choose a base branch
from
code-mike-code:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2a6d460
task 01 done
code-mike-code b745efa
task 02 done
code-mike-code 1cc57b7
task 03 done
code-mike-code f5f5302
task 04 done
code-mike-code d13cee1
task 05 done
code-mike-code 25673ee
task 05 done
code-mike-code 618952d
task 01,03,04 corrected
code-mike-code 7268d5d
task 03 corrected
code-mike-code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| </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> | ||
|
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. 👍 |
||
| <textarea name="comment"></textarea> | ||
| <p><input /></p> | ||
|
|
||
| <button type="submit">Wyślij</button> | ||
| </form> | ||
|
|
||
|
|
||
| <section class="comments__section"> | ||
| <article class="comment__container"> | ||
|
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. 👍 |
||
| <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">© 2024 CodeMike</section> | ||
| </div> | ||
| </footer> | ||
|
|
||
| </body> | ||
|
|
||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 label:hover::before, | ||
| .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 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:checked ~ 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; | ||
|
|
||
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
|
|
||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👍