feat(dimentorin): slicing landing - resources page

This commit is contained in:
euxzy
2025-07-27 20:21:41 +07:00
parent 924354366c
commit d9c5ff0b18
11 changed files with 364 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@@ -3,7 +3,7 @@ import { motion } from 'framer-motion'
export function HeroSection() {
return (
<section className="relative w-full py-20 md:py-28 lg:py-32">
<section className="relative w-full z-0 py-20 md:py-28 lg:py-32">
{/* Background gradients and shapes */}
<div className="absolute inset-0 -z-10 overflow-x-clip hidden md:block">
<motion.div
@@ -0,0 +1,141 @@
import { MailOutlined } from "@ant-design/icons";
import { Icon } from "@iconify/react";
import { Button } from "@imphnen-frontend-service/ui/atoms";
import { cn } from "@imphnen-frontend-service/utils";
import { FC, useRef } from "react";
import { motion, useInView, Variants } from "framer-motion";
export const Collaborate: FC = () => {
const ref = useRef(null)
const isInView = useInView(ref, { once: true, amount: 0.2 })
const containerVariants: Variants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.1,
delayChildren: 0.2,
},
},
}
const childVariants: Variants = {
hidden: { opacity: 0, scale: 0 },
visible: {
opacity: 1,
scale: 1,
transition: {
duration: 0.4,
ease: [0.25, 0.46, 0.45, 0.94],
},
},
}
return (
<section ref={ref} className="w-full p-8 md:py-14 md:px-[60px] lg:pt-0 lg:pb-16 lg:px-20">
<div className="max-w-7xl py-6 mx-auto md:flex md:gap-[60px] md:items-center xl:py-14">
<div className="relative mb-8 flex items-center justify-center h-[124px] md:mb-0 md:h-[180px] md:w-[202px] xl:h-[380px] xl:w-[428px]">
<motion.div
className="relative"
variants={containerVariants}
animate={isInView ? "visible" : "hidden"}
>
<motion.div
className="size-[104px] bg-primary-200 rounded-full flex justify-between items-center md:size-[148px] xl:size-[304px]"
initial={{ scale: 0 }}
whileInView={{ scale: 1 }}
transition={{ duration: 0.5 }}
viewport={{ once: true }}
>
<div
className="size-[88px] rounded-full bg-gradient-to-bl from-primary-500 to-primary-300 mx-auto md:size-[132px] xl:size-[276px]"
/>
</motion.div>
<motion.div
className="absolute bg-white shadow rounded-md -top-3 -right-2 p-1 rotate-6 xl:p-2.5 xl:rounded-lg"
variants={childVariants}
>
<Icon icon="bi:terminal" className="text-primary-500 size-4 md:size-[18px] xl:size-9" />
</motion.div>
<motion.div
className="absolute bg-white shadow rounded-md top-1/3 -left-6 p-1.5 -rotate-10 xl:p-2.5 xl:-left-12"
variants={childVariants}
>
<Icon icon="ion:git-branch-outline" className="text-primary-500 size-6 md:size-[30px] xl:size-14" />
</motion.div>
<motion.div
className="absolute bg-white shadow rounded-md top-3/5 -right-3 p-1 xl:p-2 xl:-right-6"
variants={childVariants}
>
<Icon icon="bi:github" className="size-[18px] md:size-[26px] xl:size-[52px]" />
</motion.div>
</motion.div>
<motion.div
className="h-full w-auto aspect-3/5 absolute inset-0 mx-auto bg-contain bg-no-repeat"
initial={{ opacity: 0 }}
whileInView={{ opacity: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.5 }}
>
<img
src="/image/anime-girl.webp"
alt="Anime Girl"
style={{
opacity: "1",
maskImage: "linear-gradient(to bottom, black 80%, transparent 100%)",
}}
/>
</motion.div>
</div>
<motion.div
className={cn(
"px-6 py-5 rounded-lg bg-white border-2 border-primary-200 text-center text-primary-500 shadow",
"md:flex-1 md:text-start xl:py-8 xl:px-12"
)}
initial={{ opacity: 0 }}
whileInView={{ opacity: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
<motion.h1
className="text-[15px] font-semibold mb-3 md:text-[23px] xl:text-[37px]"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
Let's Collaborate!
</motion.h1>
<motion.p
className="text-xs font-medium leading-tight mb-6 md:text-[15px] xl:text-[19px]"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.1 }}
>
Klik tombol di bawah ini untuk mendaftar sebagai partner resource dan bantu membangun dunia IT yang lebih seru!
</motion.p>
<motion.div
className="flex items-center mx-auto md:ms-0"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.2 }}
>
<Button type="button" size="sm" className="flex items-center gap-2">
<span>Collaboration Now</span>
<MailOutlined />
</Button>
</motion.div>
</motion.div>
</div>
</section>
)
}
@@ -0,0 +1,103 @@
import { FC, useRef } from "react";
import { motion, useInView, Variants } from "framer-motion";
export const Contribute: FC = () => {
const ref = useRef(null)
const inView = useInView(ref, { once: true, amount: 0.2 })
const containerVariants: Variants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.1,
delayChildren: 0.8,
},
},
}
const childVariants: Variants = {
hidden: { opacity: 0, y: 20 },
visible: {
opacity: 1,
y: 0,
transition: {
duration: 0.4,
ease: [0.25, 0.46, 0.45, 0.94],
},
},
}
return (
<section ref={ref} className="w-full p-8 md:py-14 md:px-[60px] lg:py-16 lg:px-20 xl:py-20">
<div className="relative max-w-7xl mx-auto xl:py-14">
<div className="md:max-w-[514px] mx-auto">
<motion.h1
className="font-semibold text-[19px] text-primary-500 mb-4 text-center leading-tight md:text-[37px] md:mb-6 xl:text-[46px] xl:font-bold"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
Want to contribute? <br /> help senpai build the IT ecosystem!
</motion.h1>
<motion.p
className="text-center text-xs text-neutral-500 md:text-[15px] md:font-medium md:w-[395px] md:mx-auto xl:text-[19px] xl:w-full"
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, delay: 0.1 }}
>
Punya platform, artikel, atau tool keren untuk membantu mentee belajar IT? Bergabunglah dengan kami dan jadilah bagian dari ekosistem pembelajaran yang lebih besar!
</motion.p>
</div>
<motion.div
className="hidden xl:block absolute inset-0 text-neutral-800"
variants={containerVariants}
initial="hidden"
animate={inView ? "visible" : "hidden"}
>
<motion.div
className="absolute top-0 left-0 text-[23px] font-semibold bg-white border rounded-md px-5 py-2 shadow-lg -rotate-6"
variants={childVariants}
>
Learning Platform
</motion.div>
<motion.div
className="absolute top-0 right-36 text-2xl font-semibold bg-white border rounded-md px-5 py-2 shadow-lg rotate-3"
variants={childVariants}
>
AI Tools
</motion.div>
<motion.div
className="absolute top-1/3 left-24 text-[23px] font-semibold bg-white border rounded-md px-5 py-2 shadow-lg"
variants={childVariants}
>
UI Assets
</motion.div>
<motion.div
className="absolute top-1/3 right-0 text-[27.38px] font-semibold bg-white border rounded-md px-6 py-2 shadow-lg -rotate-3"
variants={childVariants}
>
Refferences
</motion.div>
<motion.div
className="absolute top-2/3 left-4 text-[31.62px] font-semibold bg-white border rounded-md px-6 py-2.5 shadow-lg leading-tight rotate-1"
variants={childVariants}
>
Coding <br />Playground
</motion.div>
<motion.div
className="absolute top-[70%] right-16 text-2xl font-semibold bg-white border rounded-md px-5 py-2.5 shadow-lg leading-tight rotate-6"
variants={childVariants}
>
Challenge <br />Platform
</motion.div>
</motion.div>
</div>
</section>
)
}
@@ -0,0 +1,104 @@
import { FC, useRef } from "react";
import { motion, useInView, Variants } from "framer-motion";
export const WorkWithUs: FC = () => {
const ref = useRef(null)
const inView = useInView(ref, { once: true, amount: 0.2 })
const containerVariants: Variants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.1,
delayChildren: 0.8,
},
},
}
const childVariants: Variants = {
hidden: { opacity: 0, y: 20 },
visible: {
opacity: 1,
y: 0,
transition: {
duration: 0.4,
ease: [0.25, 0.46, 0.45, 0.94],
},
},
}
return (
<section ref={ref} className="w-full px-8 md:px-[60px] lg:py-16 lg:px-20">
<div className="max-w-7xl mx-auto">
<motion.h1
className="text-[19px] font-semibold text-primary-500 mb-5 text-center md:text-[23px] md:mb-7 xl:text-[37px] xl:mb-10"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
>
Why Work with Us
</motion.h1>
<motion.div
className="grid gap-4 md:grid-cols-3 md:gap-5 xl:grid-flow-col xl:grid-cols-2 xl:grid-rows-2 xl:gap-6"
variants={containerVariants}
initial="hidden"
animate={inView ? "visible" : "hidden"}
>
<motion.div
className="px-5 py-6 bg-white rounded-lg shadow md:px-0 md:py-8 xl:row-span-2 xl:px-6 xl:flex xl:flex-col xl:justify-end"
variants={childVariants}
>
<div className="h-[60px] w-full mb-6 xl:h-auto xl:w-full xl:mb-8">
<img src="/image/work-with-us/exposure.webp" alt="Exposure" className="h-full w-auto object-scale-down mx-auto" />
</div>
<div className="text-center md:px-6 xl:text-start xl:px-0">
<h1 className="text-primary-500 text-[15px] mb-2 font-semibold leading-tight md:text-[19px] md:px-4 xl:px-0">
Exposure Luas
</h1>
<p className="text-[10px] text-neutral-500 leading-tight md:text-[15px] md:px-1 xl:px-0">
Web kamu akan tampil di halaman resource kami!
</p>
</div>
</motion.div>
<motion.div
className="px-5 py-6 bg-white rounded-lg shadow md:px-0 md:py-8 xl:flex xl:items-center xl:px-6 xl:py-2 xl:gap-8"
variants={childVariants}
>
<div className="h-[60px] w-full mb-6 xl:w-auto xl:h-[124px] xl:mb-0">
<img src="/image/work-with-us/handshake.webp" alt="Handshake" className="h-full w-auto object-scale-down mx-auto" />
</div>
<div className="text-center md:px-6 xl:text-start">
<h1 className="text-primary-500 text-[15px] mb-2 font-semibold leading-tight md:text-[19px]">
Bantu Generasi Baru
</h1>
<p className="text-[10px] text-neutral-500 leading-tight md:text-[15px]">
Bagikan ilmu dan bantu lebih banyak orang berkembang!
</p>
</div>
</motion.div>
<motion.div
className="px-5 py-6 bg-white rounded-lg shadow md:px-0 xl:flex xl:items-center xl:px-6 xl:py-2 xl:gap-8"
variants={childVariants}
>
<div className="h-[60px] w-full mb-6 xl:w-auto xl:h-[124px] xl:mb-0">
<img src="/image/work-with-us/networking.webp" alt="Networking" className="h-full w-auto object-scale-down mx-auto" />
</div>
<div className="text-center md:px-6 xl:text-start">
<h1 className="text-primary-500 text-[15px] mb-2 font-semibold leading-tight md:text-[19px] md:px-4 xl:px-0">
Networking Komunitas
</h1>
<p className="text-[10px] text-neutral-500 leading-tight md:text-[15px] md:px-1 xl:px-0">
Bertemu dengan para developer, mentor, dan inovator lainnya!
</p>
</div>
</motion.div>
</motion.div>
</div>
</section>
)
}
@@ -0,0 +1,14 @@
import { ReactElement } from "react";
import { Contribute } from "./_components/contribute";
import { WorkWithUs } from "./_components/work-with-us";
import { Collaborate } from "./_components/collaborate";
export default function Components(): ReactElement {
return (
<main>
<Contribute />
<WorkWithUs />
<Collaborate />
</main>
)
}
+1
View File
@@ -76,6 +76,7 @@ const mappingRoutePermissions = [
const mappingPublicPrefixRoutes = [
'/mentoring',
'/resources',
]
//TODO : Fix this later