forked from you-dont-need/You-Dont-Need-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
card1.css
99 lines (86 loc) · 1.76 KB
/
card1.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
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background: #222;
height: 100vh;
display: grid;
place-items: center;
font-family: Montserrat;
color: #b3afbf;
}
.card {
padding: 15px;
width: 350px;
background: #222;
border-radius: 5px;
text-align: center;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.7);
user-select: none;
}
.cover-photo {
position: relative;
background: url(https://tse4.mm.bing.net/th?id=OIP.vqAFiVTfsVLvrB4mUCh48QHaEo&pid=Api&P=0&h=180);
background-size: cover;
height: 180px;
border-radius: 5px 5px 0 0;
}
.profile {
position: absolute;
width: 120px;
bottom: -60px;
left: 15px;
border-radius: 50%;
border: 2px solid #222;
background: #222;
padding: 5px;
}
.profile-name {
font-size: 20px;
margin: 25px 0 0 120px;
color: #fff;
}
.about {
margin-top: 30px;
line-height: 1.6;
}
.btn {
margin: 30px 15px;
background: #7ce3ff;
padding: 10px 25px;
border-radius: 3px;
border: 1px solid #7ce3ff;
font-weight: bold;
font-family: Montserrat;
cursor: pointer;
color: #222;
transition: 0.2s;
}
.btn:last-of-type {
background: transparent;
border-color: #7ce3ff;
color: #7ce3ff;
}
.btn:hover {
background: #7ce3ff;
color: #222;
}
.icons {
width: 180px;
margin: 0 auto 10px;
display: flex;
justify-content: space-between;
gap: 15px;
}
.icons i {
cursor: pointer;
padding: 5px;
font-size: 18px;
transition: 0.2s;
}
.icons i:hover {
color: #7ce3ff;
}