Skip to content
Open

Develop #2743

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
95cff0c
Initial commit
ani-wska Mar 3, 2026
edf48b1
Extract title styles to block title
ani-wska Mar 3, 2026
5013b67
Positioning title in header
ani-wska Mar 5, 2026
030eccf
Setting header background
ani-wska Mar 5, 2026
6e70505
HTML for main section
ani-wska Mar 5, 2026
1871e8b
CSS for main secondary header
ani-wska Mar 5, 2026
ab47e0c
CSS for main secondary header
ani-wska Mar 5, 2026
985e180
HTML for Recomended
ani-wska Mar 5, 2026
fd18c59
HTML for recommended (new)
ani-wska Mar 5, 2026
7416ac2
Recommended styled
ani-wska Mar 11, 2026
f41f909
HTML for Browse Bose section
ani-wska Mar 11, 2026
599952a
View all button
ani-wska Mar 11, 2026
e612c5f
Why buy .... styled
ani-wska Mar 12, 2026
f5ea3f2
HTML for form
ani-wska Mar 12, 2026
451405d
Visually hidden form labels
ani-wska Mar 12, 2026
a0bd76c
Form and "Send" button styled
ani-wska Mar 12, 2026
39302e0
HTML for adress
ani-wska Mar 12, 2026
61da756
Adress styled
ani-wska Mar 12, 2026
c602530
Footer styled
ani-wska Mar 12, 2026
efe13cb
Navigation skeleton
ani-wska Mar 12, 2026
2fcda36
HTML for menu ready
ani-wska Mar 12, 2026
a5ae5b1
Menu icons and background
ani-wska Mar 12, 2026
b38ceaa
HTML ready for styling links
ani-wska Mar 16, 2026
69035e5
Styling links
ani-wska Mar 16, 2026
ff77473
Menu fully styled and button corrected
ani-wska Mar 16, 2026
1972e57
Menu transition
ani-wska Mar 16, 2026
c0ab544
Menu is working
ani-wska Mar 16, 2026
a4b284c
Sound wave above title
ani-wska Mar 16, 2026
1ec1cb7
Media queries for header
ani-wska Mar 17, 2026
f8009d3
Mixins for navigation ready
ani-wska Mar 17, 2026
891e358
Mixins for Recommended
ani-wska Mar 17, 2026
26d15a8
Titles fixed
ani-wska Mar 17, 2026
2c7610a
Title corrections
ani-wska Mar 17, 2026
29a4611
Buttons fixed
ani-wska Mar 19, 2026
88ae4ab
Why buy... section for medium and desktop screens
ani-wska Mar 20, 2026
5dc97d9
Contact us block for medium and desktop screens
ani-wska Mar 20, 2026
d0b4684
Footer fixed
ani-wska Mar 22, 2026
56a2bb9
Header background fixed
ani-wska Mar 22, 2026
73f0887
Navigation fixed
ani-wska Mar 23, 2026
f152334
Hover for menu links
ani-wska Mar 23, 2026
657f714
add project
ani-wska Mar 25, 2026
999aee2
add task solution
ani-wska Mar 30, 2026
ebfd781
add task solution
ani-wska Apr 2, 2026
04ef058
add task solution
ani-wska Apr 18, 2026
139a206
add task solution
ani-wska Apr 23, 2026
a5fc5c2
add task solution
ani-wska May 5, 2026
34b4bfc
add task solution
ani-wska May 7, 2026
b4a91d6
add task solution
ani-wska May 9, 2026
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
29 changes: 29 additions & 0 deletions .github/workflows/test.yml-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- name: Upload HTML report(backstop data)
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: report
path: backstop_data
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ raw_reports
reports
cypress/screenshots
cypress/videos
main.css
main.css.map
204 changes: 188 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,194 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Miami</title>
<link
rel="stylesheet"
href="src/styles/main.scss"
/>
<script
src="src/scripts/main.js"
defer
></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="src/images/Logo.svg"
type="image/svg">
<title>Boost</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto:wght@753&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/styles/main.css">
</head>
<body>
<h1>Miami</h1>
<header class="header" id="header">
<nav class="navigation header__navigation">
<a href="">
<img class="navigation__logo" src="src/images/Logo.svg"
alt="Logo">
</a>
<a class="phone navigation__phone" href="tel:+1 234 555-55-55"><span class="phone__label">+1 234 555-55-55</span><img src="src/images/Icon-Phone-call.svg" alt="Phone"></a>
<a href="#menu" class="burger navigation__icon"><span class="burger__label">Open menu</span></a>
</nav>
<h1 class="title title--decorated header__title">The world shades.<br>Your music shines.</h1>
</header>

<div class="menu" id="menu">
<nav class="navigation">
<img class="navigation__logo" src="src/images/Logo.svg"
alt="Logo">
<a href="#header">
<img class="navigation__icon" src="src/images/Icon-Close.svg"
alt="Menu">
</a>
</nav>

<nav class="links menu__links">
<ul class="links__list">
<li class="links__item"><a href="#header" class="links__link">Home</a></li>
<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="#how-to-buy" class="links__link">How to buy</a></li>
<li class="links__item"><a href="#contacts" class="links__link">Contacts</a></li>
</ul>
</nav>

<p class="menu__paragraph">+1 234 5555-55-55</p>
<p class="menu__paragraph">
<a href="#" class="menu__link">call to order</a>
</p>

</div>

<main class="main">
<h2 id="recommended" class="title title--secondary">Recommended</h2>

<section class="recommended">
<article class="article">
<!-- <div class="pictures"> -->
<img class="article__image" src="src/images/Image1.jpg" alt="">
<!-- </div> -->
<p class="article__name">Bose portable Smart speaker</p>
<p class="article__category">Smart home</p>
<p class="article__price">$ 399.00</p>
</article>

