Skip to content
Open

Develop #2724

Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
26611c0
Initial commit
Patryk91sz Dec 11, 2025
f684375
Positioning Header logo
Patryk91sz Dec 11, 2025
1f6391e
Pos logo
Patryk91sz Dec 11, 2025
7d0726c
Headers loc
Patryk91sz Dec 12, 2025
244e105
Setting header background
Patryk91sz Dec 13, 2025
8af3e2d
First block completed
Patryk91sz Dec 14, 2025
afb74de
add task solution
Patryk91sz Dec 14, 2025
1e69ae7
Compare section mobile ready
Patryk91sz Dec 14, 2025
e7d24a4
Details block complete
Patryk91sz Dec 17, 2025
827c094
Details complete
Patryk91sz Dec 17, 2025
6d9026d
details complete
Patryk91sz Dec 18, 2025
17e4c16
Fight with mertch
Patryk91sz Dec 18, 2025
7577a9c
Merge branch 'develop' of https://github.com/Patryk91sz/layout_miami …
Patryk91sz Dec 18, 2025
07a2855
Readme update
Patryk91sz Dec 18, 2025
c39ba00
Images centring
Patryk91sz Dec 19, 2025
3e6fa67
Site mobile complete. Next menu, connect icons and buttons.
Patryk91sz Dec 21, 2025
f00d5cf
Mobile ver looks good, connections left.
Patryk91sz Dec 23, 2025
cf913f1
Looks good mobile-ver, connections left.v2
Patryk91sz Dec 23, 2025
081594b
Working menu, and earlier fixes
Patryk91sz Dec 29, 2025
5a0363f
Merge branch 'develop' of https://github.com/Patryk91sz/layout_miami …
Patryk91sz Dec 29, 2025
a293d9c
Bem in html repaired, grid mobile ready.
Patryk91sz Dec 30, 2025
8e9f74f
Bem in html repaired, grid mobile ready.
Patryk91sz Dec 30, 2025
4145495
Mobile and tablet grid ready.
Patryk91sz Jan 2, 2026
2a2d3b2
Readme repaired ;P
Patryk91sz Jan 2, 2026
170eae3
Header and move free ready for desktop.
Patryk91sz Jan 2, 2026
db3770c
Center on mobile repaired, desktop grid ready.
Patryk91sz Jan 3, 2026
38ea391
100% Complted
Patryk91sz Jan 4, 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
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/backstop_data
/dist
/node_modules
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
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# IDE
.idea
.vscode
build
dist

# Node
node_modules
.DS_Store

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# MacOS
.DS_Store

raw_reports
reports
cypress/screenshots
cypress/videos
# Generated files
backstop_data
dist
.cache
.parcel-cache
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ 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://<Patryk91sz>.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;


238 changes: 235 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,249 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Miami</title>
<title>My-Bike</title>
<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=Poppins:wght@400;700&display=swap" rel="stylesheet">
<link
rel="stylesheet"
href="src/styles/main.scss"
href="src/styles/main.css"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't have main.css file. use main.scss

/>
<script
src="src/scripts/main.js"
defer
></script>
</head>
<body>
<h1>Miami</h1>

<header class="header" id="home">
<nav class="header__nav">

<h1 class="header__nav--logo">MyBiKE</h1>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-- is used for modifiers not elements and modifiers should always be used together with their belonging class

you can apply one of the following conventions:

  • replace all -- with -
Suggested change
<h1 class="header__nav--logo">MyBiKE</h1>
<h1 class="header__nav-logo">MyBiKE</h1>
  • keep only the part after --
Suggested change
<h1 class="header__nav--logo">MyBiKE</h1>
<h1 class="header__logo">MyBiKE</h1>
  • create separate nav block
Suggested change
<h1 class="header__nav--logo">MyBiKE</h1>
<header class="header" id="home">
<nav class="header__nav nav">
<h1 class="nav__logo">MyBiKE</h1>


<div class="header__nav--buttons">
<button class="header__nav--button">
<img class="header__nav--phone-icon" src="src/images/phone.svg"
alt="phone Icon"/>
</button>

<button class="header__nav--button">
<a href="#menu">
<img class="header__nav--menu-icon" src="src/images/menu.svg"
alt="menu Icon"/>
</a>
</button>

</div>
</nav>

<div class="header__motto">
<h2 class="header__motto--title">Take the Streets</h2>
</div>

</header>

<main class="main" id="about">

<section class="move-free">

<h3 class="move-free__title">Move Free</h3>

<p class="move-free__text">Shift your ride, not<br>
gears. Find the fastest way to move in the city as the bike adapts intuitively to power the speed you need.
</p>

</section>

<section class="compare">
<h3 class="h3-title">Compare bikes</h3>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember that you're using BEM methodology so for consistency you should treat h3-title and h4-title as blocks and create separate files for their styles.
or you can create title block with modifiers title--h3 and title--h4


<div class="compare__bikes" id="compare">

<article class="compare__bike">
<img class="photo" src="src/images/photos/bike1_mobile.jpg"
alt="Bike Sporty 4"/>

<h4 class="compare__bike--name h4-title">Sporty 4</h4>
<p class="description-title">The iconic frame brought to a new performance height as a sporty, active ride.</p>
<p class="compare__bike--price h4-title">$ 2 590</p>
</article>

