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
192 changes: 192 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>themeWagon</title>
<!-- <link rel="stylesheet" href="../task-html-and-css-basics/reset.css" /> -->
<script
src="https://kit.fontawesome.com/02b621b881.js"
crossorigin="anonymous"
></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="../task-html-and-css-basics/style.css" />
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 poprawny adres to ./style.css - ścieżki piszmy względem głównego katalogu, a "ponad".

Ta zmiana spowoduje, żę inne obrazki nie będą działać - trzeba by było je poprawić.
Raczej standardowo, pobierając repo to uruchamiamy jego zawartość względem tego katalogu z repo tj. task-html-and-css-basics - niestety w obecnej wersji to nie zadziała.

</head>
<body>
<header class="header">
<nav class="header__nav wrapper">
<div class="header__nav--logo">
<h1>nova</h1>
</div>
<div class="header__nav--menu" id="#" <a href="#"></a>
<a href="#team">The Team</a>
<a href="#pricing">Pricing</a>
Comment on lines +26 to +28
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.

Pamiętaj o semantyce - tutaj zdecydowanie pasuje nav, dodatkowo osobiscie wolą strukturę ul > li, niż samo a, ale to nie błąd.

<a href="#features">Features</a>
</div>
</nav>
<div class="header__front wrapper">
<div class="header__front--text">
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 można wrzucić article :)

<h2>Beautiful Free Nova template</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam
exercitationem repellendus beatae!
</p>
<button class="header__front--btn">Download FREE</button>
</div>
</div>
<div class="header__front wrapper">
<div class="header__front--img"></div>
</div>
Comment on lines +42 to +44
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.

Można też figure > img

PS. Pamiętaj, że Modyfikator z BEM nie występuje sam:
https://devmentor.pl/b/metodologia-bem-w-css-i-sass

<div class="header__front--arrow-down">
<a href="#features" id="#features"<i class="fa-solid fa-arrow-down"></i></a>
</div>
</header>

<main id="features" class="main">
<div class="main__features wrapper">
<h2>features</h2>
</div>
<div class="main__features--list wrapper">
<div class="main__features--list-one display-flex">
Comment on lines +54 to +55
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 również można użyć ul > li bo to lista cech więc ta struktura pasuje. Każde li to osobna cecha.

<i class="fa-solid fa-phone icon-list"></i>
<h3>fully responsive</h3>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero
sapiente, in rerum cumque voluptatum voluptatibus.
</p>
</div>
<div class="main__features--list-two display-flex">
<i class="fa-solid fa-screwdriver-wrench icon-list"></i>
<h3>castomizable</h3>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel optio
deleniti porro eligendi, impedit quasi! Lorem ipsum dolor sit amet.
</p>
</div>
<div class="main__features--list-three display-flex">
<i class="fa-solid fa-medal icon-list"></i>
<h3>slick and beautiful disign</h3>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore vero
voluptas debitis ducimus minima fugit.
</p>
</div>
</div>

<div class="logos">
<div class="logos__img wrapper"></div>
</div>

<div class="apple">
<div class="apple__img"></div>
<div class="apple__info">
<h3>Simple and beautiful</h3>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Architecto, alias. Necessitatibus, voluptates iure. Rem, dolore.
Corporis, doloribus beatae perferendis voluptate facilis ut ipsum
dolore vel reprehenderit cupiditate vitae reiciendis atque enim
aperiam sunt ex. Numquam voluptas adipisci maxime modi ratione?
Aliquid eum consequatur mollitia ipsam laudantium facilis minima
natus magni.
</p>
</div>
</div>

<section id="pricing" class="pricing">
<div class="pricing__info wrapper">
<h3>choose your pricing plan</h3>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque,
facilis.
</p>
</div>

<div class="pricing__offers wrapper">
<div class="pricing__offer">
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.

Sporo jest div-ów więc zrobiłbym article dla każdego pakietu cenowego, bo to oddzielna, jasna spójna całość.

<h4 class="pricing__offer--title">basic</h4>
<p class="pricing__offer-price">$15</p>
<p class="pricing__offer--month">per month</p>
<p>Up to 7 Projects</p>
<p>2 Additional Developers</p>
Comment on lines +115 to +116
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 lista cech dla konktretnej wersji cenowej więc powinno być ul > li

