feat: ajout sitemap, api et components

This commit is contained in:
2025-11-25 05:43:26 +01:00
parent da613c822a
commit 5a7cf45d98
29 changed files with 3339 additions and 34 deletions
+167
View File
@@ -0,0 +1,167 @@
"use client";
import { motion, useInView } from "framer-motion";
import { Code2, Rocket, Sparkles, Zap } from "lucide-react";
import { useRef } from "react";
const technologies = [
"React",
"Next.js",
"TypeScript",
"Node.js",
"Tailwind CSS",
"Git",
];
export default function About() {
const ref = useRef(null);
const isInView = useInView(ref, { once: false, amount: 0.2 });
return (
<section
id="about"
className="py-20 bg-slate-50 relative overflow-hidden"
>
{/* Grid Background subtil */}
<div className="absolute inset-0 bg-grid-slate-200/50 mask-[linear-gradient(to_bottom,white,transparent)]"></div>
<div
ref={ref}
className="container mx-auto px-4 max-w-7xl relative z-10"
>
{/* Header */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }
}
transition={{ duration: 0.6 }}
className="text-center mb-16"
>
<h2 className="text-4xl md:text-5xl font-bold text-slate-900 mb-4">
À propos de moi
</h2>
<p className="text-xl text-slate-600 max-w-2xl mx-auto">
Développeur web créatif, combinant frontend et backend
pour des solutions digitales impactantes
</p>
</motion.div>
{/* Bento Grid */}
<div className="grid md:grid-cols-12 gap-4">
{/* Large card - Présentation */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{ duration: 0.5, delay: 0.1 }}
className="md:col-span-8 bg-linear-to-r from-blue-500 to-purple-600 rounded-3xl p-8 text-white shadow-2xl"
>
<Sparkles className="w-12 h-12 mb-4 opacity-80" />
<h3 className="text-3xl font-bold mb-4">
Créateur d&apos;expériences digitales
</h3>
<p className="text-lg text-blue-50 leading-relaxed mb-4">
Passionné par le développement web, je crée des
applications modernes, performantes et élégantes.
Mon objectif est de transformer des idées en
solutions digitales innovantes.
</p>
<p className="text-lg text-blue-50 leading-relaxed">
Avec une expertise en développement full-stack, je
maîtrise aussi bien le front-end que le back-end, me
permettant de concevoir des projets de A à Z.
</p>
</motion.div>
{/* Small cards - Stats/Features */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{ duration: 0.5, delay: 0.2 }}
className="md:col-span-4 bg-white rounded-3xl p-6 shadow-lg border border-slate-200"
>
<Code2 className="w-10 h-10 mb-3 text-blue-600" />
<h4 className="text-xl font-bold text-slate-900 mb-2">
Code Propre
</h4>
<p className="text-slate-600">
Architecture scalable et maintenable
</p>
</motion.div>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{ duration: 0.5, delay: 0.3 }}
className="md:col-span-4 bg-white rounded-3xl p-6 shadow-lg border border-slate-200"
>
<Rocket className="w-10 h-10 mb-3 text-purple-600" />
<h4 className="text-xl font-bold text-slate-900 mb-2">
Performance
</h4>
<p className="text-slate-600">
Applications ultra-rapides et optimisées
</p>
</motion.div>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{ duration: 0.5, delay: 0.4 }}
className="md:col-span-4 bg-white rounded-3xl p-6 shadow-lg border border-slate-200"
>
<Zap className="w-10 h-10 mb-3 text-yellow-500" />
<h4 className="text-xl font-bold text-slate-900 mb-2">
Innovation
</h4>
<p className="text-slate-600">
Technologies modernes et best practices
</p>
</motion.div>
{/* Technologies grid */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{ duration: 0.5, delay: 0.5 }}
className="md:col-span-4 bg-slate-900 rounded-3xl p-8 shadow-2xl"
>
<h4 className="text-xl font-bold text-white mb-6">
Stack Technique
</h4>
<div className="grid grid-cols-2 gap-3">
{technologies.map((tech) => (
<div
key={tech}
className="bg-slate-800 rounded-lg p-3 text-center text-sm font-semibold text-slate-200 hover:bg-slate-700 transition-colors"
>
{tech}
</div>
))}
</div>
</motion.div>
</div>
</div>
</section>
);
}
+382
View File
@@ -0,0 +1,382 @@
"use client";
import { Turnstile } from "@marsidev/react-turnstile";
import { motion, useInView } from "framer-motion";
import {
AlertCircle,
CheckCircle2,
Github,
Linkedin,
Mail,
MapPin,
Send,
Sparkles,
} from "lucide-react";
import { useRef, useState } from "react";
const contactMethods = [
{
icon: Mail,
label: "Email",
value: "contact@jessy-david.dev",
href: "mailto:contact@jessy-david.dev",
color: "from-blue-500 to-cyan-500",
},
{
icon: Github,
label: "GitHub",
value: "@jessydavid",
href: "https://github.com/jessydavid-dev",
color: "from-slate-700 to-slate-900",
},
{
icon: Linkedin,
label: "LinkedIn",
value: "Jessy David",
href: "https://linkedin.com/in/jessy-david",
color: "from-blue-600 to-blue-800",
},
];
export default function Contact() {
const ref = useRef(null);
const isInView = useInView(ref, { once: false, amount: 0.2 });
const [isSubmitted, setIsSubmitted] = useState(false);
const [isSubmitting, setIsSubmitting] = useState(false);
const [error, setError] = useState("");
const [captchaToken, setCaptchaToken] = useState<string>("");
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
setIsSubmitting(true);
setError("");
setIsSubmitted(false);
// Vérifier que le captcha est validé
if (!captchaToken) {
setError("Veuillez valider le captcha");
setIsSubmitting(false);
return;
}
const formData = new FormData(e.currentTarget);
const data = {
name: formData.get("name") as string,
email: formData.get("email") as string,
message: formData.get("message") as string,
captchaToken,
};
try {
const response = await fetch("/api/contact", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
});
if (!response.ok) {
const result = await response.json();
throw new Error(result.error || "Erreur lors de l'envoi");
}
const result = await response.json();
console.log("Succès:", result);
setIsSubmitted(true);
e.currentTarget.reset();
setCaptchaToken("");
setTimeout(() => setIsSubmitted(false), 5000);
} catch (err) {
console.error("Erreur:", err);
setError(
err instanceof Error
? err.message
: "Impossible d'envoyer le message."
);
setCaptchaToken("");
} finally {
setIsSubmitting(false);
}
};
return (
<section
id="contact"
className="py-20 bg-slate-900 relative overflow-hidden"
>
{/* Grid Background */}
<div
className="absolute inset-0 opacity-20"
style={{
backgroundImage:
"linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px)",
backgroundSize: "60px 60px",
}}
></div>
{/* Decorative blobs */}
<div className="absolute top-20 left-10 w-96 h-96 bg-blue-500/10 rounded-full blur-3xl"></div>
<div className="absolute bottom-20 right-10 w-96 h-96 bg-purple-500/10 rounded-full blur-3xl"></div>
<div
ref={ref}
className="container mx-auto px-4 max-w-7xl relative z-10"
>
{/* Header */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }
}
transition={{ duration: 0.6 }}
className="text-center mb-16"
>
<div className="inline-flex items-center gap-2 bg-linear-to-r from-blue-500/10 to-purple-500/10 rounded-full px-4 py-2 mb-4">
<Sparkles className="w-4 h-4 text-blue-400" />
<span className="text-sm font-semibold text-slate-300">
Restons en contact
</span>
</div>
<h2 className="text-4xl md:text-5xl font-bold text-white mb-4">
Contactez-moi
</h2>
<p className="text-xl text-slate-400 max-w-2xl mx-auto">
Un projet en tête ? Une question ? N&apos;hésitez pas à
me contacter
</p>
</motion.div>
<div className="grid lg:grid-cols-2 gap-8">
{/* Colonne de gauche - Méthodes de contact */}
<motion.div
initial={{ opacity: 0, x: -50 }}
animate={
isInView
? { opacity: 1, x: 0 }
: { opacity: 0, x: -50 }
}
transition={{ duration: 0.6, delay: 0.2 }}
className="space-y-6"
>
{/* Cartes de contact */}
<div className="space-y-4">
{contactMethods.map((method, index) => (
<motion.a
key={method.label}
href={method.href}
target="_blank"
rel="noopener noreferrer"
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{
duration: 0.5,
delay: 0.3 + index * 0.1,
}}
className="block group"
>
<div className="relative bg-slate-800/50 backdrop-blur-sm border border-slate-700 rounded-2xl p-6 hover:border-blue-500/50 transition-all duration-300 hover:-translate-y-1 hover:shadow-xl hover:shadow-blue-500/10">
<div className="flex items-center gap-4">
<div
className={`p-3 bg-linear-to-br ${method.color} rounded-xl group-hover:scale-110 transition-transform duration-300`}
>
<method.icon className="w-6 h-6 text-white" />
</div>
<div className="flex-1">
<h3 className="text-sm font-semibold text-slate-400 mb-1">
{method.label}
</h3>
<p className="text-white font-semibold">
{method.value}
</p>
</div>
<Send className="w-5 h-5 text-slate-600 group-hover:text-blue-400 group-hover:translate-x-1 transition-all duration-300" />
</div>
</div>
</motion.a>
))}
</div>
{/* Informations complémentaires */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView
? { opacity: 1, y: 0 }
: { opacity: 0, y: 20 }
}
transition={{ duration: 0.5, delay: 0.6 }}
className="bg-linear-to-br from-blue-500/10 to-purple-500/10 backdrop-blur-sm border border-blue-500/20 rounded-2xl p-6"
>
<div className="flex items-start gap-3">
<MapPin className="w-5 h-5 text-blue-400 mt-1" />
<div>
<h3 className="text-white font-semibold mb-2">
Disponibilité
</h3>
<p className="text-slate-400">
Actuellement disponible pour vos
projets.
</p>
</div>
</div>
</motion.div>
</motion.div>
{/* Colonne de droite - Formulaire de contact */}
<motion.div
initial={{ opacity: 0, x: 50 }}
animate={
isInView
? { opacity: 1, x: 0 }
: { opacity: 0, x: 50 }
}
transition={{ duration: 0.6, delay: 0.2 }}
>
<div className="bg-slate-800/50 backdrop-blur-sm border border-slate-700 rounded-2xl p-8">
<form onSubmit={handleSubmit} className="space-y-6">
<div>
<label
htmlFor="name"
className="block text-sm font-semibold text-slate-300 mb-2"
>
Nom
</label>
<input
type="text"
id="name"
name="name"
required
disabled={isSubmitting}
className="w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed"
placeholder="Votre Nom et Prénom"
/>
</div>
<div>
<label
htmlFor="email"
className="block text-sm font-semibold text-slate-300 mb-2"
>
Email
</label>
<input
type="email"
id="email"
name="email"
required
disabled={isSubmitting}
className="w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed"
placeholder="votre@email.com"
/>
</div>
<div>
<label
htmlFor="message"
className="block text-sm font-semibold text-slate-300 mb-2"
>
Message
</label>
<textarea
id="message"
name="message"
rows={5}
required
disabled={isSubmitting}
className="w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-300 resize-none disabled:opacity-50 disabled:cursor-not-allowed"
placeholder="Parlez-moi de votre projet..."
></textarea>
</div>
{/* Cloudflare Turnstile */}
<div className="flex justify-center">
<Turnstile
siteKey={
process.env
.NEXT_PUBLIC_TURNSTILE_SITE_KEY ||
""
}
onSuccess={(token) =>
setCaptchaToken(token)
}
onError={() => setCaptchaToken("")}
onExpire={() => setCaptchaToken("")}
options={{
theme: "dark",
size: "normal",
}}
/>
</div>
{/* Message d'erreur */}
{error && (
<motion.div
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
className="flex items-center gap-2 p-4 bg-red-500/10 border border-red-500/50 rounded-lg text-red-400 text-sm"
>
<AlertCircle className="w-5 h-5 shrink-0" />
<span>{error}</span>
</motion.div>
)}
{/* Message de succès */}
{isSubmitted && (
<motion.div
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
className="flex items-center gap-2 p-4 bg-green-500/10 border border-green-500/50 rounded-lg text-green-400 text-sm"
>
<CheckCircle2 className="w-5 h-5 shrink-0" />
<span>
Message envoyé avec succès ! Je vous
répondrai bientôt.
</span>
</motion.div>
)}
<button
type="submit"
disabled={
isSubmitting ||
isSubmitted ||
!captchaToken
}
className="w-full relative group disabled:opacity-50 disabled:cursor-not-allowed"
>
<div className="absolute inset-0 bg-linear-to-r from-blue-600 to-purple-600 rounded-lg opacity-100 group-hover:opacity-0 transition-opacity duration-300"></div>
<div className="absolute inset-0 bg-linear-to-r from-purple-600 to-blue-600 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
<div className="relative px-8 py-3 text-white font-semibold flex items-center justify-center gap-2">
{isSubmitting ? (
<>
<div className="w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"></div>
Envoi en cours...
</>
) : isSubmitted ? (
<>
<CheckCircle2 className="w-5 h-5" />
Message envoyé !
</>
) : (
<>
<Send className="w-5 h-5 group-hover:translate-x-1 transition-transform duration-300" />
Envoyer le message
</>
)}
</div>
</button>
</form>
</div>
</motion.div>
</div>
</div>
</section>
);
}
+87
View File
@@ -0,0 +1,87 @@
"use client";
import GlowButton from "@/component/ui/GlowButton";
import { motion, useInView } from "framer-motion";
import { useRef } from "react";
export default function Hero() {
const ref = useRef<HTMLElement>(null);
const isInView = useInView(ref, { amount: 0.3 });
return (
<section
id="home"
ref={ref}
className="min-h-screen flex items-center justify-center relative bg-slate-900"
>
{/* Grid Background animée */}
<motion.div
className="absolute inset-0"
initial={{ opacity: 0 }}
animate={{ opacity: isInView ? 1 : 0 }}
transition={{ duration: 1 }}
style={{
backgroundImage:
"linear-gradient(to right, #1e293b 1px, transparent 1px), linear-gradient(to bottom, #1e293b 1px, transparent 1px)",
backgroundSize: "100px 100px",
}}
></motion.div>
{/* Content */}
<motion.div
className="container mx-auto px-4 text-center relative z-10"
initial={{ opacity: 0, y: 30 }}
animate={{
opacity: isInView ? 1 : 0,
y: isInView ? 0 : 30,
}}
transition={{ duration: 0.8, delay: 0.2 }}
>
<motion.h1
className="text-5xl md:text-7xl font-bold text-white mb-6"
initial={{ opacity: 0, y: 20 }}
animate={{
opacity: isInView ? 1 : 0,
y: isInView ? 0 : 20,
}}
transition={{ duration: 0.8, delay: 0.4 }}
>
Bonjour👋, je suis{" "}
<span className="text-transparent bg-clip-text bg-linear-to-r from-blue-400 to-purple-600">
Jessy
</span>
</motion.h1>
<motion.p
className="text-xl md:text-2xl text-slate-300 mb-8"
initial={{ opacity: 0, y: 20 }}
animate={{
opacity: isInView ? 1 : 0,
y: isInView ? 0 : 20,
}}
transition={{ duration: 0.8, delay: 0.6 }}
>
Développeur Full Stack | Créateur d&apos;expériences web
</motion.p>
<motion.div
className="flex gap-4 justify-center flex-wrap"
initial={{ opacity: 0, y: 20 }}
animate={{
opacity: isInView ? 1 : 0,
y: isInView ? 0 : 20,
}}
transition={{ duration: 0.8, delay: 0.8 }}
>
<GlowButton href="#projects" variant="secondary">
Voir mes projets
</GlowButton>
<GlowButton href="#contact" variant="primary">
Me contacter
</GlowButton>
</motion.div>
</motion.div>
</section>
);
}
+226
View File
@@ -0,0 +1,226 @@
"use client";
import { motion, useInView } from "framer-motion";
import { ExternalLink, Github } from "lucide-react";
import Image from "next/image";
import { useRef } from "react";
const projects = [
{
title: "Portfolio",
description:
"Portfolio moderne et interactif avec animations fluides et design épuré.",
tags: ["Next.js", "TypeScript", "TailwindCSS"],
link: "/",
github: "https://github.com/jessydavid-dev/jessy-david.dev",
},
{
title: "ultralion.xyz",
description:
"Portfolio professionnel et moderne pour UltraLion avec design épuré et optimisé.",
tags: ["Next.js", "TypeScript", "TailwindCSS"],
link: "https://ultralion.xyz",
},
{
title: "Radio Box",
description:
"Bot Discord permettant d'écouter des web radios dans un salon vocal avec interface intuitive.",
tags: ["Discord.js", "JavaScript", "Prisma"],
link: "https://radio-box.app",
},
{
title: "QuantumCraft Studios",
description:
"Plateforme d'hébergement de serveurs de jeux avec panel d'administration complet.",
tags: ["Next.js", "TypeScript", "TailwindCSS"],
link: "https://quantumcraft-studios.com",
},
{
title: "bôba là",
description:
"Application web de fidélité client avec système de points.",
tags: ["Next.js", "TypeScript", "TailwindCSS"],
link: "https://fidelite.boba-la.fr",
collaborators: [
{
name: "Philippe",
github: "https://github.com/PHlLlPPE",
avatar: "https://github.com/PHlLlPPE.png",
},
],
},
];
export default function Projects() {
const ref = useRef(null);
const isInView = useInView(ref, { once: false, amount: 0.2 });
const containerVariants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.1,
},
},
};
const itemVariants = {
hidden: { opacity: 0, y: 20 },
visible: {
opacity: 1,
y: 0,
transition: { duration: 0.5 },
},
};
return (
<section
id="projects"
className="py-20 bg-slate-50 relative overflow-hidden"
>
<div
ref={ref}
className="container mx-auto px-4 max-w-6xl relative z-10"
>
{/* Header */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }
}
transition={{ duration: 0.6 }}
className="text-center mb-16"
>
<h2 className="text-4xl md:text-5xl font-bold text-slate-900 mb-4">
Mes Projets
</h2>
<p className="text-lg text-slate-600 max-w-2xl mx-auto">
Une sélection de mes réalisations récentes
</p>
</motion.div>
{/* Projects Grid - 2 colonnes */}
<motion.div
variants={containerVariants}
initial="hidden"
animate={isInView ? "visible" : "hidden"}
className="grid md:grid-cols-2 gap-6"
>
{projects.map((project, index) => (
<motion.div
key={index}
variants={itemVariants}
className="group"
>
<div className="h-full bg-white rounded-xl border border-slate-200 hover:border-slate-900 transition-all duration-300 hover:shadow-lg overflow-hidden">
{/* Card content */}
<div className="p-6">
{/* Title */}
<h3 className="text-xl font-bold text-slate-900 mb-3">
{project.title}
</h3>
{/* Description */}
<p className="text-slate-600 mb-4 text-sm leading-relaxed">
{project.description}
</p>
{/* Tags */}
<div className="flex flex-wrap gap-2 mb-6">
{project.tags.map((tag) => (
<span
key={tag}
className="px-2 py-1 bg-slate-100 text-slate-600 rounded text-xs font-medium"
>
{tag}
</span>
))}
</div>
{/* Collaborators */}
{project.collaborators &&
project.collaborators.length > 0 && (
<div className="mb-6 pb-6 border-b border-slate-100">
<div className="flex items-center gap-3">
{project.collaborators.map(
(collab, idx) => (
<a
key={idx}
href={
collab.github
}
target="_blank"
rel="noopener noreferrer"
className="group/collab flex items-center gap-2 text-sm text-slate-600 hover:text-slate-900 transition-colors"
>
<div className="w-6 h-6 rounded-full overflow-hidden border border-slate-200 group-hover/collab:border-slate-900 transition-colors">
<Image
src={
collab.avatar
}
alt={
collab.name
}
width={
24
}
height={
24
}
className="w-full h-full object-cover"
/>
</div>
<span className="text-xs font-medium">
{
collab.name
}
</span>
</a>
)
)}
</div>
</div>
)}
{/* Links */}
<div className="flex gap-3">
<a
href={project.link}
target={
project.link.startsWith("/")
? "_self"
: "_blank"
}
rel={
project.link.startsWith("/")
? ""
: "noopener noreferrer"
}
className="flex-1 flex items-center justify-center gap-2 px-4 py-2 bg-slate-900 text-white rounded-lg text-sm font-medium hover:bg-slate-800 transition-colors group/btn"
>
<span>Voir</span>
<ExternalLink className="w-4 h-4 group-hover/btn:translate-x-0.5 transition-transform" />
</a>
{project.github && (
<a
href={project.github}
target="_blank"
rel="noopener noreferrer"
className="flex items-center justify-center p-2 border border-slate-200 hover:border-slate-900 rounded-lg transition-colors group/github"
title="GitHub"
>
<Github className="w-4 h-4 text-slate-600 group-hover/github:text-slate-900" />
</a>
)}
</div>
</div>
</div>
</motion.div>
))}
</motion.div>
</div>
</section>
);
}
+261
View File
@@ -0,0 +1,261 @@
"use client";
import { motion, useInView } from "framer-motion";
import {
Code2,
Layers,
Server,
Sparkles,
TrendingUp,
Wrench,
} from "lucide-react";
import { useRef } from "react";
const skills = {
frontend: {
category: "Frontend",
icon: Code2,
color: "from-blue-500 to-cyan-500",
items: [
"React",
"Next.js",
"TypeScript",
"Tailwind CSS",
"Bootstrap",
"HTML/CSS",
],
},
backend: {
category: "Backend",
icon: Server,
color: "from-purple-500 to-pink-500",
items: ["Node.js", "Express", "PostgreSQL", "MongoDB", "REST API"],
},
tools: {
category: "Outils",
icon: Wrench,
color: "from-orange-500 to-red-500",
items: [
"Github",
"Docker",
"VS Code",
"Linux",
"Cloudflare",
"Proxmox",
],
},
};
export default function Skills() {
const ref = useRef(null);
const isInView = useInView(ref, { once: false, amount: 0.2 });
const containerVariants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.1,
},
},
};
const itemVariants = {
hidden: { opacity: 0, y: 20 },
visible: {
opacity: 1,
y: 0,
transition: { duration: 0.5 },
},
};
return (
<section
id="skills"
className="py-20 bg-white relative overflow-hidden"
>
{/* Decorative blobs */}
<div className="absolute top-0 left-0 w-96 h-96 bg-blue-500/5 rounded-full blur-3xl"></div>
<div className="absolute bottom-0 right-0 w-96 h-96 bg-purple-500/5 rounded-full blur-3xl"></div>
<div
ref={ref}
className="container mx-auto px-4 max-w-7xl relative z-10"
>
{/* Header */}
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={
isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 20 }
}
transition={{ duration: 0.6 }}
className="text-center mb-16"
>
<div className="inline-flex items-center gap-2 bg-linear-to-r from-blue-500/10 to-purple-500/10 rounded-full px-4 py-2 mb-4">
<Sparkles className="w-4 h-4 text-blue-600" />
<span className="text-sm font-semibold text-slate-700">
Expertise
</span>
</div>
<h2 className="text-4xl md:text-5xl font-bold text-slate-900 mb-4">
Compétences & Technologies
</h2>
<p className="text-xl text-slate-600 max-w-2xl mx-auto">
Un ensemble de technologies modernes maîtrisées pour
créer des applications web performantes et innovantes
</p>
</motion.div>
{/* Bento Grid */}
<motion.div
variants={containerVariants}
initial="hidden"
animate={isInView ? "visible" : "hidden"}
className="grid grid-cols-1 md:grid-cols-12 gap-4 md:gap-6"
>
{/* Frontend - Large card */}
<motion.div
variants={itemVariants}
className="md:col-span-7 group"
>
<div className="relative h-full bg-linear-to-br from-blue-500 to-cyan-500 rounded-3xl p-8 overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-1">
{/* Decorative circles */}
<div className="absolute -top-10 -right-10 w-40 h-40 bg-white/10 rounded-full blur-2xl"></div>
<div className="absolute -bottom-10 -left-10 w-40 h-40 bg-white/10 rounded-full blur-2xl"></div>
<div className="relative z-10">
<div className="flex items-center gap-3 mb-6">
<div className="p-3 bg-white/20 backdrop-blur-sm rounded-xl group-hover:scale-110 transition-transform duration-300">
<skills.frontend.icon className="w-8 h-8 text-white" />
</div>
<h3 className="text-3xl font-bold text-white">
{skills.frontend.category}
</h3>
</div>
<div className="grid grid-cols-2 gap-3">
{skills.frontend.items.map((item) => (
<div
key={item}
className="bg-white/20 backdrop-blur-sm rounded-xl px-4 py-3 text-white font-semibold hover:bg-white/30 transition-colors cursor-default"
>
{item}
</div>
))}
</div>
</div>
</div>
</motion.div>
{/* Backend - Medium card */}
<motion.div
variants={itemVariants}
className="md:col-span-5 group"
>
<div className="relative h-full bg-linear-to-br from-purple-500 to-pink-500 rounded-3xl p-8 overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-1">
<div className="absolute -top-10 -right-10 w-40 h-40 bg-white/10 rounded-full blur-2xl"></div>
<div className="relative z-10">
<div className="flex items-center gap-3 mb-6">
<div className="p-3 bg-white/20 backdrop-blur-sm rounded-xl group-hover:scale-110 transition-transform duration-300">
<skills.backend.icon className="w-8 h-8 text-white" />
</div>
<h3 className="text-3xl font-bold text-white">
{skills.backend.category}
</h3>
</div>
<div className="grid grid-cols-2 gap-3">
{skills.backend.items.map((item) => (
<div
key={item}
className="bg-white/20 backdrop-blur-sm rounded-xl px-4 py-3 text-center text-white font-semibold hover:bg-white/30 transition-colors cursor-default"
>
{item}
</div>
))}
</div>
</div>
</div>
</motion.div>
{/* Tools - Medium card */}
<motion.div
variants={itemVariants}
className="md:col-span-5 group"
>
<div className="relative h-full bg-linear-to-br from-orange-500 to-red-500 rounded-3xl p-8 overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-1">
<div className="absolute -top-10 -left-10 w-40 h-40 bg-white/10 rounded-full blur-2xl"></div>
<div className="relative z-10">
<div className="flex items-center gap-3 mb-6">
<div className="p-3 bg-white/20 backdrop-blur-sm rounded-xl group-hover:scale-110 transition-transform duration-300">
<skills.tools.icon className="w-8 h-8 text-white" />
</div>
<h3 className="text-3xl font-bold text-white">
{skills.tools.category}
</h3>
</div>
<div className="grid grid-cols-2 gap-3">
{skills.tools.items.map((item) => (
<div
key={item}
className="bg-white/20 backdrop-blur-sm rounded-xl px-4 py-3 text-center text-white font-semibold hover:bg-white/30 transition-colors cursor-default"
>
{item}
</div>
))}
</div>
</div>
</div>
</motion.div>
{/* Additional info card */}
<motion.div
variants={itemVariants}
className="md:col-span-7 group"
>
<div className="relative h-full bg-slate-900 rounded-3xl p-8 overflow-hidden shadow-xl hover:shadow-2xl transition-all duration-300 hover:-translate-y-1">
<div className="absolute top-0 right-0 w-64 h-64 bg-blue-500/10 rounded-full blur-3xl"></div>
<div className="absolute bottom-0 left-0 w-64 h-64 bg-purple-500/10 rounded-full blur-3xl"></div>
<div className="relative z-10">
<div className="flex items-start justify-between mb-4">
<div className="flex items-center gap-3">
<Layers className="w-8 h-8 text-blue-400" />
<h3 className="text-2xl font-bold text-white">
Stack Full-Stack
</h3>
</div>
<TrendingUp className="w-6 h-6 text-green-400" />
</div>
<p className="text-slate-300 text-lg leading-relaxed mb-6">
Une expertise complète du développement web
moderne, du design à la mise en production.
</p>
<div className="grid grid-cols-2 gap-3 mb-6">
<div className="bg-slate-800/50 backdrop-blur-sm rounded-xl p-4 border border-slate-700">
<div className="text-3xl font-bold text-blue-400 mb-1">
3+
</div>
<div className="text-sm text-slate-400">
Années d&apos;expérience
</div>
</div>
<div className="bg-slate-800/50 backdrop-blur-sm rounded-xl p-4 border border-slate-700">
<div className="text-3xl font-bold text-purple-400 mb-1">
15+
</div>
<div className="text-sm text-slate-400">
Projets réalisés
</div>
</div>
</div>
</div>
</div>
</motion.div>
</motion.div>
</div>
</section>
);
}