|
| 1 | +// pages/index.tsx |
1 | 2 | import Image from "next/image"; |
| 3 | +import ProjectCard from "../components/ProjectCard"; |
2 | 4 |
|
3 | 5 | export default function Home() { |
4 | | - return ( |
5 | | - <main className="min-h-screen flex flex-col items-center justify-center p-10 text-center bg-slate-950"> |
6 | | - <div className="mb-10"> |
7 | | - <Image |
8 | | - className="mx-auto" |
9 | | - src="/dev-gallery.jpg" |
10 | | - alt="Dev Gallery Logo" |
11 | | - width={180} |
12 | | - height={180} |
13 | | - priority |
14 | | - /> |
15 | | - <h1 className="mt-5 text-5xl font-bold text-slate-50"> |
16 | | - Welcome to devgallery.io |
17 | | - </h1> |
18 | | - <p className="mt-2 text-lg font-light text-gray-100"> |
19 | | - Explore amazing projects developed by talented developers |
20 | | - </p> |
21 | | - </div> |
| 6 | + return ( |
| 7 | + <main className="min-h-screen flex flex-col items-center justify-center p-10 text-center bg-slate-950"> |
| 8 | + <div className="mb-10"> |
| 9 | + <Image |
| 10 | + className="mx-auto" |
| 11 | + src="/dev-gallery.png" |
| 12 | + alt="Dev Gallery Logo" |
| 13 | + width={180} |
| 14 | + height={180} |
| 15 | + priority |
| 16 | + /> |
| 17 | + <h1 className="mt-5 text-5xl font-bold text-slate-50"> |
| 18 | + Welcome to devgallery.io |
| 19 | + </h1> |
| 20 | + <p className="mt-2 text-lg font-light text-gray-100"> |
| 21 | + Explore amazing projects developed by talented developers |
| 22 | + </p> |
| 23 | + </div> |
22 | 24 |
|
23 | | - {/* <div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"> |
24 | | - {projects.map((project) => ( |
25 | | - <div key={project.id} className="p-4 border rounded-lg shadow-sm"> |
26 | | - <h2 className="mb-2 text-2xl font-semibold">{project.name}</h2> |
27 | | - <p className="text-sm text-gray-600">{project.description}</p> |
28 | | - </div> |
29 | | - ))} |
30 | | - </div> */} |
31 | | - </main> |
32 | | - ); |
| 25 | + <div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3"> |
| 26 | + <ProjectCard |
| 27 | + projectName="Project 1" |
| 28 | + developerName="Developer 1" |
| 29 | + imageUrl="/project1.jpg" |
| 30 | + content="This is a brief description of the project." |
| 31 | + projectLink="https://project1.example.com" |
| 32 | + /> |
| 33 | + <ProjectCard |
| 34 | + projectName="Project 1" |
| 35 | + developerName="Developer 1" |
| 36 | + imageUrl="/project1.jpg" |
| 37 | + content="This is a brief description of the project." |
| 38 | + projectLink="https://project1.example.com" |
| 39 | + /> |
| 40 | + <ProjectCard |
| 41 | + projectName="Project 1" |
| 42 | + developerName="Developer 1" |
| 43 | + imageUrl="/project1.jpg" |
| 44 | + content="This is a brief description of the project." |
| 45 | + projectLink="https://project1.example.com" |
| 46 | + /> |
| 47 | + <ProjectCard |
| 48 | + projectName="Project 1" |
| 49 | + developerName="Developer 1" |
| 50 | + imageUrl="/project1.jpg" |
| 51 | + content="This is a brief description of the project." |
| 52 | + projectLink="https://project1.example.com" |
| 53 | + /> |
| 54 | + <ProjectCard |
| 55 | + projectName="Project 1" |
| 56 | + developerName="Developer 1" |
| 57 | + imageUrl="/project1.jpg" |
| 58 | + content="This is a brief description of the project." |
| 59 | + projectLink="https://project1.example.com" |
| 60 | + /> |
| 61 | + <ProjectCard |
| 62 | + projectName="Project 1" |
| 63 | + developerName="Developer 1" |
| 64 | + imageUrl="/project1.jpg" |
| 65 | + content="This is a brief description of the project." |
| 66 | + projectLink="https://project1.example.com" |
| 67 | + /> |
| 68 | + <ProjectCard |
| 69 | + projectName="Project 1" |
| 70 | + developerName="Developer 1" |
| 71 | + imageUrl="/project1.jpg" |
| 72 | + content="This is a brief description of the project." |
| 73 | + projectLink="https://project1.example.com" |
| 74 | + /> |
| 75 | + <ProjectCard |
| 76 | + projectName="Project 1" |
| 77 | + developerName="Developer 1" |
| 78 | + imageUrl="/project1.jpg" |
| 79 | + content="This is a brief description of the project." |
| 80 | + projectLink="https://project1.example.com" |
| 81 | + /> |
| 82 | + <ProjectCard |
| 83 | + projectName="Project 1" |
| 84 | + developerName="Developer 1" |
| 85 | + imageUrl="/project1.jpg" |
| 86 | + content="This is a brief description of the project." |
| 87 | + projectLink="https://project1.example.com" |
| 88 | + /> |
| 89 | + <ProjectCard |
| 90 | + projectName="Project 1" |
| 91 | + developerName="Developer 1" |
| 92 | + imageUrl="/project1.jpg" |
| 93 | + content="This is a brief description of the project." |
| 94 | + projectLink="https://project1.example.com" |
| 95 | + /> |
| 96 | + <ProjectCard |
| 97 | + projectName="Project 1" |
| 98 | + developerName="Developer 1" |
| 99 | + imageUrl="/project1.jpg" |
| 100 | + content="This is a brief description of the project." |
| 101 | + projectLink="https://project1.example.com" |
| 102 | + /> |
| 103 | + <ProjectCard |
| 104 | + projectName="Project 1" |
| 105 | + developerName="Developer 1" |
| 106 | + imageUrl="/project1.jpg" |
| 107 | + content="This is a brief description of the project." |
| 108 | + projectLink="https://project1.example.com" |
| 109 | + /> |
| 110 | + </div> |
| 111 | + </main> |
| 112 | + ); |
33 | 113 | } |
0 commit comments