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

Only mobile version #2596

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c9325fb
first commit: add reset file, add title style, add variables
kate-prakofyeva Oct 18, 2023
d84a453
positioning title in header
kate-prakofyeva Oct 18, 2023
c0c14a6
header: add background color
kate-prakofyeva Oct 18, 2023
5d057a7
add main secondary header
kate-prakofyeva Oct 18, 2023
175ead1
add cards section, add products section
kate-prakofyeva Oct 19, 2023
06e2f7b
add photos, pictures blocs
kate-prakofyeva Oct 19, 2023
fd693a6
add photos, pictures boxes
kate-prakofyeva Oct 20, 2023
5d2384a
disable aspect-ratio
kate-prakofyeva Oct 20, 2023
dd976bc
add button
kate-prakofyeva Oct 20, 2023
f7c113e
add topic block, add address block
kate-prakofyeva Oct 20, 2023
7befff9
add contacts section
kate-prakofyeva Oct 21, 2023
437cf4a
style: add variables, placeholders
kate-prakofyeva Oct 21, 2023
67cafb0
add skeleton navigation, deleted image for maimi
kate-prakofyeva Oct 21, 2023
cdbe3f6
Menu styled
kate-prakofyeva Oct 21, 2023
5decb0b
Menu transition
kate-prakofyeva Oct 21, 2023
2be5de2
Working menu
kate-prakofyeva Oct 21, 2023
4c8bb03
feat: add phone, mail, map link, refactor: mobile version
kate-prakofyeva Oct 22, 2023
c4dd9ac
fix: add margin after form
kate-prakofyeva Oct 22, 2023
7f6d9a7
fix: make textarea no-resize
kate-prakofyeva Oct 23, 2023
96229c0
feat: replace flex for grid in header, add scroll roules
kate-prakofyeva Oct 23, 2023
66c6eb4
fix: disable page scrolling
kate-prakofyeva Oct 23, 2023
4a7de18
fix: replace image for desktop
kate-prakofyeva Oct 23, 2023
201c5e6
make build
kate-prakofyeva Oct 23, 2023
3680d6f
feat: add media for desktop & tablet, add mixin
kate-prakofyeva Oct 23, 2023
1ba9351
feat: add media for section, title, add image style
kate-prakofyeva Oct 24, 2023
edd6bed
feat: button width media for desktop
kate-prakofyeva Oct 24, 2023
e0dfe66
style: layout, header background, categories, contacts sections
kate-prakofyeva Oct 24, 2023
f826d82
style: add style for about section, change brealpoint for desktop
kate-prakofyeva Oct 24, 2023
d5720e1
refactoring: add picture, add image for all screens
kate-prakofyeva Oct 24, 2023
9dc45cf
fix: hover state for navigation
kate-prakofyeva Oct 25, 2023
2b8fda1
feat: add hover state for phone icon
kate-prakofyeva Oct 25, 2023
21b08f0
fix: add grid for menu
kate-prakofyeva Oct 25, 2023
cbc4efd
refactoring: font, sizes
kate-prakofyeva Oct 25, 2023
7c37cf9
refactoring: add flex placeholder
kate-prakofyeva Oct 25, 2023
45a80f0
refactoring: style, size
kate-prakofyeva Oct 25, 2023
87c1cb8
fix: add padding for phone icon
kate-prakofyeva Oct 25, 2023
e01c92d
fix: button state, form field state
kate-prakofyeva Oct 26, 2023
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://kate-prakofyeva.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;
Binary file added src/images/Beoplay-HX.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/Beosound-A5.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/Beosound-Theatre.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/Earphones-1.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/Earphones-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/images/Icon-Burger-menu-hover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/images/Icon-Burger-menu.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: 3 additions & 0 deletions src/images/Icon-Close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/images/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.
Binary file added src/images/Portable-speakers-1.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/Portable-speakers-2.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/Smart-Home-1.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/Smart-Home-2.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/Vinyl-Player.jpg
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 modified src/images/favicon.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-background.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 removed src/images/logo.png
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/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
Diff not rendered.
Binary file removed src/images/photos/4.jpg
Diff not rendered.
Binary file removed src/images/photos/5.jpg
Diff not rendered.
Binary file removed src/images/photos/6.jpg
Diff not rendered.
250 changes: 248 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,257 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Miami</title>
<title>BANG & OLUFSEN</title>
<link rel="icon"
type="image/x-icon"
href="./images/favicon.png"
>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin="anonymous"
>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&family=Roboto:ital,wght@0,300;0,400;0,500;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles/main.scss">
<script src="scripts/main.js" defer></script>
</head>
<body>
<h1>Miami</h1>
<header class="header" id="home">
<nav class="navigation">
<a href="#home" class="navigation__logo">
<img
src="./images/logo.svg"
alt="BANG & OLUFSEN Logo"
class="navigation__image"
>
</a>
<a href="tel:+123455555555" class="navigation__phone">
<img src="./images/Icon-Phone-call.svg" alt="Phone icon">
</a>
<a href="#menu" class="navigation__burger">
<img
src="./images/Icon-Burger-menu.svg"
alt="Mobile menu icon"
>
</a>
</nav>
<h1 class="title">Your senses.
<br>
Set free.
</h1>
</header>

