Skip to content

Commit 01185b7

Browse files
Remove workExperiences export from work page component
1 parent 9bdd186 commit 01185b7

File tree

1 file changed

+18
-84
lines changed

1 file changed

+18
-84
lines changed

src/app/work/page.tsx

Lines changed: 18 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,28 @@
11
"use client";
22

3-
import React, { useState } from "react";
3+
import React from "react";
44
import { motion } from "framer-motion";
5-
import { useRouter } from "next/navigation";
65
import WorkCard from "@/components/WorkCard";
76
import WindowPanel from "@/components/WindowPanel";
8-
import BackArrow from "@/components/BackArrow";
9-
import Breadcrumbs from "@/components/Breadcrumbs";
10-
11-
// Add 'export' here
12-
export const workExperiences = [
13-
{
14-
company: "Solidaris",
15-
projects: [
16-
{
17-
id: "1",
18-
title: "e-Mut",
19-
description: "Description of Project 1",
20-
imageUrl: "https://placehold.co/600x400/png",
21-
},
22-
{
23-
id: "2",
24-
title: "ScanSequel",
25-
description: "Description of Project 2",
26-
imageUrl: "https://placehold.co/600x400/png",
27-
},
28-
{
29-
id: "3",
30-
title: "Project 3",
31-
description: "Description of Project 3",
32-
imageUrl: "https://placehold.co/600x400/png",
33-
},
34-
],
35-
},
36-
{
37-
company: "Tobania",
38-
projects: [
39-
{
40-
id: "4",
41-
title: "Project 4",
42-
description: "Description of Project 4",
43-
imageUrl: "https://placehold.co/600x400/png",
44-
},
45-
{
46-
id: "5",
47-
title: "Project 5",
48-
description: "Description of Project 5",
49-
imageUrl: "https://placehold.co/600x400/png",
50-
},
51-
],
52-
},
53-
{
54-
company: "Colruyt",
55-
projects: [
56-
{
57-
id: "6",
58-
title: "Project 6",
59-
description: "Description of Project 6",
60-
imageUrl: "https://placehold.co/600x400/png",
61-
},
62-
],
63-
},
64-
];
65-
66-
export default function Work() {
67-
const router = useRouter();
7+
import { workExperiences } from "@/data/workExperiences";
688

9+
export default function WorkPage() {
6910
return (
70-
<motion.div
71-
initial={{ opacity: 0, scale: 0.8 }}
72-
animate={{ opacity: 1, scale: 1 }}
73-
transition={{
74-
duration: 0.5,
75-
type: "spring",
76-
stiffness: 260,
77-
damping: 20,
78-
}}
79-
className="min-h-screen bg-background dark:bg-background-dark p-10 sm:p-12 md:p-16 flex flex-col relative pt-32"
80-
>
81-
<div className="mt-16 flex flex-col items-center">
82-
<WindowPanel title="My Work" showBackArrow showBreadcrumbs>
83-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-4">
84-
{workExperiences.flatMap((company) =>
85-
company.projects.map((project, index) => (
86-
<WorkCard key={project.id} {...project} index={index} />
87-
))
88-
)}
89-
</div>
90-
</WindowPanel>
11+
<WindowPanel title="Work" showBackArrow showBreadcrumbs>
12+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
13+
{workExperiences.flatMap((company) =>
14+
company.projects.map((project, index) => (
15+
<WorkCard
16+
key={project.id}
17+
id={project.id}
18+
title={project.title}
19+
description={project.description}
20+
imageUrl={project.imageUrl}
21+
index={index}
22+
/>
23+
))
24+
)}
9125
</div>
92-
</motion.div>
26+
</WindowPanel>
9327
);
9428
}

0 commit comments

Comments
 (0)