index.html
1
<!doctype html>
2
<html lang="en">
3
<head>
4
<title>CSS Card</title>
5
<meta charset="utf-8">
6
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap">
7
8
</head>
9
<body>
10
<div class="card">
11
<span class="small-text">Download Now!</span>
12
<span class="title">Download our mobile application.</span>
13
<span class="desc">Download Lorem mobile banking app for IOS & Android to manage your online money.</span>
14
<div class="buttons">
15
<a href="#" class="button">
16
<span class="icon"><svg width="34" height="34" viewBox="0 0 34 34" fill="" xmlns="http://www.w3.org/2000/svg">
17
<path d="M4 28.9958V4.9125C4 4.07667 4.48167 3.34 5.19 3L19.1442 16.9542L5.19 30.9083C4.48167 30.5542 4 29.8317 4 28.9958ZM23.5642 21.3742L8.32083 30.1858L20.3483 18.1583L23.5642 21.3742ZM28.31 15.2683C28.7917 15.6508 29.1458 16.2458 29.1458 16.9542C29.1458 17.6625 28.8342 18.2292 28.3383 18.6258L25.0942 20.4958L21.5525 16.9542L25.0942 13.4125L28.31 15.2683ZM8.32083 3.7225L23.5642 12.5342L20.3483 15.75L8.32083 3.7225Z" fill="white"></path>
18
</svg></span>
19
<div class="button-text google">
20
<span>Get it on</span>
21
<span>Google Play</span>
22
</div>
23
</a>
24
<a href="#" class="button">
25
<span class="icon"><svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
26
<path d="M26.5058 27.625C25.33 29.3817 24.0833 31.0958 22.185 31.1242C20.2866 31.1667 19.6775 30.005 17.5241 30.005C15.3566 30.005 14.6908 31.0958 12.8916 31.1667C11.0358 31.2375 9.6333 29.2967 8.4433 27.5825C6.0208 24.0833 4.16497 17.6375 6.6583 13.3025C7.8908 11.1492 10.1008 9.78916 12.495 9.74666C14.3083 9.71833 16.0366 10.9792 17.1558 10.9792C18.2608 10.9792 20.3575 9.46333 22.5533 9.68999C23.4741 9.73249 26.0525 10.0583 27.71 12.495C27.5825 12.58 24.6358 14.3083 24.6641 17.8925C24.7066 22.1708 28.4183 23.6017 28.4608 23.6158C28.4183 23.715 27.8658 25.6558 26.5058 27.625ZM18.4166 4.95833C19.4508 3.78249 21.165 2.88999 22.5816 2.83333C22.7658 4.49083 22.1 6.16249 21.1083 7.35249C20.1308 8.55666 18.5158 9.49166 16.9291 9.36416C16.7166 7.73499 17.51 6.03499 18.4166 4.95833Z" fill=""></path>
27
</svg></span>
28
<div class="button-text apple">
29
<span>Download from</span>
30
<span>App Store</span>
31
</div>
32
</a>
33
</div>
34
</div>
35
</body>
36
</html>
styles.css
1
body {
2
background-color: #212121;
3
display: flex;
4
height: 100vh;
5
justify-content: center;
6
align-items: center;
7
overflow: hidden;
8
font-family:Montserrat;
9
}
10
.card {
11
max-width: 350px;
12
background-color: rgb(7 16 45);
13
background: linear-gradient(to top right, rgb(7 16 45), rgb(58 60 84));
14
background: -webkit-linear-gradient(to top right, rgb(7 16 45), rgb(58 60 84));
15
display: flex;
16
flex-direction: column;
17
padding: 20px;
18
border-radius: 20px;
19
border: 1px solid rgb(84 90 106);
20
}
21
22
.small-text, .title,.desc {
23
font-weight: 600;
24
}
25
26
.title,.desc {
27
margin: 8px 0;
28
}
29
30
.small-text {
31
color: #488aec;
32
font-size: 14px;
33
}
34
35
.title {
36
color: #fff;
37
font-size: 26px;
38
line-height: 26px;
39
}
40
41
.desc {
42
color: rgb(151 153 167);
43
font-size: 13px;
44
}
45
46
.buttons {
47
display: flex;
48
align-items: center;
49
justify-content: center;
50
gap: 10px;
51
margin-top: 10px;
52
}
53
54
.button {
55
display: flex;
56
align-items: center;
57
justify-content: space-between;
58
border-radius: 10px;
59
padding: 6px;
60
text-decoration: none;
61
}
62
63
.button:first-child {
64
box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
65
background-color: #488aec;
66
}
67
68
.button:last-child {
69
box-shadow: 0 4px 6px -1px #0b162531, 0 2px 4px -1px #0e192b17;
70
background-color: #fff;
71
}
72
73
.icon {
74
height: 25px;
75
width: 25px;
76
}
77
78
.icon svg {
79
width: 100%;
80
height: 100%;
81
}
82
83
.icon svg:last-child {
84
fill: #000
85
}
86
87
.button-text {
88
display: flex;
89
flex-direction: column;
90
margin-left: 8px;
91
}
92
93
.button-text span:first-child {
94
font-size: 12px;
95
font-weight: 600;
96
}
97
98
.google span:first-child {
99
color: rgb(219 206 253);
100
}
101
102
.apple span:first-child {
103
color: rgb(81 87 108);
104
}
105
106
.google span:last-child {
107
color: #fff;
108
font-weight: 800;
109
}
110
111
.apple span:last-child {
112
color: #000;
113
font-weight: 800;
114
}
115
116
main.js
1
/* Replace with your JS Code
2
(Leave empty if not needed) */
3