-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
285 lines (243 loc) · 6.07 KB
/
style.css
File metadata and controls
285 lines (243 loc) · 6.07 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
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
/* --- Body and Background --- */
body {
margin: 0;
padding: 40px; /* Lets the page scroll */
/* Your dotted background */
background-color: #f8f9fa;
background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
background-size: 20px 20px;
}
/* --- Font Styles (from your file) --- */
h1 {
font-family: 'Kalam';
font-weight: 400;
font-size: 3rem;
margin: 0;
}
h2 {
font-family: 'Kalam';
font-weight: 400;
font-size: 3rem;
margin-bottom: 50px;
text-align: center;
}
.hero p {
font-family: 'Kameron';
font-size: 1.2rem;
margin: 0;
line-height: 1.5;
}
.text-w-logo {
font-family: 'Kameron';
font-size: 1.2rem;
font-weight: 600;
margin: 0;
}
/* --- Hero Section (from your file) --- */
.hero {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
max-width: 1000px; /* Added max-width */
margin-left: auto;
margin-right: auto;
}
.hero-text {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
max-width: 400px;
}
.heroine {
width: 300px;
}
/* --- Project Grid Container --- */
.pics-wrap {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 60px;
/* Center the whole grid */
max-width: 1200px;
margin: 0 auto;
}
/* --- Project Card --- */
.thumbnails {
/* This adds the card look */
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
/* This is for the tilt and hover effects */
transition: transform 0.3s ease, box-shadow 0.3s ease;
/* Make it work as a link */
text-decoration: none;
color: inherit;
display: block;
}
.thumbnails img {
width: 100%; /* Make image fill the card */
display: block; /* Remove extra space below image */
border-radius: 8px 8px 0 0; /* Match card corners */
}
/* MrMed thumbnail height constraint */
#mrmed img {
height: 300px;
object-fit: contain;
}
.name-link {
display: flex;
align-items: center;
justify-content: space-between; /* Pushes text and arrow apart */
padding: 15px 20px; /* Adds breathing room */
}
/* Your arrow icon */
.name-link img {
width: 24px;
height: 24px;
}
/* --- The Fun Scrapbook Tilt --- */
.thumbnails:nth-child(1) {
transform: rotate(-3deg);
}
.thumbnails:nth-child(2) {
transform: rotate(2deg);
margin-top: 10px; /*Slight overlap */
}
.thumbnails:nth-child(3) {
transform: rotate(-1deg);
}
/* Hover effect */
.thumbnails:hover {
transform: scale(1.05) rotate(0deg); /* Straighten and zoom */
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
z-index: 10; /* Bring to front */
}
.heroine:hover {
transform: rotate(2deg);
/* ======================================= */
/* Responsive Design (Revised Logic) */
/* ======================================= */
/* --- 1. All Tablets (e.g., iPad Pro, Air, Mini) --- */
/* (Applies from 1200px down to 769px)
- Hero stays side-by-side but gets smaller.
- Projects snap to 2 columns.
*/
@media (max-width: 950px) {
/* --- Tablet Hero --- */
.hero {
/* Stays side-by-side, but with less gap */
gap: 2rem;
padding-left: 20px;
padding-right: 20px;
}
h1 {
font-size: 2.75rem; /* Slightly smaller title */
}
.hero p {
font-size: 1.1rem; /* Slightly smaller text */
}
.heroine {
width: 280px;
}
}
/* --- Tablet Projects --- */
.pics-wrap {
/* Snaps to 2-column grid */
grid-template-columns: repeat(2, 1fr);
padding-left: 20px;
padding-right: 20px;
}
}
/* --- 2. Mobile (iPhone) --- */
/* (Applies from 768px and down)
- Hero STACKS.
- Projects snap to 1 column.
*/
@media (max-width: 760px) {
/* --- Mobile Hero --- */
.hero {
/* This is the key: stacks text and image vertically */
flex-direction: column;
gap: 1.5rem;
margin-bottom: 60px;
padding-left: 20px; /* Keep padding */
padding-right: 20px;
}
.hero-text {
/* This centers your text elements */
align-items: center;
text-align: center;
max-width: 100%; /* Lets it use the full width */
}
h1 {
/* Makes your main title a bit smaller on phones */
font-size: 2.5rem;
}
.hero p {
font-size: 1rem;
}
.heroine {
/* Make your image a bit smaller so it fits nicely */
width: 250px;
}
/* --- Mobile Projects --- */
.projects h2 {
font-size: 2.5rem; /* Smaller "My Projects" title */
}
.pics-wrap {
/* This is the final snap to 1 column */
grid-template-columns: 1fr;
}
/* Optional: remove the tilt on mobile */
.thumbnails:nth-child(n) {
transform: rotate(0deg);
margin-top: 0;
}
}
/* ======================================= */
/* Footer */
/* ======================================= */
footer {
text-align: center;
padding: 50px 20px 30px 20px;
/* Adds a subtle line above the footer */
border-top: 1px solid #eee;
margin-top: 100px;
}
.social-links {
margin-bottom: 25px;
}
.social-links a {
/* This targets the <i> icon tags */
font-size: 1.8rem; /* Makes icons bigger */
color: #777; /* A subtle grey color */
margin: 0 15px; /* Spaces them out */
transition: color 0.3s ease;
}
.social-links a:hover {
color: #333; /* Darker on hover */
}
.contact-email {
margin-bottom: 25px;
}
.contact-email a {
font-family: 'Kameron', serif;
font-size: 1.2rem;
color: #333;
text-decoration: none;
/* Fun "highlighter" effect */
border-bottom: 2px solid #C2E5FF; /* Uses your sticky note blue */
padding-bottom: 2px;
transition: all 0.2s ease-in-out;
}
.contact-email a:hover {
background-color: #C2E5FF; /* Fills the highlight on hover */
color: #000;
}
.copyright {
font-family: 'Inter', sans-serif;
font-size: 0.9rem;
color: #aaa;
margin: 0;
}