Skip to content
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

Landing-page #1816

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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 src/images/background-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icon/Icon-burger-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icon/icon-burger-menu-hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icon/icon-close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icon/icon-phone-call.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icon/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
162 changes: 158 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,176 @@
<!doctype html>
<html lang="en">
<html
lang="en"
class="page"
>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Landing Page</title>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
/>
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:[email protected]&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="./styles/main.scss"
href="styles/main.scss"
/>
<script
src="scripts/main.js"
defer
></script>
</head>
<body>
<h1>Landing Page</h1>

<body class="page_body">
<header class="header">
<div class="top-bar">
<a
href="#"
class="top-bar__logo"
>
<img
src="images/logo.png"
alt="nothing logo"
/>
</a>

<div class="top-bar__icons">
<a
href="tel:+1 234 5555-55-55"
class="icon icon--phone"
></a>
<a
href="#menu"
class="icon icon--menu"
></a>
</div>
</div>

<div class="header__bottom">
<h1 class="header__title">
Bring joy back
<br />
to the everyday
</h1>
</div>
</header>

<aside
class="menu page__menu"
id="menu"
>
<div class="top-bar menu__top">
<a
href="#"
class="top-bar__logo"
>
<img
src="images/logo.png"
alt="nothing logo"
/>
</a>
<div class="top-bar__icons">
<a
href="#"
class="icon icon--close"
></a>
</div>
</div>

<div class="menu__content">
<nav class="nav menu__nav">
<ul class="nav__list">
<li class="nav__item">
<a
href="#products"
class="nav__link"
>
Poducts
</a>
</li>
<li class="nav__item">
<a
href="#store"
class="nav__link"
>
Store
</a>
</li>
<li class="nav__item">
<a
href="#login"
class="nav__link"
>
Login
</a>
</li>
<li class="nav__item">
<a
href="#about-us"
class="nav__link"
>
About us
</a>
</li>
</ul>
</nav>
</div>
<a
href="tel:+1 234 5555-55-55"
class="menu__phone-number"
>
+1 234 5555-55-55
</a>

<a
href="tel:+1 234 5555-55-55"
class="menu__call-to-order"
>
call to order
</a>
</aside>

<main class="main">
<section
class="product"
id="products"
>
<h2>Poducts</h2>
</section>

<section
class="store"
id="store"
>
<h2>Store</h2>
</section>

<section
class="login"
id="login"
>
<h2>Login</h2>
</section>

<section
class="about-us"
id="about-us"
>
<h2>About us</h2>
</section>
</main>

<footer class="footer"></footer>
</body>
</html>
23 changes: 23 additions & 0 deletions src/styles/blocks/header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.header {
box-sizing: border-box;
height: 100vh;
background-image: url(../images/background-image.png);
background-size: cover;
background-position: center;

display: flex;
flex-direction: column;
justify-content: space-between;
}

.header__bottom {
padding: 0 20px 40px;
}

.header__title {
margin: 0;
font-size: 36px;
font-weight: 700;
line-height: 36px;
text-align: left;
}
17 changes: 17 additions & 0 deletions src/styles/blocks/icon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.icon {
display: block;
width: 24px;
height: 24px;
}

.icon--phone {
background-image: url(../images/icon/icon-phone-call.png);
}

.icon--menu {
background-image: url(../images/icon/Icon-burger-menu.png);
}

.icon--close {
background-image: url(../images/icon/icon-close.png);
}
45 changes: 45 additions & 0 deletions src/styles/blocks/menu.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.menu {
box-sizing: border-box;

height: 100vh;
background-color: #e5e6e8;
font-weight: 700;
text-transform: uppercase;
}

.menu__top {
margin-bottom: 56px;
}

.menu__content {
padding-inline: 20px;
}

.menu__phone-number {
display: block;
margin-left: 20px;
color: inherit;
font-size: 16px;
line-height: 22.4px;
letter-spacing: 2px;
text-decoration: none;
margin-bottom: 16px;
}

.menu__call-to-order {
display: block;
margin-left: 20px;
width: fit-content;
padding: 4px;
border-bottom: 1px solid #292929;

font-size: 16px;
line-height: 22.4px;
letter-spacing: 2px;
color: inherit;
text-decoration: none;
}

.menu__nav {
margin-bottom: 48px;
}
16 changes: 16 additions & 0 deletions src/styles/blocks/nav.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.nav__link {
color: inherit;
text-decoration: none;
font-size: 22px;
line-height: 22px;
letter-spacing: 2px;
}

.nav__list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 32px;
}
27 changes: 27 additions & 0 deletions src/styles/blocks/page.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.page {
font-family: 'Space Grotesk', sans-serif;
font-size: 16px;
line-height: 140%;
color: #292929;

scroll-behavior: smooth;
}

.page__body {
margin: 0;
}

.page__menu {
position: fixed;
top: 0;
left: 0;
right: 0;

opacity: 0;
pointer-events: none;
}

.page__menu:target {
opacity: 1;
pointer-events: all;
}
15 changes: 15 additions & 0 deletions src/styles/blocks/top-bar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.top-bar__logo {
display: flex;
}

.top-bar__icons {
display: flex;
gap: 24px;
}

.top-bar {
padding: 24px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
9 changes: 6 additions & 3 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
body {
margin: 0;
}
@import './blocks/page';
@import './blocks/header';
@import './blocks/icon';
@import './blocks/menu';
@import './blocks/nav';
@import './blocks/top-bar';