Skip to content
Open

Develop #2727

Show file tree
Hide file tree
Changes from all 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 .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
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://chalaczi.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;
205 changes: 199 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,210 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Miami</title>
<link
rel="stylesheet"
href="src/styles/main.scss"
/>
<title>Mybike</title>
<link rel="icon" type="image/svg+xml"
href="./src/images/Vector.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/styles/main.scss" />
<script
src="src/scripts/main.js"
defer
></script>
</head>
<body>
<h1>Miami</h1>
<header class="header" id="home">
<nav class="navigation header__navigation">
<a href="#" class="logo navigation__logo">
<img class="logo__image" src="./src/images/MyBiKE.svg"
alt="Logo">
</a>

<div class="navigation__actions">
<a class="phone" href="tel:+1 234 555-55-55">
<span class="phone__label">+1 234 555-55-55</span>
<img class="phone_icon" src="./src/images/Icon-Phone-call.svg"
alt="#">
</a>
<a href="#menu" class="burger">
<span class="burger__text">Open menu</span>
</a>
</div>
</nav>
<h1 class="title header__title">Take the Streets</h1>
</header>

<div class="menu" id="menu">
<nav class="navigation navigation__menu">
<a href="#home">
<img class="logo__image" src="./src/images/MyBiKE blk.svg"
alt="3">
</a>
<a href="#home">
<img class="close__icon" src="./src/images/X icon.svg"
alt="#">
</a>
</nav>

<nav class="links menu__links">
<ul class="links__list">
<li class="links__item"><a href="#home" class="links__link">Home</a></li>
<li class="links__item"><a href="#about-us" class="links__link">About Us</a></li>
<li class="links__item"><a href="#compare-bikes" class="links__link">Compare Bikes</a></li>
<li class="links__item"><a href="#details" class="links__link">Details</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">Book a test ride</a>
</p>

</div>

<main class="main" id="about-us">
<h2 class="title title--secondary main__title">
Move Free
</h2>
<div class="main__content">
<p class="main__paragraph">Shift your ride, not gears. Find the fastest way to move in the city as the bike adapts intuitively to power the speed you need.
</p>
</div>
<section class="section main__section section--bikes" id="compare-bikes">
<h3 class="title title--section section__title">Compare bikes</h3>
<div class="bike">
<article class="model bike__model">
<img class="model__photo" src="./src/images/Screenshot 2022-01-14 at 11.12 1.png"
alt="bike1">
<h4 class="model__name">Sporty 4</h4>
<p class="model__description">
The iconic frame brought to a new performance height as a sporty, active ride.
</p>
<h4 class="model__price"> $ 2 590</h4>
</article>

<article class="model bike__model">
<img class="model__photo" src="./src/images/Screenshot 2022-01-14 at 11.12 2.png"
alt="bike2">
<h4 class="model__name">Ride in town ST</h4>
<p class="model__description">
An open frame for an upright riding position as the most comfortable ride in town.
</p>
<h4 class="model__price"> $ 2 590</h4>
</article>

<article class="model bike__model">
<img class="model__photo" src="./src/images/Screenshot 2022-01-14 at 11.12 3 (1).jpg"
alt="bike3">
<h4 class="model__name">Agile ride 3</h4>
<p class="model__description">
The lightweight frame that has earned its street tread as a sleek, agile ride.
</p>
<h4 class="model__price"> $ 2 090</h4>
</article>

</div>

</section>

<section class="section main__section" id="details">
<h3 class="title title--section section__title">The Details</h3>
<article class="article section__article">
<div class="picturies article__picturies">
<div class="picturies__item picturies__item--big">
<img src="./src/images/picture-4.jpg" class="picturies__image"
alt="1">
</div>

<div class="picturies__item picturies__item--small">
<img src="./src/images/picture-5.jpg" class="picturies__image"
alt="2">
</div>
</div>
<h4 class="article__title">Auto Unlock</h4>
<p class="article__description">
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="article section__article">
<div class="picturies article__picturies">
<div class="picturies__item picturies__item--big">
<img src="./src/images/picture-6.jpg" class="picturies__image"
alt="1">
</div>

<div class="picturies__item picturies__item--small">
<img src="./src/images/picture-7.jpg" class="picturies__image"
alt="2">
</div>
</div>
<h4 class="article__title">Range & Integrated lights</h4>
<p class="article__description">
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. track it anytime.
</p>
</article>

<article class="article section__article">
<div class="picturies article__picturies">
<div class="picturies__item picturies__item--small">
<img src="./src/images/picture-8.jpg" class="picturies__image"
alt="1">
</div>

<div class="picturies__item picturies__item--big">
<img src="./src/images/picture-9.jpg" class="picturies__image"
alt="2">
</div>
</div>
<h4 class="article__title">Hydraulic disc brakes & Lightweight</h4>
<p class="article__description">
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. track it anytime.
</p>
</article>
<a href="#" class="button">Explore</a>
</section>

<section class="section main__section" id="contacts">
<h3 class="title title--section section__title">Contact us</h3>
<div class="contact">
<form class="form contact__form">
<div class="form__item">
<label for="name" class="form__label">Name</label>
<input id="name" class="form__imput"
type="text" placeholder="Name">
</div>
<div class="form__item">
<label for="email" class="form__label">Email</label>
<input id="email" class="form__imput"
type="email" placeholder="Email">
</div>
<div class="form__item">
<label for="message" class="form__label">Message</label>
<textarea id="message" class="form__textarea"
placeholder="Message"></textarea>
</div>
<button class="button button--primary">Send</button>
</form>
<address class="address contact__address">
<h4 class="address__label">Phone</h4>
<p class="address__content">+1 234 5555-55-55</p>
<h4 class="address__label">Email</h4>
<p class="address__content">[email protected]</p>
<h4 class="address__label">Address</h4>
<p class="address__content">
400 first ave.
<br>
suite 700
<br>
Minneapolis, MN 55401
</p>
</address>
</div>
</section>
</main>
<footer class="footer"></footer>
</body>
</html>
34 changes: 30 additions & 4 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
"@linthtml/linthtml": "^0.9.6",
"@mate-academy/bemlint": "latest",
"@mate-academy/linthtml-config": "latest",
"@mate-academy/scripts": "^2.1.2",
"@mate-academy/scripts": "^2.1.3",
"@mate-academy/stylelint-config": "latest",
"cross-env": "^10.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.2",
Expand Down
Empty file added picture-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 removed src/fonts/Roboto-Regular-webfont.woff
Binary file not shown.
Binary file added src/images/Cover_photo.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.
Loading
Loading