-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
95 lines (94 loc) · 2.11 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
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;900&display=swap');
:root {
--font-color-default: #222;
--font-color-accent: #58A1FF;
--footer-background: radial-gradient(circle, rgba(89,162,255,1) 30%, rgba(81,145,226,1) 100%);
--border-radius: 20px;
--box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: "Roboto", arial, sans-serif;
color: #222;
background: #F5F4F4;
}
#profile-card {
height: 300px;
width: 500px;
padding: 20px;
border-radius: var(--border-radius);
background: white;
position: relative;
box-shadow: var(--box-shadow);
}
#profile-card .profile-img {
height: 100px;
width: 100px;
background: url('headshot.jpg');
background-size: cover;
background-position: center;
position: absolute;
top: -25px;
left: -25px;
border-radius: 50%;
box-shadow: var(--box-shadow);
}
#profile-card h1 {
font-family: "Roboto", arial, sans-serif;
font-weight: bold;
text-align: center;
margin-top: 5px;
margin-bottom: 30px;
color: var(--font-color-accent);
}
#profile-card .description {
text-align: center;
margin-left: 20px;
margin-right: 20px;
margin-bottom: 40px;
}
#profile-card .social {
display: flex;
justify-content: space-between;
align-items: center;
width: calc(100% - 40px);
margin: 0 auto;
}
#profile-card .social a {
text-align: center;
padding: 5px 0;
}
#profile-card .social a:hover {
color: white;
cursor: pointer;
}
#profile-card .footer {
border: none;
outline: 0;
display: inline-block;
background: var(--footer-background);
color: white;
font-size: 1.1em;
font-weight: bold;
letter-spacing: 1px;
width: 100%;
position: absolute;
bottom: 0;
height: 60px;
padding: 0 20px;
margin-left: -20px;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}
#profile-card .footer:hover {
opacity: 0.7;
cursor: pointer;
}