diff --git a/frontend/public/10.png b/frontend/public/10.png new file mode 100644 index 0000000..06272d4 Binary files /dev/null and b/frontend/public/10.png differ diff --git a/frontend/public/12.png b/frontend/public/12.png new file mode 100644 index 0000000..23b20c6 Binary files /dev/null and b/frontend/public/12.png differ diff --git a/frontend/public/9.png b/frontend/public/9.png new file mode 100644 index 0000000..775e543 Binary files /dev/null and b/frontend/public/9.png differ diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index a52d9c2..321e60b 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -1,6 +1,12 @@ @import "tailwindcss"; @import "tw-animate-css"; +body { + margin: 0; + padding: 0; + background-color: #1F2F40; +} + @custom-variant dark (&:is(.dark *)); @theme inline { diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 6226ef4..54d0ea0 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -20,7 +20,7 @@ import type { Job } from "@/lib/types" export default function HomePage() { const { t } = useTranslation() const config = useConfig() - const [featuredJobs, setFeaturedJobs] = useState([]) + const [featuredJobs, setFeaturedJobs] = useState(mockJobs.slice(0, 31)) const [loading, setLoading] = useState(true) const [featuredIndex, setFeaturedIndex] = useState(0) const [moreJobsIndex, setMoreJobsIndex] = useState(0) @@ -56,9 +56,9 @@ export default function HomePage() { const featuredList = featuredData.data ? mapJobs(featuredData.data) : [] console.log("[DEBUG] Mapped featured jobs:", featuredList.length, "jobs") - if (featuredList.length === 31) { - console.log("[DEBUG] Using featured jobs only (31 found)") - setFeaturedJobs(featuredList) + if (featuredList.length >= 24) { + console.log("[DEBUG] Using featured/API jobs") + setFeaturedJobs(featuredList.slice(0, 31)) return } @@ -76,20 +76,12 @@ export default function HomePage() { const combined = [...featuredList, ...fallbackList].slice(0, 31) console.log("[DEBUG] Combined jobs:", combined.length, "jobs") - if (combined.length === 31) { - console.log("[DEBUG] Using combined jobs (31)") + if (combined.length >= 24) { + console.log("[DEBUG] Using combined jobs") setFeaturedJobs(combined) - } else if (combined.length > 0) { - 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, 31)) } } catch (error) { console.error("[DEBUG] ❌ Error fetching featured jobs:", error) - console.log("[DEBUG] ⚠️ USING MOCK DATA due to error") - setFeaturedJobs(mockJobs.slice(0, 31)) } finally { setLoading(false) } @@ -98,29 +90,18 @@ export default function HomePage() { }, []) return ( -
+
{/* Hero Section */} -
+
- {/* Desktop */} Background - {/* Mobile */} - Background
-
+
{t('home.hero.title')}
{t('home.hero.titleLine2')}
@@ -141,7 +122,7 @@ export default function HomePage() { initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5, delay: 0.1 }} - className="text-lg mb-8 leading-relaxed text-white/90" + className="text-base mb-8 leading-relaxed text-white" > {t('home.hero.subtitle')} @@ -152,7 +133,7 @@ export default function HomePage() { className="flex gap-4" > - @@ -163,10 +144,10 @@ export default function HomePage() {
{/* Search Bar Section */} -
-
-
-
+
+
+
+
@@ -174,84 +155,72 @@ export default function HomePage() {
-
-
-
- -
-