<div class="menu" id="menu">
<nav class="navigation">
<a href="#home" class="navigation__logo">
<img
src="./images/logo.svg"
alt="BANG & OLUFSEN Logo"
class="navigation__image"
>
</a>
<a href="#header" class="navigation__close">
<img src="./images/Icon-Close.svg" alt="Close mobile menu icon">
</a>
</nav>
<nav class="links menu__links">
<ul class="links__list">
<li class="links__item">
<a href="#recommended" class="links__link">Recommended</a>
</li>
<li class="links__item">
<a href="#categories" class="links__link">Categories</a>
</li>
<li class="links__item">
<a href="#about" class="links__link">About Us</a>
</li>
<li class="links__item">
<a href="#contacts" class="links__link">Contact Us</a>
</li>
</ul>
</nav>
<p class="menu__link menu__link--paragraph">+1 234 5555-55-55</p>
<p><a href="tel:+123455555555" class="menu__link menu__link--call">call to order</a></p>
</div>

<main class="main">
<section class="section main__recommended" id="recommended">
<h2 class="title title--secondary section__title">Recommended</h2>
<article class="card">
<div class="card__photos photos">
<img class="photos__item"
src="./images/Beosound-A5.jpg"
alt="Beosound A5 speaker"
>
</div>
<p class="card__title">BEOSOUND A5</p>
<p class="card__description">Huge sound anywhere – in the home or outdoors. Beosound A5 is a Wi-Fi and Bluetooth speaker with long-lasting battery and wireless charging built in.</p>
<p class="card__price">$ 1299.00</p>
</article>
<article class="card">
<div class="card__photos photos">
<img class="photos__item"
src="./images/Beoplay-HX.jpg"
alt="Beosound A5 speaker"
>
</div>
<p class="card__title">BEOPLAY HX</p>
<p class="card__description">Wireless noise-cancelling headphones. Listen in comfort whether you're on a call, working from home or taking a moment for yourself.</p>
<p class="card__price">$ 499.00</p>
</article>
<article class="card">
<div class="card__photos photos">
<img class="photos__item"
src="./images/Beosound-Theatre.jpg"
alt="Beosound A5 speaker"
>
</div>
<p class="card__title">BEOSOUND THEATRE</p>
<p class="card__description">Four patent-pending acoustic innovations in one sleek soundbar envelop you in sound from every angle. Made to fit any TV, and last for generations.</p>
<p class="card__price">$ 3199.00</p>
</article>
</section>

