Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task solution #2662

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
48faf26
positioning header
Mykyta-snacj Jul 31, 2024
669dc7d
CSS for main secondary header
Mykyta-snacj Jul 31, 2024
51733d4
CSS for main secondary header
Mykyta-snacj Jul 31, 2024
a90f960
CSS for main secondary header
Mykyta-snacj Jul 31, 2024
d6cdace
add main paragrph / add section title
Mykyta-snacj Aug 1, 2024
b8910fc
add poducts articles
Mykyta-snacj Aug 1, 2024
b6940dd
better BEM classes
Mykyta-snacj Aug 1, 2024
0273696
better BEM fix font-family error
Mykyta-snacj Aug 1, 2024
ce2d608
details section basic version
Mykyta-snacj Aug 2, 2024
b9613e9
Details button
Mykyta-snacj Aug 2, 2024
bbb7123
Fixing mistakes / add spaces
Mykyta-snacj Aug 2, 2024
7e290f1
add section contact-us
Mykyta-snacj Aug 3, 2024
929e872
add section contact-us
Mykyta-snacj Aug 3, 2024
7b71b74
better BEM / add footer
Mykyta-snacj Aug 3, 2024
1dcf72e
rework block form / add hovers for buttons and inputs
Mykyta-snacj Aug 4, 2024
cf04373
add block navigation
Mykyta-snacj Aug 5, 2024
703597e
max-content for items in navigation
Mykyta-snacj Aug 5, 2024
9ab7b1a
add block menu
Mykyta-snacj Aug 6, 2024
a6dbe79
menu transition
Mykyta-snacj Aug 6, 2024
3e902b2
working menu
Mykyta-snacj Aug 6, 2024
7f4d1c4
rework margins
Mykyta-snacj Aug 7, 2024
9996ac0
grid for main
Mykyta-snacj Aug 8, 2024
2775707
grid for sections details and compaire bikes
Mykyta-snacj Aug 8, 2024
8dc07f9
grid setcion contact
Mykyta-snacj Aug 9, 2024
b1539a5
grid menu and adaptive font size for header block
Mykyta-snacj Aug 10, 2024
149d1cf
make build
Mykyta-snacj Aug 10, 2024
ce3ae02
rework style for desktop and tablet versions
Mykyta-snacj Aug 11, 2024
0ce05d2
Final page v0.1
Mykyta-snacj Aug 13, 2024
2da8f3d
fixing bugs and add some variables
Mykyta-snacj Aug 14, 2024
50afdaf
fix mistake for titles
Mykyta-snacj Aug 14, 2024
8eb43bb
Final page v0.2
Mykyta-snacj Aug 15, 2024
a53a3b4
Final page v0.3
Mykyta-snacj Aug 15, 2024
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 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://Mykyta-snacj.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;
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 modified src/images/favicon.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 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
Binary file not shown.
Binary file added src/images/photos/Details-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 added src/images/photos/Details-2.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/photos/Details-3.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/photos/Details-4.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/photos/Details-5.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/photos/Details-6.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/photos/bike-1.jpg

Choose a reason for hiding this comment

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

all of images should be in better quality

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/photos/bike-2.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/photos/bike-3.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/photos/footer-background.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/photos/header-background.jpg

Choose a reason for hiding this comment

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

this image has low quality
you should import this whole picture and then adjust it's position
image

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
245 changes: 243 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,24 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Miami</title>
<title>MyBiKE</title>
<link
rel="shortcut icon"
href="./images/favicon.png"
type="image/x-icon"
/>
<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;700&family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="./styles/main.scss"
Expand All @@ -17,6 +34,230 @@
></script>
</head>
<body>
<h1>Miami</h1>
<header class="header">
<h1 class="header__title">Take the Streets</h1>
</header>

<main class="main">
<h2 class="main__title">Move Free</h2>

<p class="main__paragraph main__paragraph--semi-bold">
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>

<section class="compaire-bikes section">
<h3 class="section__title">Compare Bikes</h3>

<article class="article">
<img
class="article__image"
src="./images/photos/bike-1.jpg"
alt="Sporty 4"
/>

<h4 class="article__title">Sporty 4</h4>

<p class="compaire-bikes__paragraph">
The iconic frame brought to a new performance height as a sporty,
active ride.
</p>

<p class="article__price">$ 2 590</p>
</article>

<article class="article">
<img
class="article__image"
src="./images/photos/bike-2.jpg"
alt="Ride in town ST"
/>

<h4 class="article__title">Ride in town ST</h4>

<p class="compaire-bikes__paragraph">
An open frame for an upright riding position as the most comfortable
ride in town.
</p>

