Skip to content

Commit

Permalink
Header almoust done and footer ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Karanelus committed Jun 4, 2024
1 parent 03b8d7d commit 4254052
Show file tree
Hide file tree
Showing 35 changed files with 333 additions and 49 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ In this task, you will learn how to implement a landing page. To do that:
- [Nothing](https://www.figma.com/file/DtkQmQ797hk0nI4KfMi2Uq/BOSE-New-Version?type=design&node-id=6802-139&t=L7eKz5YKLN0m5WxR-0)
- watch the lesson videos and implement your page blocks similarly to the videos;
- **DON'T** try to do it `Pixel Perfect` - implement it the most `simple` way so it looks similar;
- when you finish the first block of your page deploy it and create a Pull Request with a [DEMO LINK](https://<your_account>.github.io/layout_miami/)
- when you finish the first block of your page deploy it and create a Pull Request with a [DEMO LINK](https://Karanelus.github.io/layout_miami/)
- after each next block do the same (add, commit and push the changes, and deploy the updated demo;
- check yourself using the [CHECKLIST](https://github.com/mate-academy/layout_miami/blob/master/checklist.md) when finished;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@linthtml/linthtml": "^0.9.5",
"@mate-academy/bemlint": "latest",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^1.7.3",
"@mate-academy/scripts": "^1.8.1",
"@mate-academy/stylelint-config": "latest",
"@parcel/transformer-sass": "^2.12.0",
"jest": "^29.7.0",
Expand Down
Binary file removed src/fonts/Roboto-Regular-webfont.woff
Binary file not shown.
9 changes: 9 additions & 0 deletions src/images/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/images/cross.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/images/crown.svg

This file was deleted.

Binary file removed src/images/favicon.png
Binary file not shown.
Binary file removed src/images/logo.png
Binary file not shown.
3 changes: 0 additions & 3 deletions src/images/menu.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/images/menu_hover.svg

This file was deleted.

3 changes: 0 additions & 3 deletions src/images/phone.svg

This file was deleted.

Binary file removed src/images/photos/1.jpg
Binary file not shown.
Binary file removed src/images/photos/2.jpg
Binary file not shown.
Binary file removed src/images/photos/3.jpg
Binary file not shown.
Binary file removed src/images/photos/4.jpg
Binary file not shown.
Binary file removed src/images/photos/5.jpg
Binary file not shown.
Binary file removed src/images/photos/6.jpg
Binary file not shown.
10 changes: 10 additions & 0 deletions src/images/photos/Icon-Phone-call.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/images/photos/Sound-waves.svg
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/photos/footer.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/photos/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 47 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Miami</title>
<title>BOSE</title>
<link
rel="shortcut icon"
href="./images/photos/Sound-waves.svg"
/>
<link
rel="stylesheet"
href="./styles/main.scss"
Expand All @@ -17,6 +21,47 @@
></script>
</head>
<body>
<h1>Miami</h1>
<header
class="header"
id="home"
>
<nav class="navigation header__navigation">
<img
src="./images/Logo.svg"
alt="logo"
class="navigation__logo"
/>
<ul class="navigation__list">
<li class="navigation__item navigation__item--phone">
<img
src="./images/photos/Icon-Phone-call.svg"
alt="Number"
class="navigation__item--phone__logo"
/>
<div class="navigation__item--phone--number">
<p class="navigation__item--phone--number--on-hover">
+1 234 555-55-55
</p>
</div>
</li>
<li class="navigation__item navigation__item--burger-menu">
<div class="navigation__item--burger-menu--part"></div>
</li>
</ul>
</nav>
<section class="motto header__motto">
<img
class="motto__img"
src="./images/photos/Sound-waves.svg"
alt=" "
/>
<h1 class="motto__text">
The world shades.
<br />
Your music shines.
</h1>
</section>
</header>
<footer class="footer"></footer>
</body>
</html>
6 changes: 0 additions & 6 deletions src/styles/_fonts.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/styles/_typography.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/styles/_utils.scss

This file was deleted.

14 changes: 14 additions & 0 deletions src/styles/blocks/footer.scss
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;
}
}
50 changes: 50 additions & 0 deletions src/styles/blocks/header.scss
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%;
}
}
30 changes: 30 additions & 0 deletions src/styles/blocks/motto.scss
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;
}
}
}
94 changes: 94 additions & 0 deletions src/styles/blocks/navigation.scss
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;
}
}
}
}
}
1 change: 1 addition & 0 deletions src/styles/fonts/_fonts.scss
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';
15 changes: 8 additions & 7 deletions src/styles/main.scss
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';
4 changes: 0 additions & 4 deletions src/styles/utils/_extends.scss

This file was deleted.

41 changes: 41 additions & 0 deletions src/styles/utils/_global.scss
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;
}
Loading

0 comments on commit 4254052

Please sign in to comment.