-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
74 lines (63 loc) · 1.89 KB
/
style.css
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root{
--color-bg:rgb(183, 212, 254);
--color-card:#ffffff;
--color-gradient: linear-gradient(to top,#4aa3ff,#69c3f7);
}
body{
display: grid;
place-items: center;
min-height: 100vh;
font-family: 'Poppins',sans-serif;
background-color: var(--color-bg);
}
.card{
width: 24rem;
background-color: var(--color-card);
border-radius: 1rem;
overflow: hidden;
box-shadow: inset 0 -.5rem 2rem var(--color-bg),
0 0 1rem rgba(0, 0, 0, 0.1);
transform: scale(0.8) translateX(-18px);
transform-origin: center;
}
.card__image{
width: 100%;
height: 16rem;
object-fit: cover;
}
.card__content{
padding: 2rem;
text-align: center;
}
.card__name{
font-size: 1.8rem;
background-image: var(--color-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: .5rem;
}
.card__desc{
margin-bottom: 2rem;
color: rgba(0, 0, 0, 0.856);
}
.card__btn{
text-decoration: none;
display: inline-block;
padding: 1rem 3rem;
background-image: var(--color-gradient);
color: #fff;
border-radius: 1.4rem;
font-size: 1.2rem;
box-shadow: inset 0 0 1rem rgba(255,255,255,.4);
transition: box-shadow, transform .1s ease-in;
}
.card__btn:hover{
box-shadow: inset 0 0 0 rgba(255,255,255,.4),
0 0 1rem rgba(0, 0, 0, 0.1);
transform: scale(1.05);
}