<p class="article__price">$ 2 590</p>
</article>

<article class="article">
<img
class="article__image"
src="./images/photos/bike-3.jpg"
alt="Agile ride 3"
/>

<h4 class="article__title">Agile ride 3</h4>

<p class="compaire-bikes__paragraph">
The lightweight frame that has earned its street tread as a sleek,
agile ride.
</p>

<p class="article__price">$ 2 090</p>
</article>
</section>

<section class="section">
<h3 class="title section__title">The Details</h3>

<article class="article">
<div class="pictures">
<img
class="pictures__item"
src="./images/photos/Details-1.jpg"
alt="Details-1"
/>

<img
class="pictures__item"
src="./images/photos/Details-2.jpg"
alt="Details-2"
/>
</div>

<p class="article__title">Auto Unlock</p>
<p class="article__paragraph">
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">
<div class="pictures">
<img
class="pictures__item"
src="./images/photos/Details-3.jpg"
alt="Details-3"
/>

<img
class="pictures__item"
src="./images/photos/Details-4.jpg"
alt="Details-4"
/>
</div>

<p class="title article__title">Range & Integrated lights</p>
<p class="main__paragraph">
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="article">
<div class="pictures">
<img
class="pictures__item"
src="./images/photos/Details-5.jpg"
alt="Details-5"
/>

<img
class="pictures__item"
src="./images/photos/Details-6.jpg"
alt="Details-6"
/>
</div>

<p class="title article__title">
Hydraulic disc brakes & Lightweight
</p>
<p class="main__paragraph">
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>

<a
href="#Explore"
class="button article__button"
>
Explore
</a>
</section>

<section class="section section--contact-us">
<h3 class="section__title">Contact us</h3>

<form class="form">
<div class="form__item">
<label
for="name"
class="form__label"
>
Name
</label>
<input
id="name"
class="form__input form__inputs-style"
type="text"
placeholder="Name"
/>
</div>

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

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

<button class="button form__button">Send</button>
</form>

<address class="address">
<div class="adress__item">
<h4 class="address__label">Phone</h4>
<p class="address__content">+1 234 5555-55-55</p>
</div>

<div class="adress__item">
<h4 class="address__label">Email</h4>
<p class="address__content">[email protected]</p>
</div>

<div class="adress__item">
<h4 class="address__label">Address</h4>
<p class="address__content">
400 first ave.
<br />
suite 700
<br />
Minneapolis, MN 55401
</p>
</div>
</address>
</section>
</main>
<footer class="footer"></footer>
</body>
</html>
23 changes: 23 additions & 0 deletions src/styles/blocks/address.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.address {
display: flex;
flex-direction: column;
gap: 24px;
padding-top: 48px;
font-family: Poppins, Helvetica, sans-serif;
font-style: normal;
color: #fff;
text-align: left;

&__label {
margin-bottom: 8px;
font-size: 14px;
font-weight: 400;
line-height: 20px;
}

&__content {
font-size: 16px;
font-weight: 500;
line-height: 22.5px;
}
}
37 changes: 37 additions & 0 deletions src/styles/blocks/article.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.article {
padding-top: 40px;
font-family: Poppins, Helvetica, sans-serif;
text-align: left;

&__paragraph {
font-size: 16px;
font-weight: 400;
line-height: 22px;
}

&__title {
margin-bottom: 8px;
font-size: 24px;
font-weight: 700;
line-height: 34px;
}

&__price {
font-size: 24px;
font-weight: 700;
line-height: 34px;
}

&__image {
display: block;
margin: 0 auto;
margin-bottom: 32px;
height: 228px;
width: 280px;
object-fit: cover;
}

&__button {
margin-top: 40px;
}
}
21 changes: 21 additions & 0 deletions src/styles/blocks/button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.button {
display: block;
height: 56px;
border: 0;
border-radius: 40px;
background-color: #fff;
font-family: Poppins, Helvetica, sans-serif;
font-size: 16px;
font-weight: 700;
line-height: 56px;
text-decoration: none;
text-align: center;
color: #1d1d1d;
transition: all 0.3s;

&:hover {
transform: translateY(-3px);
box-shadow: 0 5px 5px #a0a0a0;
transition: 0.3s;
}
}
10 changes: 10 additions & 0 deletions src/styles/blocks/compaire-bikes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.compaire-bikes {
&__paragraph {
margin-bottom: 16px;
font-family: Poppins, Helvetica, sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 22px;
text-align: left;
}
}
7 changes: 7 additions & 0 deletions src/styles/blocks/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.footer {
height: 200px;
background-image: url(../images/photos/footer-background.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: 83%;
}
Loading
Loading