-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
final-code #5067
Open
pryge
wants to merge
2
commits into
mate-academy:master
Choose a base branch
from
pryge: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
final-code #5067
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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 |
---|---|---|
@@ -1,18 +1,61 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0" | ||
/> | ||
<title>Product cards</title> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.googleapis.com" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="./styles/index.scss" | ||
href="../src/styles/index.css" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<h1>Product cards</h1> | ||
<div | ||
class="card" | ||
data-qa="card" | ||
> | ||
<img | ||
src="./images/imac.jpeg" | ||
alt="iMac" | ||
class="card__image" | ||
/> | ||
<h2 class="card__name"> | ||
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A) | ||
</h2> | ||
<p class="card__code">Product code: 195434</p> | ||
<div class="card__stars"> | ||
<div class="stars"> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
<div class="stars__star"></div> | ||
</div> | ||
<p class="card__reviews">Reviews: 5</p> | ||
</div> | ||
<div class="card__cost"> | ||
<p class="card__price">Price:</p> | ||
<p class="card__total">$2,199</p> | ||
</div> | ||
<button | ||
data-qa="hover" | ||
class="card__button" | ||
> | ||
Buy | ||
</button> | ||
</div> | ||
<deepl-input-controller></deepl-input-controller> | ||
</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,91 @@ | ||
.card { | ||
box-sizing: border-box; | ||
background-color: $color-white; | ||
border: 1px solid #f3f3f3; | ||
border-radius: 5px; | ||
height: 408px; | ||
width: 200px; | ||
padding: 32px 16px 16px; | ||
position: relative; | ||
|
||
&__image { | ||
width: 160px; | ||
height: 134px; | ||
display: block; | ||
margin: 0 auto 40px; | ||
} | ||
|
||
&__name { | ||
font-size: 12px; | ||
font-weight: 500; | ||
line-height: 18px; | ||
color: $text-main-color; | ||
margin-bottom: 4px; | ||
} | ||
|
||
&__code { | ||
font-weight: 400; | ||
font-size: 10px; | ||
color: $text-secondary-color; | ||
line-height: 14px; | ||
text-align: left; | ||
position: relative; | ||
} | ||
|
||
&__reviews { | ||
color: $text-main-color; | ||
font-size: 10px; | ||
line-height: 14px; | ||
font-weight: 400; | ||
display: flex; | ||
align-items: flex-end; | ||
margin-bottom: 24px; | ||
} | ||
|
||
&__cost { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__price { | ||
font-weight: 400; | ||
font-size: 12px; | ||
line-height: 18px; | ||
color: $text-secondary-color; | ||
text-align: left; | ||
position: relative; | ||
} | ||
|
||
&__total { | ||
font-weight: 700; | ||
font-size: 16px; | ||
line-height: 18px; | ||
color: $text-main-color; | ||
display: flex; | ||
align-items: flex-end; | ||
} | ||
|
||
&__button { | ||
position: absolute; | ||
justify-content: center; | ||
align-items: center; | ||
width: 166px; | ||
height: 40px; | ||
right: 16px; | ||
background: $color-blue-accent; | ||
border: 1px solid $color-blue-accent; | ||
border-radius: 5px; | ||
font-weight: 700; | ||
font-size: 14px; | ||
line-height: 16px; | ||
text-transform: uppercase; | ||
color: $color-white; | ||
box-sizing: border-box; | ||
} | ||
|
||
&__button:hover { | ||
color: $color-blue-accent; | ||
background-color: $color-white; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
The
href
attribute is currently pointing to a.scss
file. Make sure to link to the corresponding.css
file that is generated after preprocessing the SCSS.