Skip to content

Commit a2a464d

Browse files
committed
Fixed Mobile Header and Dropdown Spcaing + Changed Landing Page Photos
1 parent b8e8f46 commit a2a464d

File tree

6 files changed

+50
-11
lines changed

6 files changed

+50
-11
lines changed

src/app/globals.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,48 @@ img {
502502
}
503503
}
504504

505+
@media (max-width: 640px) {
506+
.category-header {
507+
height: 56px;
508+
padding: 0 14px;
509+
grid-template-columns: auto 1fr auto;
510+
}
511+
512+
.category-header-spacer {
513+
width: 24px;
514+
}
515+
516+
.category-name {
517+
font-size: 19px;
518+
letter-spacing: 0.04em;
519+
}
520+
521+
.category-switch-button {
522+
padding: 6px 8px;
523+
font-size: 0.55rem;
524+
letter-spacing: 0.18em;
525+
}
526+
527+
.category-switch-menu {
528+
right: 0;
529+
left: auto;
530+
transform: none;
531+
min-width: 140px;
532+
top: calc(100% + 8px);
533+
}
534+
535+
.category-switch-link {
536+
font-size: 0.56rem;
537+
padding: 7px;
538+
}
539+
}
540+
541+
@media (max-width: 420px) {
542+
.category-name {
543+
font-size: 17px;
544+
}
545+
}
546+
505547
@media (max-width: 600px) {
506548
.category-grid {
507549
column-count: 1;

src/app/nature/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const images = [
1212
{ src: "/photos/nature/_DSC0450.JPEG", alt: "DSC0450" },
1313
{ src: "/photos/nature/_DSC0473.JPEG", alt: "DSC0473" },
1414
{ src: "/photos/nature/_DSC0535.JPEG", alt: "DSC0535" },
15-
{ src: "/photos/nature/_DSC0539.JPEG", alt: "DSC0539" },
1615
{ src: "/photos/nature/_DSC0543.JPEG", alt: "DSC0543" },
1716
{ src: "/photos/nature/_DSC0550.JPEG", alt: "DSC0550" },
1817
{ src: "/photos/nature/_DSC0609.JPEG", alt: "DSC0609" },

src/app/page.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ import { useEffect, useMemo, useRef, useState } from "react";
55
import { withBasePath } from "@/lib/basePath";
66

77
type Photo = {
8-
category: "Landscape" | "Nature" | "Street";
8+
title: string;
99
src: string;
1010
featured: boolean;
1111
};
1212

1313
const photos: Photo[] = [
1414
{
15-
category: "Landscape",
15+
title: "Brooklyn Bridge",
1616
src: "/photos/Bridge.png",
1717
featured: true
1818
},
1919
{
20-
category: "Nature",
20+
title: "Monarch Butterfly",
2121
src: "/photos/Butterfly.png",
2222
featured: true
2323
},
2424
{
25-
category: "Landscape",
25+
title: "Dreamy Subway Station",
2626
src: "/photos/Dreamy_Subway.PNG",
2727
featured: true
2828
},
2929
{
30-
category: "Street",
31-
src: "/photos/SF_House.PNG",
30+
title: "Big Sur Waves",
31+
src: "/photos/Big_Sur.JPEG",
3232
featured: true
3333
},
3434
{
35-
category: "Landscape",
35+
title: "Wilhelmina Windmill",
3636
src: "/photos/Windmill.png",
3737
featured: true
3838
},
@@ -309,9 +309,6 @@ export default function Home() {
309309
<img
310310
src={withBasePath(lightbox.items[lightbox.index].src)}
311311
/>
312-
<span className="meta">
313-
{lightbox.items[lightbox.index].category}
314-
</span>
315312
</figure>
316313
</div>
317314
)}

src/app/street/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import CategoryGallery from "@/components/CategoryGallery";
22

33
const images = [
44
{ src: "/photos/street/Phone_Booth.JPG", alt: "Phone Booth" },
5+
{ src: "/photos/street/SF_House.PNG", alt: "SF House" },
56
{ src: "/photos/street/_DSC0354.PNG", alt: "DSC0354" },
67
{ src: "/photos/street/_DSC0502.PNG", alt: "DSC0502" },
78
{ src: "/photos/street/_DSC0514.PNG", alt: "DSC0514" },

0 commit comments

Comments
 (0)