Skip to content

Commit 96ba06b

Browse files
committed
Add images
1 parent 0dafc60 commit 96ba06b

27 files changed

+81
-7
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import image2023_1 from "./2023/1.webp"
2+
import image2023_2 from "./2023/2.webp"
3+
import image2023_3 from "./2023/3.webp"
4+
import image2023_4 from "./2023/4.webp"
5+
import image2023_5 from "./2023/5.webp"
6+
import image2023_6 from "./2023/6.webp"
7+
import image2023_7 from "./2023/7.webp"
8+
import image2023_8 from "./2023/8.webp"
9+
import image2023_9 from "./2023/9.webp"
10+
import image2023_10 from "./2023/10.webp"
11+
import image2023_11 from "./2023/11.webp"
12+
import image2023_12 from "./2023/12.webp"
13+
import image2023_13 from "./2023/13.webp"
14+
15+
import image2024_1 from "./2024/1.webp"
16+
import image2024_2 from "./2024/2.webp"
17+
import image2024_3 from "./2024/3.webp"
18+
import image2024_4 from "./2024/4.webp"
19+
import image2024_6 from "./2024/6.webp"
20+
import image2024_7 from "./2024/7.webp"
21+
import image2024_8 from "./2024/8.webp"
22+
import image2024_9 from "./2024/9.webp"
23+
import image2024_11 from "./2024/11.webp"
24+
import image2024_12 from "./2024/12.webp"
25+
import image2024_13 from "./2024/13.webp"
26+
27+
export const imagesByYear = {
28+
"2023": [
29+
image2023_8,
30+
image2023_3,
31+
image2023_11,
32+
image2023_1,
33+
image2023_13,
34+
image2023_6,
35+
image2023_9,
36+
image2023_4,
37+
image2023_12,
38+
image2023_2,
39+
image2023_7,
40+
image2023_10,
41+
image2023_5,
42+
],
43+
"2024": [
44+
image2024_2,
45+
image2024_3,
46+
image2024_12,
47+
image2024_7,
48+
image2024_9,
49+
image2024_6,
50+
image2024_13,
51+
image2024_11,
52+
image2024_8,
53+
image2024_1,
54+
image2024_4,
55+
],
56+
}

src/app/conf/2025/components/gallery-strip/index.tsx

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
import { useState } from "react"
44
import { clsx } from "clsx"
5+
import Image from "next-image-export-optimizer"
56
import { Marquee } from "@/app/conf/_design-system/marquee"
67

7-
const YEARS = ["2024", "2023", "2022"] as const
8+
import { imagesByYear } from "./images"
9+
10+
const YEARS = ["2024", "2023"] as const
811
type Year = (typeof YEARS)[number]
912

1013
export interface GalleryStripProps extends React.HTMLAttributes<HTMLElement> {}
@@ -13,7 +16,11 @@ export function GalleryStrip({ className, ...rest }: GalleryStripProps) {
1316
const [selectedYear, setSelectedYear] = useState<Year>("2024")
1417

1518
return (
16-
<section className={clsx("py-8 md:py-16", className)} {...rest}>
19+
<section
20+
role="presentation"
21+
className={clsx("py-8 md:py-16", className)}
22+
{...rest}
23+
>
1724
<div className="flex gap-3.5 max-md:items-center md:px-24">
1825
{YEARS.map(year => (
1926
<button
@@ -33,11 +40,22 @@ export function GalleryStrip({ className, ...rest }: GalleryStripProps) {
3340

3441
<div className="mt-6 w-full md:mt-10">
3542
<Marquee gap={8} speed={35} speedOnHover={15} drag reverse>
36-
{Array.from({ length: 12 }).map((_, i) => (
37-
<div key={i} className="md:px-2" role="presentation">
38-
<div className="h-[400px] w-[300px] bg-neu-500"></div>
39-
</div>
40-
))}
43+
{imagesByYear[selectedYear].map((image, i) => {
44+
return (
45+
<div
46+
key={`${selectedYear}-${i}`}
47+
className="md:px-2"
48+
role="presentation"
49+
>
50+
<Image
51+
src={image}
52+
alt=""
53+
height={320}
54+
className="pointer-events-none"
55+
/>
56+
</div>
57+
)
58+
})}
4159
</Marquee>
4260
</div>
4361
</section>

0 commit comments

Comments
 (0)