-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (132 loc) · 3.53 KB
/
Copy pathindex.html
File metadata and controls
153 lines (132 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<title>Frontend Mentor | Order summary card</title>
<link rel="stylesheet" href="https://fonts.google.com/specimen/Red+Hat+Display">
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
body {
position: relative;
background-image: url(pattern-background-desktop.svg);
background-repeat: no-repeat;
background-size: cover;
font-family: 'Red Hat Display', sans-serif;
}
.container {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 100%;
height: auto;
flex-direction: column;
top: 120px;
}
img {
display: flex;
border-top-right-radius: 20px;
border-top-left-radius: 20px;
width: 450px;
}
.container .card {
display: flex;
background: #fff;
height: 500px;
width: 450px;
box-shadow: 0 5px 20px -10px rgba(0, 0, 0, 0.8);
/* offset-x | offset-y | blur-radius | spread-radius | color */
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
flex-direction: column;
align-items: center;
}
.card h1 {
margin-top: 40px;
}
.card p {
text-align: center;
font-size: 16px;
margin: 10px 70px;
opacity: 0.8;
line-height: 25px;
}
.card .plan {
width: 75%;
height: 18%;
background: hsl(225, 100%, 98%);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: space-around;
margin: 20px 0;
}
.plan img {
width: 50px;
height: 50px;
}
.plan p {
margin: 0;
font-weight: 600;
text-align: justify;
}
.plan p span {
font-weight: lighter;
}
.card button{
width: 75%;
height: 10%;
background: hsl(245, 75%, 52%);
color: #fff;
font-size: 16px;
font-weight: bold;
border-radius: 10px;
cursor: pointer;
border: none;
margin-top: 20px;
box-shadow: 0 15px 25px -10px hsl(245, 75%, 52%); /* offset-x | offset-y | blur-radius | spread-radius | color */
}
.card .cancel{
text-decoration: none;
color: #000;
font-weight: bold;
margin-top: 30px;
opacity: 0.6;
}
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
</head>
<body>
<div class="container">
<img src="illustration-hero.svg" alt="hero">
<div class="card">
<h1>Order Summary</h1>
<p>You can now listen to millions of audiobooks, and podcasts on any
device anywhere you like!</p>
<div class="plan">
<img src="icon-music.svg" alt="">
<p>Annual Plan<br>
<span>$59.99/year</span>
</p>
<a href="#">Change</a>
</div>
<button>Proceed to Payment</button>
<a href="#" class="cancel">Cancel Order</a>
</div>
</div>
<!-- <div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/Abdul-SJ">Your Name Here</a>.
</div> -->
</body>
</html>