<section class="section main__categories" id="categories">
<h2 class="title title--secondary section__title">
Sound. Vision.<br>
It’s your pick.
</h2>
<article class="main__product product">
<div class="product__pictures pictures">
<img
src="./images/Portable-speakers-1.jpg"
alt="Portable speakers"
class="pictures__item"
>
<img
src="./images/Portable-speakers-2.jpg"
alt="Portable speakers"
class="pictures__item"
>
</div>
<p class="product__category">Portable speakers</p>
</article>
<article class="main__product product">
<div class="product__pictures pictures">
<img
src="./images/Earphones-1.jpg"
alt="Earphones"
class="pictures__item"
>
<img
src="./images/Earphones-2.jpg"
alt="Earphones"
class="pictures__item"
>
</div>
<p class="product__category">Earphones</p>
</article>
<article class="main__product product">
<div class="product__pictures pictures">
<img
src="./images/Smart-Home-1.jpg"
alt="Smart Home"
class="pictures__item"
>
<img
src="./images/Smart-Home-2.jpg"
alt="Smart Home"
class="pictures__item"
>
</div>
<p class="product__category">Smart Home</p>
</article>

<a href="#categories" class="button">View all</a>
</section>

<section class="main__about about" id="about">
<div class="about__image"></div>
<article class="main__description description">
<h3 class="title title--section about__title">
Timeless, for 50 years and counting
</h3>
<p class="description__paragraph">
Bang & Olufsen is expanding its Recreated Classics Program with the launch of Beosystems – a limited edition music system that transcends time by bridging the gap between one of our iconic designs from 1972 and today’s cutting-edge digital technology.
</p>
</article>
</section>

<section class="section contacts" id="contacts">
<h3 class="title title--secondary section__title">Contact us</h3>
<form
action="#"
class="section__form form"
method="get"
id="form"
>
<div class="form__item">
<label for="name" class="form__label">Name</label>
<input
type="text"
id="name"
placeholder="Name"
class="form__input"
required
minlength="2"
maxlength="30"

>
</div>
<div class="form__item">
<label for="email" class="form__label">Email</label>
<input
id="email"
placeholder="Email"
class="form__input"
required
type="email"
pattern="^(http(s){0,1}:\/\/.){0,1}[\-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([\-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)$"
>
</div>
<div class="form__item">
<label for="message" class="form__label">Message</label>
<textarea
id="message"
placeholder="Message"
class="form__textarea"
required
minlength="2"
maxlength="256"
></textarea>
</div>
<button class="button button--primary">
Send
</button>
</form>
<address class="main__address address">
<h4 class="address__label">Phone</h4>
<a href="tel:+123455555555" class="address__content">
+1 234 5555-55-55
</a>
<h4 class="address__label">Email</h4>
<a
class="address__content"
href="mailto:hello@bang&olufsen.com"
>
hello@bang&olufsen.com
</a>
<h4 class="address__label">Address</h4>
<div >
<a
class="address__content"
href="https://maps.app.goo.gl/N918GZqXPwQ5tH4CA"
target="_blank"
>
400 first ave.<br>
suite 700<br>
Minneapolis, MN 55401
</a>
</div>
</address>
</section>
</main>
</body>
</html>
7 changes: 7 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
'use strict';

const form = document.getElementById('form');

form.addEventListener('submit', (e) => {
e.preventDefault();
form.reset();
});
19 changes: 19 additions & 0 deletions src/styles/blocks/about.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.about {
display: flex;
flex-direction: column;
align-items: center;
background: $secondary-bg-color;

&__title {
margin-bottom: 24px;
}

&__image {
width: 100%;
min-height: 200px;
background-image: url(../images/Vinyl-Player.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
}
34 changes: 34 additions & 0 deletions src/styles/blocks/address.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.address {
&__label {
color: $label-text-color;
font-family: $primary-font-family;
font-size: 14px;
font-weight: 400;
line-height: 140%; /* 19.6px */
letter-spacing: 0.15px;
margin-bottom: 8px;
}

&__content {
display: block;
color: $primary-text-color;
font-family: $primary-font-family;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 140%; /* 22.4px */
letter-spacing: 0.15px;
margin-bottom: 24px;
@extend %link-style;
@extend %link-no-highlight;

&:last-child {
margin-bottom: 0;
}

&:active,
&:focus {
@extend %link-no-highlight;
}
}
}
Loading
Loading