feat: add multi-user admin panel and featured partners toggle on home page

This commit is contained in:
AyrisAI
2026-05-17 13:48:05 +03:00
parent 36e98a3883
commit 0504f12f5b
29 changed files with 1110 additions and 182 deletions

View File

@@ -4,7 +4,7 @@ import Image from "next/image";
import { useState } from "react";
import Link from "next/link";
import { ArrowUpRight } from "lucide-react";
import Footer from "@/components/Footer";
interface ProjectCardProps {
hero_image: string;
@@ -97,7 +97,7 @@ export default function WorksClient({ projects: initialProjects }: { projects: a
break;
}
}
} catch (e) {}
} catch (e) { }
return Array.isArray(current) ? current : (typeof current === 'string' && current ? [current] : []);
})))];
@@ -113,7 +113,7 @@ export default function WorksClient({ projects: initialProjects }: { projects: a
break;
}
}
} catch (e) {}
} catch (e) { }
const cats = Array.isArray(current) ? current : (typeof current === 'string' && current ? [current] : []);
return cats.includes(activeCategory);
});
@@ -181,7 +181,6 @@ export default function WorksClient({ projects: initialProjects }: { projects: a
</div>
</section>
<Footer />
</main>
);
}