<article class="article">
<!-- <div class="pictures"> -->
<img class="article__image" src="src/images/Image2.jpg" alt="">
<!-- </div> -->
<p class="article__name">SoundLink Flex Bluetooth speaker</p>
<p class="article__category">Portable bluetooth</p>
<p class="article__price">$ 149.00</p>
</article>

<article class="article">
<!-- <div class="pictures"> -->
<img class="article__image" src="src/images/Image3.jpg"
alt="Picture 1">
<!-- </div> -->
<p class="article__name">SoundLink Color Bluetooth speaker II</p>
<p class="article__category">Portable bluetooth</p>
<p class="article__price">$ 129.00</p>
</article>
</section>

<h2 id="categories" class="title title--third">Browse Bose<br>products by<br>category</h2>
<h2 id="categories" class="title title--hidden">Browse Bose<br>products by category</h2>

<section class="categories">
<article class="article">
<div class="article__grid article__grid--1">
<div class="article__image-wrapper article__image-wrapper--big">
<img src="src/images/picture-1.svg" class="pictures__item"
alt="">
</div>
<div class="article__image-wrapper article__image-wrapper--small">
<img src="src/images/picture-2.svg" class="pictures__item"
alt="">
</div>
</div>
<p class="article__product">Headphones & earbuds</p>
</article>

<article class="article">
<div class="article__grid article__grid--1">
<div class="article__image-wrapper article__image-wrapper--big">
<img src="src/images/picture-3.svg" class="pictures__item"
alt="">
</div>
<div class="article__image-wrapper article__image-wrapper--small">
<img src="src/images/picture-4.svg" class="pictures__item"
alt="">
</div>
</div>
<p class="article__product">Speakers</p>
</article>

<article class="article">
<div class="article__grid article__grid--2">
<div class="article__image-wrapper article__image-wrapper--small">
<img src="src/images/picture-5.svg" class="pictures__item"
alt="">
</div>
<div class="article__image-wrapper article__image-wrapper--big">
<img src="src/images/picture-6.svg" class="pictures__item"
alt="">
</div>
</div>
<p class="article__product">Audio sunglasses</p>
</article>
</section>

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


<section class="article__buy">
<h2 id="how-to-buy" class="article__buy article__buy--title">Why buy direct<br>from Bose</h2>
<p class="article__name article__name--secondary">Free 2-day shipping and returns</p>
<p class="article__name article__name--secondary">90-day risk-free trial</p>
<p class="article__name article__name--secondary">World class customer service</p>
<p class="article__name article__name--secondary">My Bose account management</p>
<p class="article__paragraph">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>
</section>

<h2 id="contacts" class="title title--secondary">Contact us</h2>

<section class="contacts">
<form class="contacts form">
<div class="form__item">
<label class="form__label" for="name">Name</label>
<input id="name" class="form__input"
type="text" placeholder="Name"
required>
</div>

<div class="form__item">
<label class="form__label" for="email">Email</label>
<input id="email" class="form__input"
type="email" placeholder="Email"
required>
</div>

<div class="form__item">
<label class="form__label" for="message">Message</label>
<textarea id="message" class="form__textarea"
placeholder="Message" required></textarea>
</div>

<button class="button button--secondary" type="submit"
onclick="this.classList.toggle('active')">Send</button>
</form>

<adress class="contacts adress form">
<div class="form__adress">
<h3 class="adress__label">Phone</h3>
<a href="tel:+12345555555" class="adress__content adress__content--phone">+1 234 5555-55-55</a>
<h3 class="adress__label">Email</h3>
<p class="adress__content">hello@miami.com</p>
<h3 class="adress__label">Address</h3>
<a href="https://maps.google.com/?q=400+First+Ave,+Suite+700,+Minneapolis+MN+55401" class="adress__content adress__content--adress" target="_blank">
400 first ave.<br>suite 700<br>Minneapolis MN 55401
</a>
</div>
</adress>
</section>

</main>

<footer class="footer"></footer>

</body>
<script src="src/scripts/main.js"></script>
</html>
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/Image1.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/Image2.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/Image3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
13 changes: 13 additions & 0 deletions src/images/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/background-image.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/background1020.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 removed src/images/favicon.png
Binary file not shown.
Binary file added src/images/footer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/images/footer1.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 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
Diff not rendered.
9 changes: 9 additions & 0 deletions src/images/picture-1.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/images/picture-2.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/images/picture-3.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/images/picture-4.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/images/picture-5.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/images/picture-6.svg

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
console.log('Cześć, tu plik main.js - melduję się!');

'use strict';
window.addEventListener('hashchange', () => {
if (window.location.hash === '#menu') {
document.body.classList.add('page__body--with-menu');
} else {
document.body.classList.remove('page__body--with-menu');
}
});
6 changes: 0 additions & 6 deletions src/styles/_fonts.scss

This file was deleted.

15 changes: 15 additions & 0 deletions src/styles/_main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use './utils/reset.scss';
@use './blocks/title.scss';
@use './blocks/header.scss';
@use './blocks/main.scss';
@use './blocks/article.scss';
@use './blocks/pictures.scss';
@use './blocks/button.scss';
@use './blocks/form.scss';
@use './blocks/adress.scss';
@use './blocks/footer.scss';
@use './blocks/navigation.scss';
@use './blocks/menu.scss';
@use './blocks/links.scss';
@use './blocks/burger.scss';
@use './blocks/phone.scss';
3 changes: 0 additions & 3 deletions src/styles/_utils.scss

This file was deleted.

Loading
Loading