-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.css
More file actions
171 lines (147 loc) · 3.92 KB
/
Copy pathhome.css
File metadata and controls
171 lines (147 loc) · 3.92 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
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
/* ── Base reset ──────────────────────────────────────────────────────── */
body {
background-color: #fff;
margin: 0;
color: #111;
}
/* ── Navbar ──────────────────────────────────────────────────────────── */
.top-nav {
display: flex;
justify-content: flex-end;
align-items: center;
padding: 16px 48px;
}
.nav-links-box {
display: flex;
border: 1.5px solid #111;
}
.nav-link {
display: inline-block;
padding: 7px 22px;
font-family: "Poppins", sans-serif;
font-size: 13px;
font-weight: 400;
color: #111;
text-decoration: none;
transition: background-color 0.15s ease;
}
.nav-link:not(:last-child) {
border-right: 1.5px solid #111;
}
.nav-link:hover {
background-color: #f5f5f5;
}
/* ── Main two-column layout ──────────────────────────────────────────── */
.main-layout {
display: grid;
grid-template-columns: 260px 1fr;
gap: 36px;
padding: 0 48px 48px 48px;
min-height: calc(100vh - 72px);
box-sizing: border-box;
}
/* ── Left sidebar ────────────────────────────────────────────────────── */
.left-sidebar {
display: flex;
flex-direction: column;
gap: 20px;
}
/* ── Name card ───────────────────────────────────────────────────────── */
.name-card-wrapper {
position: relative;
}
.name-card-accent {
position: absolute;
bottom: -9px;
right: -9px;
width: 100%;
height: 100%;
background: linear-gradient(145deg, #ff3d88 0%, #ff8a00 100%);
z-index: 0;
}
.name-card {
position: relative;
z-index: 1;
border: 2px solid #111;
background-color: #fff;
padding: 22px 20px 20px 20px;
}
.name-heading {
font-size: 30px;
font-weight: 700;
margin: 0 0 10px 0;
color: #111;
line-height: 1.15;
letter-spacing: -0.5px;
}
.name-sub {
font-size: 13px;
font-weight: 400;
color: #333;
margin: 0;
line-height: 1.9;
}
/* ── About box ───────────────────────────────────────────────────────── */
.about-box {
flex: 1;
border: 2px solid #111;
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
min-height: 180px;
}
.about-text {
font-size: 13px;
font-weight: 400;
color: #333;
line-height: 1.75;
margin: 0;
}
.about-links {
display: flex;
flex-direction: column;
gap: 6px;
/* margin-top: auto; */
}
.about-link {
font-size: 13px;
font-weight: 500;
color: #111;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 6px;
transition: opacity 0.2s ease;
}
.about-link::before {
content: '↗';
font-size: 12px;
}
.about-link:hover {
opacity: 0.5;
}
/* ── Responsive ──────────────────────────────────────────────────────── */
@media only screen and (max-width: 860px) {
.main-layout {
grid-template-columns: 1fr;
padding: 0 24px 40px 24px;
}
.top-nav {
padding: 14px 24px;
}
.about-box {
min-height: 120px;
}
}
@media only screen and (max-width: 500px) {
.main-layout {
padding: 0 16px 32px 16px;
}
.top-nav {
padding: 12px 16px;
}
.name-heading {
font-size: 26px;
}
}