<article class="compare__bike">
<img class="photo" src="src/images/photos/bike2_mobile.jpg"
alt="Ride in town ST"/>
<h4 class="compare__bike--name h4-title">Ride in town ST</h4>
<p class="description-title">An open frame for an upright riding position as the most comfortable ride in town.</p>
<p class="compare__bike--price h4-title">$ 2 590</p>
</article>

<article class="compare__bike">
<img class="photo" src="src/images/photos/bike3_mobile.jpg"

alt="Agile ride 3"/>
<h4 class="compare__bike--name h4-title">Agile ride 3</h4>
<p class="description-title">The lightweight frame that has earned its street tread as a sleek, agile ride.</p>
<p class="compare__bike--price h4-title">$ 2 090</p>
</article>

</div>
</section>

<section class="details" id="details">

<h3 class="details__title h3-title">The details</h3>

<article class="details__detail">

<div class="details__detail--photos">
<img class="details__detail--photo photo" src="src/images/photos/unlock1_mobile.jpg"
alt="Auto Unlock-1"/>
<img class="details__detail--photo photo" src="src/images/photos/unlock2_mobile.jpg"
alt="Auto Unlock-2"/>
</div>

<h4 class="details__detail--title h4-title">Auto Unlock</h4>

<p class="description-title">The app senses when you're nearby to unlock automatically. GPS tracking so you know where your bike is and can track it anytime.</p>
</article>

<article class="details__detail">

<div class="details__detail--photos">
<img class="details__detail--photo photo" src="src/images/photos/light1_mobile.jpg"
alt="lights1"/>
<img class="details__detail--photo photo" src="src/images/photos/light2_mobile.jpg"
alt="lights2"/>
</div>

<h4 class="details__detail--title h4-title">Range & Integrated lights</h4>

<p class="description-title">The removable battery has up to 70km battery autonomy and weighs only 2.4 kg. Lights integrated into the frame give you always-on visibility day and night.</p>
</article>

<article class="details__detail">

<div class="details__detail--photos">
<img class="details__detail--photo photo" src="src/images/photos/breakes1_mobile.jpg"
alt="breakes1"/>
<img class="details__detail--photo photo" src="src/images/photos/breakes2_mobile.jpg"
alt="breakes2"/>
</div>

<h4 class="details__detail--title h4-title">Hydraulic disc brakes & Lightweight</h4>

<p class="description-title">Brakes with total stopping power the second you make contact. The removable battery has up to 70km battery autonomy and weighs only 2.4 kg. Lights integrated into the frame give you always-on visibility day and night.</p>
</article>

<div class="explore">
<button class="explore__button button" type="button">Explore</button>
</div>

</section>
</main>

<footer class="footer">

<h3 class="contact-us__title h3-title">Contact us</h3>
<div class="contact-us__title-container">

<section class="contact-us">

<form class="contact-us__form">
<input
class="contact-us__input"
type="text"
name="name"
placeholder="Name"
required/>

<input
class="contact-us__input"
type="email"
name="email"
placeholder="Email"
required/>

<textarea
class="contact-us__input contact-us__textarea"
placeholder="Message"
required></textarea>

<div class="container-button">
<button class="contact-us__button button" type="submit">
Send
</button>
</div>

</form>
</section>

<section class="contact" id="contacts">
<div class="contact__item">
<h3 class="contact__label">Phone</h3>

<p class="contact__value">
<a class="contact__link" href="tel:+1 234 5555-55-55">+1 234 5555-55-55</a>
</p>
</div>

<div class="contact__item">
<h3 class="contact__label">Email</h3>

<p class="contact__value">
<a class="contact__link" href="hello@miami.com">hello@miami.com</a>
</p>
</div>

<div class="contact__item">
<h3 class="contact__label">Address</h3>

<p class="contact__value">
400 first ave.<br>
suite 700<br>
Minneapolis, MN 55401
</p>
</div>

</section>
</div>
<div class="footer__background"></div>
</footer>

<section class="menu" id="menu">
<header class="menu__header">
<h2 class="menu__header--title">MyBiKE</h2>
<a class="menu__header--close-button" type="button"
href="#home">
<img class="menu__header--close-button-icon" src="src/images/Icon-Close-black.svg"
alt="close Icon"/>
</a>
</header>

<main class="menu__main">
<nav class="menu__nav">
<ul class="menu__nav--links">
<li ><a class="menu__nav--link" href="#home">Home</a></li>
<li><a class="menu__nav--link" href="#about">About Us</a></li>
<li><a class="menu__nav--link" href="#compare">Compare Bikes</a></li>
<li><a class="menu__nav--link" href="#details">Details</a></li>
<li><a class="menu__nav--link" href="#contacts">Contacts</a></li>
</ul>
</nav>
</main>

<footer class="menu__footer">
<address class="contact">
<a class="menu__footer--phone-link menu-link" href="tel:+48123123123">
+1 234 5555-55-55
</a>
</address>

<a class="menu__footer--cta-btn menu-link" href="/book-test-ride" >
Book a test ride
</a>
</footer>
</section>
</body>
</html>
Loading
Loading