<button type="submit" class="pricing__offer--btn btn-one">
Get Started
</button>
</div>
<div class="pricing__offer">
<h4 class="pricing__offer--title">agency</h4>
<p class="pricing__offer-price">$55</p>
<p class="pricing__offer--month">per month</p>
<p>Up to 25 Projects</p>
<p>2 Additional Developers</p>
<p>Unlimited Support</p>
<button type="submit" class="pricing__offer--btn btn-two">
Get Started
</button>
</div>
<div class="pricing__offer">
<h4 class="pricing__offer--title">Pro</h4>
<p class="pricing__offer-price">$75</p>
<p class="pricing__offer--month">per month</p>
<p>Up to 25 Projects</p>
<p>2 Additional Developers</p>
<p>Unlimited Support</p>
<p>1.5Gb Disk Space</p>
<button type="submit" class="pricing__offer--btn btn-three">
Get Started
</button>
</div>
</div>
</section>
<section id="team" class="team">
<div class="team__title wrapper">the team</div>
<div class="team__people wrapper">
<div class="team__people--img">
<div class="team__people--img-one"></div>
<div class="team__people--img-info">
<p class="team__people--img-title">cto</p>
<p class="team__people--img-name">Johnny B Good</p>
<p>Lorem ipsum dolor sit amet.</p>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-facebook"></i>
</div>
</div>
<div class="team__people--img">
<div class="team__people--img-two"></div>
<div class="team__people--img-info">
<p class="team__people--img-title">ceo</p>
<p class="team__people--img-name">Roll Over Beethoven</p>
<p>Lorem ipsum dolor sit amet.</p>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-facebook"></i>
</div>
</div>
<div class="team__people--img">
<div class="team__people--img-three"></div>
<div class="team__people--img-info">
<p class="team__people--img-title">cfo</p>
<p class="team__people--img-name">Chuck Berry</p>
<p>Lorem ipsum dolor sit amet.</p>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-facebook"></i>
</div>
</div>
</div>
</section>

<footer class="footer">
<div class="footer__info">
<p>
A free template by webscope <a href="#" <i class="fa-solid fa-arrow-up"></i
></a>
</p>
</div>
</footer>
</main>
</body>
</html>
109 changes: 109 additions & 0 deletions reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/***
The new CSS reset - version 1.11.2 (last updated 15.11.2023)
GitHub page: https://github.com/elad2412/the-new-css-reset
***/

/*
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
- The "symbol *" part is to solve Firefox SVG sprite bug
- The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
*/
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
all: unset;
display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
box-sizing: border-box;
}

/* Fix mobile Safari increase font-size on landscape mode */
html {
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}

/* Reapply the pointer cursor for anchor tags */
a, button {
cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol, ul, menu, summary {
list-style: none;
}

/* For images to not be able to exceed their container */
img {
max-inline-size: 100%;
max-block-size: 100%;
}

/* removes spacing between cells in tables */
table {
border-collapse: collapse;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
input, textarea {
-webkit-user-select: auto;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
-webkit-appearance: revert;
appearance: revert;
}

/* preformatted text - use only for this feature */
:where(pre) {
all: revert;
box-sizing: border-box;
}

/* reset default text opacity of input placeholder */
::placeholder {
color: unset;
}

/* fix the feature of 'hidden' attribute.
display:revert; revert to element instead of attribute */
:where([hidden]) {
display: none;
}

/* revert for bug in Chromium browsers
- fix for the content editable attribute will work properly.
- webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
:where([contenteditable]:not([contenteditable="false"])) {
-moz-user-modify: read-write;
-webkit-user-modify: read-write;
overflow-wrap: break-word;
-webkit-line-break: after-white-space;
-webkit-user-select: auto;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
-webkit-user-drag: element;
}

/* Revert Modal native behavior */
:where(dialog:modal) {
all: revert;
box-sizing: border-box;
}

/* Remove details summary webkit styles */
::-webkit-details-marker {
display: none;
}
Loading