-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
101 lines (88 loc) · 1.77 KB
/
main.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
89
90
91
92
93
94
95
96
97
98
99
100
101
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: consolas;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(to bottom right, #530cc7, #eb57f0);
}
.container {
width: 1150px;
padding: 20px;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
img {
height: 50px;
width: auto;
border-radius: 50%;
object-fit: cover;
}
.container .card .img {
margin-bottom: 20px;
}
.container .card .content {
padding: 20px;
}
.container .card {
position: relative;
padding: 10px;
width: 300px;
margin: 20px;
border-radius: 20px;
overflow: hidden;
transition: 0.5s;
text-align: center;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.9);
}
.container .card::before {
content: '';
position: absolute;
top: -5px;
left: -5px;
right: -5px;
bottom: -5px;
border-radius: 20px;
background: (#f2f2f2);
z-index: -1;
}
.container .card h1 {
font-size: 1rem;
}
.container .card .content {
padding: 20px;
text-align: center;
}
.container .card .content p {
color: #666;
transition: 0.5s;
}
.container .card .content a {
position: relative;
display: inline-block;
padding: 10px 20px;
background-color: black;
color: #fff;
border-radius: 40px;
text-decoration: none;
outline: none;
margin-top: 20px;
}
.container .card:hover {
background: linear-gradient(to bottom right, #530cc7, #d357f0);
color: white;
margin-top: 30px;
box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.5);
}
.container .card:hover .content p {
color: white
}