generated from mate-academy/gulp-template
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Header almoust done and footer ready
- Loading branch information
Showing
35 changed files
with
333 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,14 @@ | ||
.footer { | ||
background: url('../images/photos/footer.png') top center no-repeat; | ||
background-size: cover; | ||
height: var(--footer-height); | ||
width: 100dvw; | ||
|
||
@media screen and (max-width: 1259px) { | ||
--footer-height: 25rem; | ||
} | ||
|
||
@media screen and (max-width: 743px) { | ||
--footer-height: 12.5rem; | ||
} | ||
} |
This file contains 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,50 @@ | ||
@use '../utils/vars' as *; | ||
|
||
.header { | ||
align-content: space-between; | ||
animation: header-animation 1.5s ease; | ||
background: url('../images/photos/header.png') center no-repeat; | ||
background-size: cover; | ||
display: grid; | ||
flex-direction: column; | ||
height: var(--header-height); | ||
width: 100dvw; | ||
|
||
> * { | ||
margin-inline: auto; | ||
} | ||
|
||
@media screen and (max-width: 1259px) { | ||
--header-height: 48.38rem; | ||
--nav-width: 37.5rem; | ||
} | ||
|
||
@media screen and (max-width: 743px) { | ||
--header-height: 35.5rem; | ||
--nav-width: 17.5rem; | ||
--motto-m: 2.5rem; | ||
} | ||
|
||
&__navigation { | ||
align-items: center; | ||
display: flex; | ||
height: 6rem; | ||
justify-content: space-between; | ||
padding-block: 2rem; | ||
width: var(--nav-width); | ||
} | ||
|
||
&__motto { | ||
margin-bottom: var(--motto-m); | ||
width: var(--nav-width); | ||
} | ||
} | ||
|
||
@keyframes header-animation { | ||
from { | ||
background-size: 125%; | ||
} | ||
to { | ||
background-size: 100%; | ||
} | ||
} |
This file contains 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,30 @@ | ||
.motto { | ||
&__img { | ||
margin-bottom: var(--motto-img-mb); | ||
|
||
@media screen and (max-width: 1259px) { | ||
--motto-img-mb: 2.5rem; | ||
} | ||
|
||
@media screen and (max-width: 743px) { | ||
--motto-img-mb: 1rem; | ||
} | ||
} | ||
|
||
&__text { | ||
font-size: var(--motto-font-size); | ||
font-family: Inter, sans-serif; | ||
font-style: italic; | ||
font-weight: 800; | ||
line-height: var(--motto-font-size); | ||
letter-spacing: -1.5px; | ||
|
||
@media screen and (max-width: 1259px) { | ||
--motto-font-size: 2.5rem; | ||
} | ||
|
||
@media screen and (max-width: 743px) { | ||
--motto-font-size: 2rem; | ||
} | ||
} | ||
} |
This file contains 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,94 @@ | ||
@use '../utils/vars' as *; | ||
|
||
.navigation { | ||
@media screen and (max-width: 743px) { | ||
--nav-button-size: 1.5rem; | ||
--nav-logo-size: 1rem; | ||
} | ||
|
||
&__logo { | ||
height: var(--nav-logo-size); | ||
} | ||
|
||
&__list { | ||
align-items: center; | ||
display: flex; | ||
gap: 1rem; | ||
justify-content: center; | ||
list-style: none; | ||
} | ||
|
||
&__item { | ||
aspect-ratio: 1; | ||
cursor: pointer; | ||
display: grid; | ||
height: var(--nav-button-size); | ||
place-items: center; | ||
position: relative; | ||
transition: 0.5s ease; | ||
|
||
&--phone { | ||
&--number { | ||
text-align: left; | ||
height: var(--nav-button-size); | ||
left: calc(-3.1 * var(--nav-button-size)); | ||
line-height: var(--nav-button-size); | ||
font-size: 0.75rem; | ||
font-weight: 700; | ||
overflow: hidden; | ||
pointer-events: none; | ||
position: absolute; | ||
top: 0; | ||
width: calc(3.1 * var(--nav-button-size)); | ||
|
||
&--on-hover { | ||
transform: translateX(110%); | ||
transition: 0.5s; | ||
} | ||
} | ||
} | ||
|
||
&:hover &--number &--number--on-hover { | ||
transform: none; | ||
} | ||
|
||
&--burger-menu { | ||
&--part { | ||
background-color: $natual-black; | ||
border-radius: 100dvh; | ||
height: $burger-menu-height; | ||
position: relative; | ||
width: 1.5rem; | ||
|
||
&::before, | ||
&::after { | ||
background-color: $natual-black; | ||
border-radius: 100dvh; | ||
content: ''; | ||
height: $burger-menu-height; | ||
position: absolute; | ||
transition: 0.5s ease; | ||
width: 1.5rem; | ||
} | ||
|
||
&::before { | ||
top: -0.5rem; | ||
} | ||
|
||
&::after { | ||
top: 0.5rem; | ||
} | ||
} | ||
|
||
&:hover &--part { | ||
&::before { | ||
width: 1.13rem; | ||
} | ||
|
||
&::after { | ||
width: 0.75rem; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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 @@ | ||
@import 'https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'; |
This file contains 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,7 +1,8 @@ | ||
@import 'utils'; | ||
@import 'fonts'; | ||
@import 'typography'; | ||
|
||
body { | ||
background: $c-gray; | ||
} | ||
@use './utils/global' as *; | ||
@use './utils/vars' as *; | ||
@use './utils/mixins' as *; | ||
@use './fonts/fonts' as *; | ||
@use './blocks/header.scss'; | ||
@use './blocks/navigation.scss'; | ||
@use './blocks/motto.scss'; | ||
@use './blocks/footer.scss'; |
This file was deleted.
Oops, something went wrong.
This file contains 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,41 @@ | ||
@use './vars' as *; | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
color: $natual-black; | ||
} | ||
|
||
img, | ||
picture, | ||
video, | ||
svg { | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
font-style: italic; | ||
display: block; | ||
max-width: 100%; | ||
} | ||
|
||
button, | ||
input, | ||
textarea, | ||
select { | ||
font: inherit; | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration-line: none; | ||
} | ||
|
||
body { | ||
background: $natual-white; | ||
min-width: 100dvh; | ||
font-family: Roboto, sans-serif; | ||
display: grid; | ||
grid-template-rows: auto 1fr auto; | ||
} |
Oops, something went wrong.