diff --git a/app/hire/page.tsx b/app/hire/page.tsx index 69f6026ad..6dcc6b866 100644 --- a/app/hire/page.tsx +++ b/app/hire/page.tsx @@ -40,7 +40,6 @@ export default function HomePage() {
- {/* Logo carousel temporarily hidden for production. */}
diff --git a/components/landingHire/sections/social-proof.tsx b/components/landingHire/sections/social-proof.tsx deleted file mode 100644 index af870f244..000000000 --- a/components/landingHire/sections/social-proof.tsx +++ /dev/null @@ -1,13 +0,0 @@ -"use client"; - -import { LogoCarousel } from "@/components/landingStudent/sections/5thSection/companies"; -import { demoLogos } from "@/components/landingStudent/sections/5thSection/sectionpage"; - -export function SocialProofSection() { - return ( -
-

Trusted by these brands

- -
- ); -} diff --git a/components/landingStudent/sections/5thSection/companies.tsx b/components/landingStudent/sections/5thSection/companies.tsx deleted file mode 100644 index 2dc2d1fdc..000000000 --- a/components/landingStudent/sections/5thSection/companies.tsx +++ /dev/null @@ -1,191 +0,0 @@ -"use client"; - -import { useCallback, useEffect, useMemo, useState } from "react"; -import { AnimatePresence, motion } from "framer-motion"; - -interface Logo { - id: number; - name: string; - src: string; -} - -interface LogoColumnProps { - logos: Logo[]; - columnIndex: number; - currentTime: number; -} - -function LogoColumn({ logos, columnIndex, currentTime }: LogoColumnProps) { - const CYCLE_DURATION = 5000; - const columnDelay = columnIndex * 200; - const adjustedTime = - (currentTime + columnDelay) % (CYCLE_DURATION * logos.length); - const currentIndex = Math.floor(adjustedTime / CYCLE_DURATION); - const currentLogo = logos[currentIndex]; - - return ( - - - - {currentLogo.name} - - - - ); -} - -/* ============================ MOBILE (2×2 grid) ============================ */ - -function LogoTile({ - logos, - slot, - currentTime, -}: { - logos: Logo[]; - slot: number; // 0..3 - currentTime: number; -}) { - const CYCLE_DURATION = 4500; - const base = Math.floor( - (currentTime % (CYCLE_DURATION * Math.max(1, logos.length))) / - CYCLE_DURATION, - ); - const stride = Math.max(1, Math.ceil(logos.length / 4)); // spread choices across list - const idx = logos.length ? (base + slot * stride) % logos.length : 0; - const logo = logos.length ? logos[idx] : null; - - if (!logo) { - return
; - } - - return ( - - - - {logo.name} - - - - ); -} - -/* ================================ WRAPPER ================================ */ - -interface LogoCarouselProps { - columns?: number; - logos: Logo[]; -} - -export function LogoCarousel({ columns = 4, logos }: LogoCarouselProps) { - const [logoColumns, setLogoColumns] = useState([]); - const [time, setTime] = useState(0); - - // desktop/tablet distribution (original) - const distributeLogos = useCallback( - (list: Logo[]) => { - const shuffled = [...list].sort(() => Math.random() - 0.5); - const result: Logo[][] = Array.from({ length: columns }, () => []); - shuffled.forEach((logo, index) => { - result[index % columns].push(logo); - }); - const maxLength = Math.max(0, ...result.map((col) => col.length)); - result.forEach((col) => { - while (col.length < maxLength) { - col.push(shuffled[Math.floor(Math.random() * shuffled.length)]); - } - }); - return result; - }, - [columns], - ); - - useEffect(() => { - setLogoColumns(distributeLogos(logos)); - }, [logos, distributeLogos]); - - useEffect(() => { - const id = setInterval(() => setTime((t) => t + 100), 100); - return () => clearInterval(id); - }, []); - - if (!logos?.length) return null; - - return ( -
- {/* Mobile: big 2×2 grid */} -
- - -
- - {/* Tablet/Desktop: original animated columns */} -
-
- {logoColumns.map((columnLogos, index) => ( - - ))} -
-
-
- ); -} diff --git a/components/landingStudent/sections/5thSection/sectionpage.tsx b/components/landingStudent/sections/5thSection/sectionpage.tsx deleted file mode 100644 index 6aca923e6..000000000 --- a/components/landingStudent/sections/5thSection/sectionpage.tsx +++ /dev/null @@ -1,44 +0,0 @@ -"use client"; - -import { LogoCarousel } from "@/components/landingStudent/sections/5thSection/companies"; - -export const demoLogos = [ - { - id: 1, - name: "Asian Institute of Management", - src: "/landingPage/logos/aim.png", - }, - { - id: 2, - name: "Alaska Milk Corporation", - src: "/landingPage/logos/alaska.png", - }, - { - id: 3, - name: "APC by Schneider Electric", - src: "/landingPage/logos/apc.jpeg", - }, - { id: 4, name: "Jollibee", src: "/landingPage/logos/jollibee.png" }, - { id: 5, name: "Manulife", src: "/landingPage/logos/manulife.png" }, - { id: 6, name: "Oracle", src: "/landingPage/logos/oracle.png" }, - { id: 7, name: "SeriousMD", src: "/landingPage/logos/srsmd.jpeg" }, - { id: 8, name: "Sun Life Financial", src: "/landingPage/logos/sunlife.png" }, - { id: 9, name: "WWF Philippines", src: "/landingPage/logos/wwf.jpeg" }, - { id: 10, name: "MegaWorld", src: "/landingPage/logos/megaworld.png" }, -]; - -function LogoCarouselBasic() { - return ( -
-
-

- The best are already here -

-
- -
-
- ); -} - -export { LogoCarouselBasic }; diff --git a/components/landingStudent/sections/hero-section.tsx b/components/landingStudent/sections/hero-section.tsx index 3cd09705a..da90869be 100644 --- a/components/landingStudent/sections/hero-section.tsx +++ b/components/landingStudent/sections/hero-section.tsx @@ -169,8 +169,6 @@ export function HeroSection() {
- - {/* Logo carousel temporarily hidden for production. */} diff --git a/components/landingStudent/sections/index.ts b/components/landingStudent/sections/index.ts index 95d090577..8fa553c65 100644 --- a/components/landingStudent/sections/index.ts +++ b/components/landingStudent/sections/index.ts @@ -2,4 +2,3 @@ export { HeroSection } from "./hero-section"; export { PlatformSection } from "./3rdSection/platform-section"; export { Feature } from "./2ndSection/feature-with-image"; -export { LogoCarouselBasic } from "./5thSection/sectionpage"; diff --git a/public/landingPage/logos/aim.png b/public/landingPage/logos/aim.png deleted file mode 100644 index 52c666d28..000000000 Binary files a/public/landingPage/logos/aim.png and /dev/null differ diff --git a/public/landingPage/logos/alaska.png b/public/landingPage/logos/alaska.png deleted file mode 100644 index b9bdf8702..000000000 Binary files a/public/landingPage/logos/alaska.png and /dev/null differ diff --git a/public/landingPage/logos/apc.jpeg b/public/landingPage/logos/apc.jpeg deleted file mode 100644 index 63adc51a6..000000000 Binary files a/public/landingPage/logos/apc.jpeg and /dev/null differ diff --git a/public/landingPage/logos/jollibee.png b/public/landingPage/logos/jollibee.png deleted file mode 100644 index 29d0b044b..000000000 Binary files a/public/landingPage/logos/jollibee.png and /dev/null differ diff --git a/public/landingPage/logos/manulife.png b/public/landingPage/logos/manulife.png deleted file mode 100644 index fcc2b933f..000000000 Binary files a/public/landingPage/logos/manulife.png and /dev/null differ diff --git a/public/landingPage/logos/megaworld.png b/public/landingPage/logos/megaworld.png deleted file mode 100644 index 07f80a1a5..000000000 Binary files a/public/landingPage/logos/megaworld.png and /dev/null differ diff --git a/public/landingPage/logos/oracle.png b/public/landingPage/logos/oracle.png deleted file mode 100644 index bd331b96f..000000000 Binary files a/public/landingPage/logos/oracle.png and /dev/null differ diff --git a/public/landingPage/logos/srsmd.jpeg b/public/landingPage/logos/srsmd.jpeg deleted file mode 100644 index 64a8abb7b..000000000 Binary files a/public/landingPage/logos/srsmd.jpeg and /dev/null differ diff --git a/public/landingPage/logos/sunlife.png b/public/landingPage/logos/sunlife.png deleted file mode 100644 index 7a50b9105..000000000 Binary files a/public/landingPage/logos/sunlife.png and /dev/null differ diff --git a/public/landingPage/logos/wwf.jpeg b/public/landingPage/logos/wwf.jpeg deleted file mode 100644 index 0d5db713d..000000000 Binary files a/public/landingPage/logos/wwf.jpeg and /dev/null differ