diff --git a/src/app/projects/components/project-grid.tsx b/src/app/projects/components/project-grid.tsx index f236f73..f2be5ac 100644 --- a/src/app/projects/components/project-grid.tsx +++ b/src/app/projects/components/project-grid.tsx @@ -45,7 +45,7 @@ export function ProjectGrid({ initialCategories, initialProjects, dummyImage }: : initialCategories.find(c => c.id === selectedCategory); return ( -
+
{/* Category selection UI */}
{/* Project grid */} -
+
{filteredProjects.map((project: Project) => (
- {/* bottom white box */} -
+ {/* Content overlay - positioned at bottom with margin, but not absolutely positioned */} +
-

{project.name}

-

Problem: {project.problem}

-

Tools Used: {Array.isArray(project.tools_used) ? project.tools_used.join(', ') : project.tools_used}

-

Outcome: {project.outcome}

+

{project.name}

+

Problem: {project.problem}

+

Tools Used: {Array.isArray(project.tools_used) ? project.tools_used.join(', ') : project.tools_used}

+

Outcome: {project.outcome}

-
+
{/* Learn More*/} - - Learn More + + Learn More {/* Category tag*/} - + {categoryMap[project.category_id]}
diff --git a/src/app/projects/page.tsx b/src/app/projects/page.tsx index 4a94014..9c41ba6 100644 --- a/src/app/projects/page.tsx +++ b/src/app/projects/page.tsx @@ -1,6 +1,7 @@ import { supabase } from '@/lib/supabaseClient'; import { Hero } from '@/components/Hero'; import { ProjectGrid } from './components/project-grid'; +import { SectionContainer } from '@/components/SectionContainer'; import { generateProjectsMetadata } from '@/lib/seo'; export const metadata = generateProjectsMetadata(); @@ -19,7 +20,7 @@ export default async function ProjectsPage() { if (catError || projError) { return ( -
+
Failed to load projects or categories.
{catError?.message || projError?.message || 'Unknown error'}
@@ -29,11 +30,15 @@ export default async function ProjectsPage() { return ( <> - + +
+ +
+
); } diff --git a/src/components/Button.tsx b/src/components/Button.tsx index ebb5140..eea1972 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -15,7 +15,7 @@ export const Button = ({ href, ...props }: ButtonProps) => { - const baseClasses = 'inline-flex items-center justify-center px-6 py-2.5 rounded-3xl transition-opacity duration-300 disabled:opacity-50 disabled:cursor-not-allowed'; + const baseClasses = 'inline-flex items-center justify-center px-6 py-2.5 rounded-3xl transition-opacity duration-300 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer'; const variantClasses = { primary: 'bg-color-01 text-white hover:opacity-90 shadow-sm', @@ -34,7 +34,7 @@ export const Button = ({ } return ( - );