generated from mate-academy/gulp-template
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Mykyta-snacj
wants to merge
32
commits into
mate-academy:master
Choose a base branch
from
Mykyta-snacj:develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add task solution #2662
Changes from 15 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
48faf26
positioning header
Mykyta-snacj 669dc7d
CSS for main secondary header
Mykyta-snacj 51733d4
CSS for main secondary header
Mykyta-snacj a90f960
CSS for main secondary header
Mykyta-snacj d6cdace
add main paragrph / add section title
Mykyta-snacj b8910fc
add poducts articles
Mykyta-snacj b6940dd
better BEM classes
Mykyta-snacj 0273696
better BEM fix font-family error
Mykyta-snacj ce2d608
details section basic version
Mykyta-snacj b9613e9
Details button
Mykyta-snacj bbb7123
Fixing mistakes / add spaces
Mykyta-snacj 7e290f1
add section contact-us
Mykyta-snacj 929e872
add section contact-us
Mykyta-snacj 7b71b74
better BEM / add footer
Mykyta-snacj 1dcf72e
rework block form / add hovers for buttons and inputs
Mykyta-snacj cf04373
add block navigation
Mykyta-snacj 703597e
max-content for items in navigation
Mykyta-snacj 9ab7b1a
add block menu
Mykyta-snacj a6dbe79
menu transition
Mykyta-snacj 3e902b2
working menu
Mykyta-snacj 7f4d1c4
rework margins
Mykyta-snacj 9996ac0
grid for main
Mykyta-snacj 2775707
grid for sections details and compaire bikes
Mykyta-snacj 8dc07f9
grid setcion contact
Mykyta-snacj b1539a5
grid menu and adaptive font size for header block
Mykyta-snacj 149d1cf
make build
Mykyta-snacj ce3ae02
rework style for desktop and tablet versions
Mykyta-snacj 0ce05d2
Final page v0.1
Mykyta-snacj 2da8f3d
fixing bugs and add some variables
Mykyta-snacj 50afdaf
fix mistake for titles
Mykyta-snacj 8eb43bb
Final page v0.2
Mykyta-snacj a53a3b4
Final page v0.3
Mykyta-snacj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
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.
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.
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.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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" | ||
> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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