|
1 | 1 | "use client";
|
2 | 2 |
|
3 |
| -import React, { useState } from "react"; |
| 3 | +import React from "react"; |
4 | 4 | import { motion } from "framer-motion";
|
5 |
| -import { useRouter } from "next/navigation"; |
6 | 5 | import WorkCard from "@/components/WorkCard";
|
7 | 6 | 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"; |
68 | 8 |
|
| 9 | +export default function WorkPage() { |
69 | 10 | 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 | + )} |
91 | 25 | </div>
|
92 |
| - </motion.div> |
| 26 | + </WindowPanel> |
93 | 27 | );
|
94 | 28 | }
|
0 commit comments