Skip to content
Open

Develop #2727

Show file tree
Hide file tree
Changes from 9 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
187 changes: 185 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Miami</title>
<title>Mybike</title>
<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@500;600;700&display=swap" rel="stylesheet">
<link
rel="stylesheet"
href="src/styles/main.scss"
Expand All @@ -17,6 +20,186 @@
></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" 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"></label>Email</label>
<input id="email" class="form__imput"
type="email" placeholder="Email">
</div>
<div class="form__item">
<label for="message" class="form__label"></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="adress__label">Email</h4>
<p class="address__content">hello@miami.com</p>
<h4 class="adress__label">Address</h4>
<p class="address__content">
400 first ave.
<br>
suite 700
<br>
Minneapolis, MN 55401
</p>
</address>
</div>
</section>
</main>
Comment on lines +211 to +212
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

to img ci poszerzało layout bo nie ustawiłeś mu konkretnej szerokości. możesz usunąć img bo i tak dodajesz ten obraz jako background image a footer lepiej mieć poza kontenerem main aby na background image nie wpływał padding

Suggested change
</section>
<footer class="footer">
<img src="./src/images/footer pic.jpg" alt="footer bike">
</footer>
</main>
</section>
</main>
<footer class="footer"></footer>

+ <footer class="footer"></footer>
</body>
</html>
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.
8 changes: 8 additions & 0 deletions src/images/MyBiKE blk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/images/MyBiKE.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/Screenshot 2022-01-14 at 11.12 1.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/Screenshot 2022-01-14 at 11.12 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/X icon.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/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 pic.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.
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.

Binary file added src/images/mikkel-bech-yjAFnkLtKY0-unsplash 2.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/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
Diff not rendered.
Binary file removed src/images/photos/6.jpg
Diff not rendered.
Binary file added src/images/picture-1.jpg
Binary file added src/images/picture-2.jpg
Binary file added src/images/picture-3.jpg
Binary file added src/images/picture-4.jpg
Binary file added src/images/picture-5.jpg
Binary file added src/images/picture-6.jpg
Binary file added src/images/picture-7.jpg
Binary file added src/images/picture-8.jpg
Binary file added src/images/picture-9.jpg
6 changes: 0 additions & 6 deletions src/styles/_fonts.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/styles/_typography.scss

This file was deleted.

Loading
Loading