forked from RedEdge967/Profile-Card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
229 lines (226 loc) · 4.73 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.black-theme {
display: flex;
justify-content: center;
align-items: center;
background: #161623;
position: relative;
min-height: 100vh;
overflow: hidden;
font-family: "Lato", sans-serif;
letter-spacing: 0.5px;
font-weight: 400;
}
.black-theme:before {
position: absolute;
content: "";
left: 40%;
bottom: -40%;
width: 600px;
height: 600px;
background: linear-gradient(#FF5722, #FF9800);
border-radius: 50%;
}
.black-theme .card {
width: 350px;
height: 500px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
border-radius: 10px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
overflow: hidden;
}
.black-theme .card .card__top {
height: 155px;
position: relative;
}
.black-theme .card .card__top img {
width: 100%;
height: 100%;
object-fit: cover;
}
.black-theme .card .card__top .profile__photo {
width: 130px;
height: 130px;
position: absolute;
bottom: -60px;
left: 50%;
transform: translatex(-50%);
}
.black-theme .card .card__top .profile__photo img {
width: 100%;
border-radius: 50%;
height: 100%;
object-fit: cover;
border: 7px solid rgba(0, 0, 0, 0.35);
}
.black-theme .card .card__content {
text-align: center;
color: #fff;
padding: 5em 2.5em;
}
.black-theme .card .card__content h2 {
font-weight: 700;
font-size: 24px;
}
.black-theme .card .card__content h3 {
font-weight: 400;
margin: 5px 0 30px;
font-size: 16px;
}
.black-theme .card .card__content p {
text-align: left;
}
.black-theme .card .card__content p span {
margin-right: 10px;
}
.black-theme .card .card__content p a {
text-decoration: none;
color: #fff;
}
.black-theme .card .card__content p a:hover {
text-decoration: underline;
}
.black-theme .card .card__content p + p {
margin-top: 10px;
}
.black-theme .card a.button {
text-decoration: none;
color: #fff;
background: rgba(0, 0, 0, 0.85);
padding: 9px 30px 10px 30px;
display: inline-block;
margin-top: 2em;
}
.black-theme .card a.button:hover {
background: rgba(0, 0, 0, 0.7);
}
.white-theme {
display: flex;
justify-content: center;
align-items: center;
background-color: #3fe2f2;
background-image: linear-gradient(135deg, #3fe2f2 0%, #43dbc0 16%, #29b7f2 49%, #3cabe8 86%);
position: relative;
min-height: 100vh;
overflow: hidden;
font-family: "Lato", sans-serif;
letter-spacing: 0.5px;
font-weight: 400;
}
.white-theme:before {
position: absolute;
content: "";
left: 40%;
bottom: -40%;
width: 600px;
height: 600px;
background: linear-gradient(135deg, #3fe2f2 0%, #43dbc0 24%, #3cabe8 91%);
border-radius: 50%;
}
.white-theme .card {
width: 350px;
height: 500px;
background: rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
backdrop-filter: blur(4px);
border-radius: 10px;
overflow: hidden;
}
.white-theme .card .card__top {
height: 155px;
position: relative;
}
.white-theme .card .card__top img {
width: 100%;
height: 100%;
object-fit: cover;
}
.white-theme .card .card__top .profile__photo {
width: 130px;
height: 130px;
position: absolute;
bottom: -60px;
left: 50%;
transform: translatex(-50%);
}
.white-theme .card .card__top .profile__photo img {
width: 100%;
border-radius: 50%;
height: 100%;
object-fit: cover;
border: 8px solid rgba(255, 255, 255, 0.55);
}
.white-theme .card .card__content {
text-align: center;
color: rgba(0, 0, 0, 0.85);
padding: 5em 2.5em;
}
.white-theme .card .card__content h2 {
font-weight: 700;
font-size: 24px;
}
.white-theme .card .card__content h3 {
font-weight: 400;
margin: 5px 0 30px;
font-size: 16px;
}
.white-theme .card .card__content p {
text-align: left;
}
.white-theme .card .card__content p span {
margin-right: 10px;
}
.white-theme .card .card__content p a {
text-decoration: none;
color: rgba(0, 0, 0, 0.85);
}
.white-theme .card .card__content p a:hover {
text-decoration: underline;
}
.white-theme .card .card__content p + p {
margin-top: 10px;
}
.white-theme .card a.button {
text-decoration: none;
color: #fff;
background: rgba(0, 0, 0, 0.85);
padding: 9px 30px 10px 30px;
display: inline-block;
margin-top: 2em;
}
.white-theme .card a.button:hover {
background: rgba(0, 0, 0, 0.7);
}
#switch {
position: absolute;
top: 35px;
right: 35px;
background: #fff;
border-radius: 50px;
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
#switch:hover i {
animation: rotation 1.5s linear forwards infinite;
}
#switch i {
font-size: 1.5rem;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}