-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (87 loc) · 1.7 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "poppins", sans-serif;
}
body {
display: grid;
place-items: center;
min-height: 100vh;
background: linear-gradient(45deg, #ffaf00, #bb02ff);
background-attachment: fixed;
}
.container {
position: relative;
max-width: 1150px;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.container .card {
position: relative;
width: 300px;
height: 420px;
background: #fff;
margin: 20px;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
transition: 0.5s;
}
.container:hover .card {
filter: blur(20px);
transform: scale(0.9);
opacity: 0.5;
}
.container .card:hover {
filter: blur(0px);
transform: scale(1.2);
opacity: 1;
}
.container .card .circle {
position: relative;
width: 100%;
height: 100%;
background: #000;
clip-path: circle(180px at center 0);
text-align: center;
}
.container .card .circle h2 {
color: #fff;
font-size: 3rem;
padding: 30px 0;
}
.container .card .content {
position: absolute;
bottom: 10px;
padding: 20px;
text-align: center;
}
.container .card .content p {
color: #666;
}
.container .card .content a {
position: relative;
display: inline-block;
padding: 10px 20px;
background: #000;
color: #fff;
border-radius: 40px;
text-decoration: none;
margin: 20px 0 0 0;
}
.container .card:nth-child(1) .circle,
.container .card:nth-child(1) .content a {
background: #ffaf00;
}
.container .card:nth-child(2) .circle,
.container .card:nth-child(2) .content a {
background: #da2268;
}
.container .card:nth-child(3) .circle,
.container .card:nth-child(3) .content a {
background: #bb02ff;
}