-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhero.css
More file actions
99 lines (88 loc) · 2.18 KB
/
Copy pathhero.css
File metadata and controls
99 lines (88 loc) · 2.18 KB
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
.hero-v2 {
display: block;
min-height: calc(100vh - 47px);
padding: 24px 28px 0;
}
.hero-layout {
align-items: center;
column-gap: 64px;
display: grid;
grid-template-columns: minmax(0, 1fr) 220px;
grid-template-rows: auto auto;
margin: 0 auto;
max-width: 1320px;
min-height: 0;
padding: 64px 0 72px;
}
.hero-main { display: contents; }
.hero-main h1 {
align-self: center;
font-size: clamp(96px, 10.5vw, 166px);
grid-column: 1;
grid-row: 1;
line-height: 0.74;
}
.hero-profile {
align-items: center;
display: flex;
grid-column: 2;
grid-row: 1;
justify-content: center;
}
.hero-portrait {
background: transparent;
border-radius: 50%;
height: 184px;
margin: 0;
overflow: visible;
position: relative;
width: 184px;
}
.hero-portrait img {
border-radius: 50%;
filter: grayscale(1) contrast(1.04);
height: 100%;
object-fit: cover;
object-position: 50% 24%;
position: relative;
width: 100%;
z-index: 2;
}
.hero-main > .hero-links {
display: grid;
gap: 18px;
grid-column: 1 / -1;
grid-row: 2;
grid-template-columns: repeat(3, minmax(0, 240px));
justify-content: center;
margin: 54px auto 0;
max-width: 780px;
width: 100%;
}
.hero-main > .hero-links a {
aspect-ratio: 1;
border: 1px dotted var(--line);
min-height: 0;
padding: 16px;
}
.hero-main > .hero-links a:nth-child(2n) { border-right: 1px dotted var(--line); }
.hero-main > .hero-links a strong { font-size: clamp(24px, 2.1vw, 34px); }
@media (max-width: 1050px) {
.hero-layout { column-gap: 36px; grid-template-columns: minmax(0, 1fr) 190px; }
.hero-main h1 { font-size: clamp(88px, 10vw, 146px); }
.hero-portrait { height: 164px; width: 164px; }
}
@media (max-width: 700px) {
.hero-v2 { padding: 20px 14px 0; }
.hero-layout {
column-gap: 18px;
grid-template-columns: minmax(0, 1fr) 112px;
padding: 42px 0 54px;
}
.hero-main h1 { font-size: 21vw; grid-column: 1; grid-row: 1; }
.hero-profile { grid-column: 2; grid-row: 1; }
.hero-portrait { height: 100px; width: 100px; }
.hero-main > .hero-links { gap: 10px; margin-top: 34px; }
.hero-main > .hero-links a { padding: 10px; }
.hero-main > .hero-links a strong { font-size: 18px; }
}