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 #1871

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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/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/about-us/about-us-name.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/about-us/contact-us-email.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/categories/accessories-block.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/categories/accessories-phone.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/categories/all-products-birds.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/categories/all-products-box.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/categories/audio-earphone.jpg
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/categories/audio-earphones.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/header-bg-mobile.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/icons/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/icons/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/icons/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/logo__nothing.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/products/ear-stick-photo.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/products/earphone-photo.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/products/phone-photo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
445 changes: 441 additions & 4 deletions src/index.html

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions src/styles/blocks/about-us.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.about-us {
@include page-grid;

@include on-tablet {
padding-top: 56px;
}

&__title {
margin-top: 0;
grid-column: 1 / -1;

@include on-tablet {
grid-column: 1 / 4;
}

@include on-desktop {
grid-column: span 6;
}
}

&__content {
// margin-top: 24px;
grid-column: 1 / -1;

@include on-tablet {
grid-column: 4 / 7;
}

@include on-desktop {
grid-column: 7 / 13;
}
}

&__descriptions {
margin: 0;
line-height: 22.4px;
}
}
67 changes: 67 additions & 0 deletions src/styles/blocks/categories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
.categories {
&__wrapper {
display: grid;
row-gap: 40px;

@include on-tablet {
row-gap: 56px;
}
}
}

.category {
&__photos {
@include page-grid;

margin-bottom: 16px;
}

&__link {
@include hover(transform, scale(1.05));

position: relative;

&--wide {
@include on-tablet {
grid-column: span 4;
}

@include on-desktop {
grid-column: span 8;
}
}

&--square {
height: 0;
padding-bottom: 100%;

@include on-tablet {
grid-column: span 2;
}

@include on-desktop {
grid-column: span 4;
}
}
}

&__photo {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}

&__title {
margin: 0;
font-weight: 700;
font-size: 18px;

@include on-tablet {
font-size: 24px;

// line-height: 140%;
}
}
}
91 changes: 91 additions & 0 deletions src/styles/blocks/contacts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.contacts {
// width: 100%;
&__container {
@include page-grid;

&--wraper {
grid-column: 1 / -1;

@include on-tablet {
grid-column: 1 / -1;
}

@include on-desktop {
grid-column: span 5;
}
}

&--blocks {
grid-column: 1 / -1;

@include on-tablet {
grid-column: 1 / -1;
}

@include on-desktop {
grid-column: 7 / 13;
}
}
}

&__wraper {
display: grid;
row-gap: $row-gap-contacts;
}

&__text-area {
margin-bottom: 32px;
resize: none;
}

&__button {
margin-bottom: 48px;
border: 2px solid #f0f1f4;
cursor: pointer;

&:hover {
@include hover(box-shadow, 4px 3px 2px 2px #d5d7de);
}

&:focus {
@include hover(box-shadow, 1px 4px 16px 2px $main-text-color);
}
}

@include on-tablet {
&__button {
margin-bottom: 80px;
}
}

&__blocks {
&--thin-type {
@include contacts-block-thin;
}

&--bold-type {
@include contacts-block-bold;
@include hover(color, #036654);
}
}
}

.input {
background-color: $contacts-input-background-color;
width: $contacts-input-width;
height: $contacts-input-height;
box-sizing: border-box;
border-radius: 8px;
border: none;
padding: 16px 14px;
font-size: 14px;
font-weight: 400;

// &:hover {
// border: 1px solid #D5D7DE;
// }

&__textarea {
height: auto;
}
}
29 changes: 29 additions & 0 deletions src/styles/blocks/header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.header {
// display: none;
background-image: url(../images/header-bg-mobile.png);
background-size: cover;
background-position: center;

// margin: 0;

// @include content-padding-inline;

&__title {
margin: 0;
font-weight: 700;
font-size: 36px;
line-height: 36px;
margin-bottom: 16px;
}

&__content {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
}

&__bottom {
padding-bottom: 40px;
}
}
52 changes: 52 additions & 0 deletions src/styles/blocks/icon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.icon {
display: block;
height: 24px;
width: 24px;

background-image: url(../images/icons/icon-burger-menu.png);
background-size: cover;

@include on-tablet {
height: 32px;
width: 32px;
}

&--menu {
@include hover(transform, scale(1.2));

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

&--phone {
@include hover(transform, scale(1.2));

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

&--phone::after {
position: absolute;
content: '+1 234 555 55 55';
width: 150px;
top: 10px;
color: #2b0303;
font-size: 12px;
font-weight: 700;
line-height: 16px;
letter-spacing: 2px;
text-align: right;
transition: transform 0.4;
right: 50px;
transform: scale(0);
}

&:hover::after {
transform: scale(1.2);
}

&--close {
@include hover(transform, scale(1.2));

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

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

&__top {
margin-bottom: 32px;
}

&__nav {
margin-bottom: 48px;
}

&__phone-number {
color: inherit;
text-decoration: none;
display: block;
font-size: 16px;
line-height: 22.4px;
letter-spacing: 2px;

margin-bottom: 16px;
}

&__call-to-order {
color: inherit;
text-decoration: none;
display: block;
padding-bottom: 4px;
border-bottom: 1px solid $main-text-color;
width: fit-content;

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

line-height: 22px;
font-size: 22px;
letter-spacing: 2px;
}

&__list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 32px;
}
}
29 changes: 29 additions & 0 deletions src/styles/blocks/page.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.page {
font-family: 'Space Grotesk', sans-serif;
color: $main-text-color;

scroll-behavior: smooth;

&__body {
margin: 0;
}

&__menu {
position: fixed;
top: 0;
left: 0;
right: 0;

opacity: 0;
pointer-events: none;

&:target {
opacity: 1;
pointer-events: all;
}
}
}

.page:has(.page__menu:target) {
overflow: hidden; /* not to scroll the page */
}
5 changes: 5 additions & 0 deletions src/styles/blocks/product.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.product {
&__photo {
width: 100%;
}
}
Loading