diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 744f73b..a52d9c2 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -51,7 +51,7 @@ --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); --popover-foreground: oklch(0.145 0 0); - --primary: oklch(0.686 0.173 55); /* #f0932b Orange */ + --primary: oklch(0.705 0.188 57.5); /* #f0932b Orange */ --primary-foreground: oklch(1 0 0); --secondary: oklch(0.97 0 0); --secondary-foreground: oklch(0.205 0 0); @@ -62,20 +62,20 @@ --destructive: oklch(0.577 0.245 27.325); --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); - --ring: oklch(0.686 0.173 55); - --chart-1: oklch(0.686 0.173 55); + --ring: oklch(0.705 0.188 57.5); + --chart-1: oklch(0.705 0.188 57.5); --chart-2: oklch(0.6 0.118 184.704); --chart-3: oklch(0.398 0.07 227.392); --chart-4: oklch(0.828 0.189 84.429); --chart-5: oklch(0.769 0.188 70.08); --sidebar: oklch(0.985 0 0); --sidebar-foreground: oklch(0.145 0 0); - --sidebar-primary: oklch(0.686 0.173 55); + --sidebar-primary: oklch(0.705 0.188 57.5); --sidebar-primary-foreground: oklch(1 0 0); --sidebar-accent: oklch(0.97 0 0); --sidebar-accent-foreground: oklch(0.205 0 0); --sidebar-border: oklch(0.922 0 0); - --sidebar-ring: oklch(0.686 0.173 55); + --sidebar-ring: oklch(0.705 0.188 57.5); } .dark { @@ -85,7 +85,7 @@ --card-foreground: oklch(0.985 0 0); --popover: oklch(0.205 0 0); --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.686 0.173 55); /* #f0932b Orange */ + --primary: oklch(0.705 0.188 57.5); /* #f0932b Orange */ --primary-foreground: oklch(1 0 0); --secondary: oklch(0.269 0 0); --secondary-foreground: oklch(0.985 0 0); @@ -96,8 +96,8 @@ --destructive: oklch(0.704 0.191 22.216); --border: oklch(1 0 0 / 10%); --input: oklch(1 0 0 / 15%); - --ring: oklch(0.686 0.173 55); - --chart-1: oklch(0.686 0.173 55); + --ring: oklch(0.705 0.188 57.5); + --chart-1: oklch(0.705 0.188 57.5); --chart-2: oklch(0.696 0.17 162.48); --chart-3: oklch(0.769 0.188 70.08); --chart-4: oklch(0.627 0.265 303.9); diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index cc21d90..6226ef4 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -45,8 +45,8 @@ export default function HomePage() { isFeatured: j.isFeatured })) - console.log("[DEBUG] Fetching featured jobs from:", `${apiBase}/api/v1/jobs?featured=true&limit=6`) - const featuredRes = await fetch(`${apiBase}/api/v1/jobs?featured=true&limit=6`) + console.log("[DEBUG] Fetching featured jobs from:", `${apiBase}/api/v1/jobs?featured=true&limit=31`) + const featuredRes = await fetch(`${apiBase}/api/v1/jobs?featured=true&limit=31`) console.log("[DEBUG] Featured response status:", featuredRes.status) if (!featuredRes.ok) throw new Error("Failed to fetch featured jobs") @@ -56,14 +56,14 @@ export default function HomePage() { const featuredList = featuredData.data ? mapJobs(featuredData.data) : [] console.log("[DEBUG] Mapped featured jobs:", featuredList.length, "jobs") - if (featuredList.length === 6) { - console.log("[DEBUG] Using featured jobs only (6 found)") + if (featuredList.length === 31) { + console.log("[DEBUG] Using featured jobs only (31 found)") setFeaturedJobs(featuredList) return } - console.log("[DEBUG] Fetching fallback jobs from:", `${apiBase}/api/v1/jobs?limit=6`) - const fallbackRes = await fetch(`${apiBase}/api/v1/jobs?limit=6`) + console.log("[DEBUG] Fetching fallback jobs from:", `${apiBase}/api/v1/jobs?limit=31`) + const fallbackRes = await fetch(`${apiBase}/api/v1/jobs?limit=31`) console.log("[DEBUG] Fallback response status:", fallbackRes.status) if (!fallbackRes.ok) throw new Error("Failed to fetch fallback jobs") @@ -73,23 +73,23 @@ export default function HomePage() { const fallbackList = fallbackData.data ? mapJobs(fallbackData.data) : [] console.log("[DEBUG] Mapped fallback jobs:", fallbackList.length, "jobs") - const combined = [...featuredList, ...fallbackList].slice(0, 6) + const combined = [...featuredList, ...fallbackList].slice(0, 31) console.log("[DEBUG] Combined jobs:", combined.length, "jobs") - if (combined.length === 6) { - console.log("[DEBUG] Using combined jobs (6)") + if (combined.length === 31) { + console.log("[DEBUG] Using combined jobs (31)") setFeaturedJobs(combined) } else if (combined.length > 0) { - console.log("[DEBUG] Using combined jobs (less than 6)") + console.log("[DEBUG] Using combined jobs (less than 31)") setFeaturedJobs(combined) } else { console.log("[DEBUG] ⚠️ USING MOCK DATA - No API jobs found!") - setFeaturedJobs(mockJobs.slice(0, 6)) + setFeaturedJobs(mockJobs.slice(0, 31)) } } catch (error) { console.error("[DEBUG] ❌ Error fetching featured jobs:", error) console.log("[DEBUG] ⚠️ USING MOCK DATA due to error") - setFeaturedJobs(mockJobs.slice(0, 6)) + setFeaturedJobs(mockJobs.slice(0, 31)) } finally { setLoading(false) } @@ -269,7 +269,7 @@ export default function HomePage() {