Skip to content
Open

Develop #2724

Show file tree
Hide file tree
Changes from 14 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;


111 changes: 108 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,122 @@
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">
<nav class="header__nav">

<h1 class="header__nav-logo">MyBiKE</h1>

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

<h2 class="header__motto">Take the Streets</h2>
</header>

<main class="main-first">

<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="compare__title">Compare bikes</h3>

<div class="compare__bikes">

<article class="compare__bike">
<img class="compare__bike-image" src="src/images/photos/bike1-mobile.png"
alt="bike 1"/>
<h4 class="compare__bike-name">Sporty 4</h4>
<p class="compare__bike-description">The iconic frame brought to a new performance height as a sporty, active ride.</p>
<p class="compare__bike-price">$ 2 590</p>
</article>

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

<article class="compare__bike">
<img class="compare__bike-image" src="src/images/photos/bike3-mobile.png"
alt="bike 1"/>
<h4 class="compare__bike-name">Agile ride 3</h4>
<p class="compare__bike-description">The lightweight frame that has earned its street tread as a sleek, agile ride.</p>
<p class="compare__bike-price">$ 2 090</p>
</article>

</div>
</section>

<section class="details">
<h3 class="details__tittle">The details</h3>

<article class="details__detail">
<div class="details__detail__photos">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Typical BEM Mistakes: in BEM you never use __ multiple times

<img class="details__detail__photos__photo" src="src/images/photos/unlock1-mobile.jpg"
alt="auto-unlock1"/>
<img class="details__detail__photos__photo" src="src/images/photos/unlock2-mobile.jpg"
alt="auto-unlock1"/>
</div>
<h4 class="details__detail__tittle">Auto Unlock</h4>
<p class="details__detail__text">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" src="src/images/photos/lights1-mobile.jpg"
alt="lights1"/>
<img class="details__detail__photo" src="src/images/photos/lights2-mobile.jpg"
alt="lights2"/>
</div>
<h4 class="details__detail__tittle">Range & Integrated lights</h4>
<p class="details__detail__text">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__photos__photo" src="src/images/photos/breakes1-mobile.jpg"
alt="auto-unlock1"/>
<img class="details__detail__photos__photo" src="src/images/photos/breakes2-mobile.jpg"
alt="auto-unlock1"/>
</div>
<h4 class="details__detail__tittle">Hydraulic disc brakes & Lightweight</h4>
<p class="details__detail__text">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" type="button">Explore</button>
</div>
</section>
</main>
</body>
</html>
Loading
Loading