-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74edc3c
commit c266d47
Showing
7 changed files
with
268 additions
and
0 deletions.
There are no files selected for viewing
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.
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,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="style.css" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png" /> | ||
|
||
<title>Frontend Mentor | Order summary card</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="bg_img"></div> | ||
<main> | ||
<div class="container"> | ||
<img src="./images/illustration-hero.svg" alt="A girl is enjoying some music."> | ||
|
||
<div class="data"> | ||
|
||
<h1>Order Summary</h1> | ||
|
||
<p id="about">You can now listen to millions of songs, audiobooks, and podcasts on any device anywhere you like! | ||
</p> | ||
|
||
<div class="price_plan"> | ||
<div class="group"> | ||
<img src="./images/icon-music.svg" alt="A music icon"> | ||
|
||
<div class="details"> | ||
<p id="plan_title">Annual Plan</p> | ||
<p id="pricing">$59.99/year</p> | ||
</div> | ||
</div> | ||
<a href="#" id="plan_change">Change</a> | ||
</div> | ||
|
||
<button class="proceed">Proceed to Payment</button> | ||
|
||
<p id="cancel">Cancel Order</p> | ||
</div> | ||
|
||
</div> | ||
</main> | ||
|
||
<!-- <footer> | ||
<div class="attribution"> | ||
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by <a href="https://github.com/gauravgorane">Gaurav Gorane</a>. | ||
</div> | ||
</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,210 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap'); | ||
|
||
:root { | ||
--Pale_blue: hsl(225, 100%, 94%); | ||
--Bright_blue: hsl(245, 75%, 52%); | ||
--Very_pale_blue: hsl(225, 100%, 98%); | ||
--Desaturated_blue: hsl(224, 23%, 55%); | ||
--Dark_blue: hsl(223, 47%, 23%); | ||
--fw_light: 500; | ||
--fw_normal: 700; | ||
--fw_bold: 900; | ||
} | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
} | ||
|
||
html { | ||
font-size: 62.5%; | ||
} | ||
|
||
body { | ||
font-family: 'Red Hat Display', sans-serif; | ||
font-size: 16px; | ||
text-align: center; | ||
background-color: var(--Pale_blue); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
} | ||
|
||
.bg_img { | ||
background-image: url(./images/pattern-background-desktop.svg); | ||
background-repeat: repeat-x; | ||
height: 44rem; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: -1; | ||
} | ||
|
||
.container { | ||
position: relative; | ||
max-width: 45rem; | ||
background-color: #fff; | ||
border-radius: 2rem; | ||
overflow: hidden; | ||
margin: 2rem; | ||
} | ||
|
||
.container .data { | ||
padding: 4.8rem 5rem; | ||
} | ||
|
||
.container .data h1 { | ||
color: var(--Dark_blue); | ||
font-size: 2.9rem; | ||
} | ||
|
||
#about { | ||
font-size: 1.66rem; | ||
line-height: 1.6; | ||
padding: 1.6rem 2rem; | ||
} | ||
|
||
.price_plan { | ||
background-color: var(--Very_pale_blue); | ||
border-radius: 1rem; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
padding: 2.6rem 2rem; | ||
} | ||
|
||
.price_plan .group { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.details { | ||
padding-left: 2.2rem; | ||
} | ||
|
||
.details #plan_title { | ||
font-size: 1.6rem; | ||
font-weight: var(--fw_bold); | ||
} | ||
|
||
.details #pricing { | ||
margin-top: 0.6rem; | ||
font-weight: 500; | ||
} | ||
|
||
.price_plan #plan_change { | ||
font-size: 1.5rem; | ||
font-weight: 700; | ||
color: var(--Bright_blue); | ||
} | ||
|
||
.price_plan #plan_change:hover{ | ||
color: #7e97e1; | ||
text-decoration: none; | ||
} | ||
|
||
.proceed { | ||
font-family: 'Red Hat Display', sans-serif; | ||
width: 100%; | ||
border: none; | ||
color: #fff; | ||
background-color: var(--Bright_blue); | ||
font-weight: var(--fw_bold); | ||
padding: 1.5rem 0; | ||
border-radius: 1rem; | ||
margin: 3rem 0; | ||
} | ||
|
||
.proceed:hover{ | ||
background-color: #8777f5; | ||
} | ||
|
||
#cancel { | ||
display: inline; | ||
font-weight: var(--fw_normal); | ||
color: var(--Desaturated_blue); | ||
} | ||
|
||
#cancel:hover{ | ||
color: var(--Dark_blue); | ||
cursor: pointer; | ||
} | ||
|
||
.attribution { | ||
font-size: 11px; | ||
text-align: center; | ||
} | ||
|
||
.attribution a { | ||
color: hsl(228, 45%, 44%); | ||
} | ||
|
||
@media screen and (max-width: 470px) { | ||
.bg_img { | ||
background: url(./images/pattern-background-mobile.svg) no-repeat center/cover; | ||
height: 44rem; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: -1; | ||
} | ||
|
||
.container { | ||
margin: 2.4rem; | ||
} | ||
|
||
.container .data { | ||
padding: 2.8rem 2.4rem; | ||
} | ||
|
||
.container .data h1 { | ||
font-size: 2.3rem; | ||
} | ||
|
||
#about { | ||
font-size: 1.6rem; | ||
line-height: 1.5; | ||
padding: 1.6rem 1rem; | ||
} | ||
|
||
.price_plan { | ||
margin-top: 1rem; | ||
padding: 1.6rem 1.6rem; | ||
} | ||
|
||
.details { | ||
padding-left: 1.8rem; | ||
} | ||
|
||
.details #plan_title{ | ||
font-size: 1.4rem; | ||
} | ||
|
||
.details #pricing{ | ||
font-size: 1.4rem; | ||
margin-top: 0.4rem; | ||
} | ||
|
||
.price_plan #plan_change { | ||
font-size: 1.4rem; | ||
} | ||
|
||
.proceed{ | ||
margin: 2.2rem 0; | ||
} | ||
|
||
|
||
|
||
} |