-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
122 lines (104 loc) · 1.98 KB
/
index.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
@import url("https://fonts.googleapis.com/css2?family=Open Sans:wght@400;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
transition: 1s;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: "Open Sans", sans-serif;
background: #f1f1f1;
}
.profile-card {
position: relative;
min-width: 450px;
height: 600px;
/* overflow: hidden; */
}
.profile-card-img {
opacity: 0.3;
}
.card-head {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 400px;
}
.card-head-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.hover-content {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
text-align: center;
background: #000000;
color: #f1f1f1;
opacity: 0;
}
.card-head:hover .hover-content {
opacity: 1;
}
.hover-content h4 {
font-size: 22px;
font-weight: 500;
margin-bottom: 20px;
transform: translateY(50px);
}
.hover-content p {
font-weight: 200;
line-height: 1.5;
font-size: 18px;
margin-bottom: 20px;
transform: translateY(70px);
}
.hover-content .social-link {
font-size: 26px;
transform: translateY(90px);
}
.hover-content h4,
.hover-content p,
.hover-content .social-link {
opacity: 0;
}
.card-head:hover h4,
.card-head:hover p,
.card-head:hover .social-link {
transform: translateY(0);
opacity: 1;
}
.hover-content .social-link ion-icon {
margin: 0 10px;
cursor: pointer;
transition: 0.1s;
}
.hover-content .social-link ion-icon:hover {
opacity: 0.8;
}
.card-body {
position: absolute;
bottom: 20px;
left: 50%;
text-align: center;
transform: translateX(-50%);
}
.card-body h4 {
font-size: 30px;
color: #202020;
}
.card-body p {
font-size: 18px;
color: #141414;
}