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

Adding header and footer #2656

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 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
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;
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Miami",
"name": "bose-page",
"version": "1.0.0",
"description": "Miami landing page",
"scripts": {
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/category/imgFifth.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/category/imgFirst.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/category/imgFourth.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/category/imgSecond.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/category/imgSixth.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/category/imgThird.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/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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
251 changes: 249 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,249 @@
></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 class="burger-menu navigation__burger-menu">
<section class="burger-menu__container">
<img
src="./images/Logo.svg"
alt="logo"
class="burger-menu__logo"
/>
<ul class="burger-menu__options">
<li class="burger-menu__links">
<a
class="burger-menu__link"
href="#home"
>
home
</a>
</li>
<li class="burger-menu__links">
<a
class="burger-menu__link"
href="#recommended"
>
recommended
</a>
</li>
<li class="burger-menu__links">
<a
class="burger-menu__link"
href="#categories"
>
categories
</a>
</li>
<li class="burger-menu__links">
<a
class="burger-menu__link"
href="#how-to-buy"
>
how to buy
</a>
</li>
<li class="burger-menu__links">
<a
class="burger-menu__link"
href="#home"
>
contact
</a>
</li>
</ul>
<div class="burger-menu__contact-info">
<p class="burger-menu__tel-num">+1 234 5555-55-55</p>
<p class="burger-menu__tel-text">call to order</p>
</div>
</section>
</nav>
</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>
<main class="content">
<section
id="recommended"
class="content__recommended recommended"
>
<h2
class="recommended__title"
data-title=" "
>
Recommended
</h2>
<div class="products-container recommended__products-container">
<article class="products-container__item">
<img
class="products-container__image"
src="./images/photos/recommended/portable-smart-speaker.png"
alt="Portable smart speaker"
/>
<p class="products-container__name">Bose portable Smart speaker</p>
<p class="products-container__type">Smart home</p>
<p class="products-container__cost">$ 399.00</p>
</article>
<article class="products-container__item">
<img
class="products-container__image"
src="./images/photos/recommended/bluetooth-speaker.png"
alt="Bluetooth speaker"
/>
<p class="products-container__name">
SoundLink Flex Bluetooth speaker
</p>
<p class="products-container__type">Portable bluetooth</p>
<p class="products-container__cost">$ 149.00</p>
</article>
<article class="products-container__item">
<img
class="products-container__image"
src="./images/photos/recommended/bluetooth-speaker-II.png"
alt="Bluetooth speaker II"
/>
<p class="products-container__name">
SoundLink Color Bluetooth speaker II
</p>
<p class="products-container__type">Portable bluetooth</p>
<p class="products-container__cost">$ 129.00</p>
</article>
</div>
</section>
<section
id="category"
class="content__category category"
>
<h2
class="category__title"
data-title=" "
>
Browse Bose products by category
</h2>
<div class="category__type">
<section
class="category__img-container"
position="left"
>
<img
class="category__img"
src="./images/photos/category/imgFirst.png"
alt=" "
/>
<img
class="category__img"
src="./images/photos/category/imgSecond.png"
alt=" "
/>
</section>
<p class="category__type-title">Headphones & earbuds</p>
</div>
<div class="category__type">
<section
class="category__img-container"
position="left"
>
<img
class="category__img"
src="./images/photos/category/imgThird.png"
alt=" "
/>
<img
class="category__img"
src="./images/photos/category/imgFourth.png"
alt=" "
/>
</section>
<p class="category__type-title">Speakers</p>
</div>
<div class="category__type">
<section
class="category__img-container"
position="right"
>
<img
class="category__img"
src="./images/photos/category/imgFifth.png"
alt=" "
/>
<img
class="category__img"
src="./images/photos/category/imgSixth.png"
alt=" "
/>
</section>
<p class="category__type-title">Audio sunglasses</p>
</div>
</section>
<section
id="how-to-buy"
class="content__how-to-buy how-to-buy"
>
<article class="how-to-buy__container">
<h2
class="how-to-buy__title"
data-title=" "
>
Why buy direct from Bose
</h2>
<div class="how-to-buy__detail">
<ul class="how-to-buy__reasons">
<li class="how-to-buy__reason">
Free 2-day shipping and returns
</li>
<li class="how-to-buy__reason">90-day risk-free trial</li>
<li class="how-to-buy__reason">World class customer service</li>
<li class="how-to-buy__reason">My Bose account management</li>
</ul>
<p class="how-to-buy__text">
A great product is more than what’s in the box. It’s a promise of
premium performance, world-class support, and everything you
expect from a trusted brand. It’s just one of many reasons why
you’ll shop with confidence on Bose.com.
</p>
</div>
</article>
</section>
<section
id="contact"
class="content__contact contact"
></section>
</main>
<footer class="footer"></footer>
</body>
</html>
10 changes: 10 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
'use strict';

const burgerMenuButton = document.querySelector(
'.navigation__item--burger-menu',
);
const burgerMenu = document.querySelector('.burger-menu');

burgerMenuButton.addEventListener('click', () => {
burgerMenu.classList.toggle('burger-menu--active');
burgerMenuButton.classList.toggle('navigation__item--burger-menu--active');
});
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.

Loading
Loading