feat: setup, landing page
This commit is contained in:
43
.devcontainer/README.md
Normal file
43
.devcontainer/README.md
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# Dev Container Configuration
|
||||||
|
|
||||||
|
Ce dossier contient la configuration du Dev Container pour le projet Portfolio.
|
||||||
|
|
||||||
|
## 🚀 Fonctionnalités
|
||||||
|
|
||||||
|
- **Node.js 20** avec TypeScript pré-installé
|
||||||
|
- **Extensions VS Code** automatiquement installées :
|
||||||
|
- ESLint
|
||||||
|
- Prettier
|
||||||
|
- Tailwind CSS IntelliSense
|
||||||
|
- React snippets
|
||||||
|
- Path IntelliSense
|
||||||
|
- Auto Rename Tag
|
||||||
|
|
||||||
|
- **Configuration automatique** :
|
||||||
|
- Format à la sauvegarde avec Prettier
|
||||||
|
- Correction ESLint automatique
|
||||||
|
- Support TypeScript complet
|
||||||
|
- Support Tailwind CSS
|
||||||
|
|
||||||
|
- **Port forwarding** :
|
||||||
|
- Port 5173 (Vite dev server) automatiquement exposé
|
||||||
|
|
||||||
|
## 📋 Prérequis
|
||||||
|
|
||||||
|
- Docker installé et en cours d'exécution
|
||||||
|
- VS Code avec l'extension "Dev Containers" installée
|
||||||
|
|
||||||
|
## 🏃 Utilisation
|
||||||
|
|
||||||
|
1. Ouvrir le projet dans VS Code
|
||||||
|
2. Cliquer sur le popup "Reopen in Container" ou utiliser la commande :
|
||||||
|
- `Cmd+Shift+P` → "Dev Containers: Reopen in Container"
|
||||||
|
3. Attendre que le container se construise (première fois seulement)
|
||||||
|
4. Les dépendances npm seront installées automatiquement
|
||||||
|
5. Lancer le serveur de dev avec `npm run dev`
|
||||||
|
|
||||||
|
## 🔧 Personnalisation
|
||||||
|
|
||||||
|
Pour modifier la configuration :
|
||||||
|
- Éditer `.devcontainer/devcontainer.json`
|
||||||
|
- Reconstruire le container : `Cmd+Shift+P` → "Dev Containers: Rebuild Container"
|
||||||
57
.devcontainer/devcontainer.json
Normal file
57
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"name": "Portfolio Dev Container",
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
|
||||||
|
|
||||||
|
// Configure tool-specific properties
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
// Extensions to install in the container
|
||||||
|
"extensions": [
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"bradlc.vscode-tailwindcss",
|
||||||
|
"dsznajder.es7-react-js-snippets",
|
||||||
|
"christian-kohler.path-intellisense",
|
||||||
|
"formulahendry.auto-rename-tag",
|
||||||
|
"ms-vscode.vscode-typescript-next"
|
||||||
|
],
|
||||||
|
// Settings to apply in the container
|
||||||
|
"settings": {
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": "explicit"
|
||||||
|
},
|
||||||
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
|
"tailwindCSS.experimental.classRegex": [
|
||||||
|
["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Forward ports for Vite dev server
|
||||||
|
"forwardPorts": [5173],
|
||||||
|
"portsAttributes": {
|
||||||
|
"5173": {
|
||||||
|
"label": "Vite Dev Server",
|
||||||
|
"onAutoForward": "notify"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created
|
||||||
|
"postCreateCommand": "npm install",
|
||||||
|
|
||||||
|
// Use 'postStartCommand' to run commands each time the container starts
|
||||||
|
// "postStartCommand": "npm run dev",
|
||||||
|
|
||||||
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root
|
||||||
|
"remoteUser": "node",
|
||||||
|
|
||||||
|
// Features to add to the dev container
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {
|
||||||
|
"version": "latest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
970
package-lock.json
generated
970
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -10,8 +10,13 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"clsx": "^2.1.1",
|
||||||
|
"i18next": "^25.6.0",
|
||||||
|
"motion": "^12.23.24",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0",
|
||||||
|
"react-i18next": "^16.0.0",
|
||||||
|
"react-router": "^7.9.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.2.37",
|
"@types/react": "^18.2.37",
|
||||||
|
|||||||
42
src/App.css
42
src/App.css
@@ -1,42 +0,0 @@
|
|||||||
#root {
|
|
||||||
max-width: 1280px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
height: 6em;
|
|
||||||
padding: 1.5em;
|
|
||||||
will-change: filter;
|
|
||||||
transition: filter 300ms;
|
|
||||||
}
|
|
||||||
.logo:hover {
|
|
||||||
filter: drop-shadow(0 0 2em #646cffaa);
|
|
||||||
}
|
|
||||||
.logo.react:hover {
|
|
||||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes logo-spin {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
|
||||||
a:nth-of-type(2) .logo {
|
|
||||||
animation: logo-spin infinite 20s linear;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
padding: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.read-the-docs {
|
|
||||||
color: #888;
|
|
||||||
}
|
|
||||||
39
src/App.tsx
39
src/App.tsx
@@ -1,39 +0,0 @@
|
|||||||
import { useState, useEffect } from 'react'
|
|
||||||
import reactLogo from './assets/react.svg'
|
|
||||||
import viteLogo from '/vite.svg'
|
|
||||||
import './App.css'
|
|
||||||
|
|
||||||
function App() {
|
|
||||||
const [count, setCount] = useState(0)
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
console.log("fire")
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div>
|
|
||||||
<a href="https://vitejs.dev" target="_blank">
|
|
||||||
<img src={viteLogo} className="logo" alt="Vite logo" />
|
|
||||||
</a>
|
|
||||||
<a href="https://react.dev" target="_blank">
|
|
||||||
<img src={reactLogo} className="logo react" alt="React logo" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<h1>Vite + React</h1>
|
|
||||||
<div className="card">
|
|
||||||
<button onClick={() => setCount((count) => count + 1)}>
|
|
||||||
count is {count}
|
|
||||||
</button>
|
|
||||||
<p>
|
|
||||||
Edit <code>src/App.tsx</code> and save to test HMR
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<p className="read-the-docs">
|
|
||||||
Click on the Vite and React logos to learn more
|
|
||||||
</p>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App
|
|
||||||
30
src/components/About.tsx
Normal file
30
src/components/About.tsx
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
const About = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="about" className="py-20 px-8">
|
||||||
|
<div className="max-w-4xl mx-auto">
|
||||||
|
<h2 className="text-4xl font-bold mb-8 text-accent">{t('about.title')}</h2>
|
||||||
|
<div className="space-y-6 text-secondary/80">
|
||||||
|
<p className="text-lg leading-relaxed">
|
||||||
|
{t('about.description')}
|
||||||
|
</p>
|
||||||
|
<div className="grid md:grid-cols-2 gap-6 mt-8">
|
||||||
|
<div className="bg-secondary/5 p-6 rounded-lg border border-secondary/10">
|
||||||
|
<h3 className="text-xl font-semibold mb-3 text-accent">{t('about.experience_title')}</h3>
|
||||||
|
<p className="text-secondary/70">{t('about.experience_desc')}</p>
|
||||||
|
</div>
|
||||||
|
<div className="bg-secondary/5 p-6 rounded-lg border border-secondary/10">
|
||||||
|
<h3 className="text-xl font-semibold mb-3 text-accent">{t('about.passion_title')}</h3>
|
||||||
|
<p className="text-secondary/70">{t('about.passion_desc')}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default About;
|
||||||
110
src/components/App.tsx
Normal file
110
src/components/App.tsx
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
import { useState, useEffect } from 'react'
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import Hero from './Hero';
|
||||||
|
import About from './About';
|
||||||
|
import Experience from './Experience/Experience';
|
||||||
|
import Skills from './Skills';
|
||||||
|
import Education from './Education';
|
||||||
|
import Contact from './Contact';
|
||||||
|
import { ThemeMenu, ThemeType, ThemeSelected } from './ThemeMenu';
|
||||||
|
|
||||||
|
function App() {
|
||||||
|
const { t, i18n } = useTranslation();
|
||||||
|
const [theme, setTheme] = useState<ThemeType>('dark');
|
||||||
|
const [themeSelected, setThemeSelected] = useState<ThemeSelected>('system');
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (themeSelected === 'system') {
|
||||||
|
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
||||||
|
const handleChange = () => {
|
||||||
|
const systemTheme = mediaQuery.matches ? 'dark' : 'light';
|
||||||
|
setTheme(systemTheme);
|
||||||
|
document.documentElement.className = `theme-${systemTheme}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
handleChange();
|
||||||
|
mediaQuery.addEventListener('change', handleChange);
|
||||||
|
|
||||||
|
return () => mediaQuery.removeEventListener('change', handleChange);
|
||||||
|
} else {
|
||||||
|
setTheme(themeSelected);
|
||||||
|
document.documentElement.className = `theme-${themeSelected}`;
|
||||||
|
}
|
||||||
|
}, [themeSelected]);
|
||||||
|
|
||||||
|
const toggleLanguage = () => {
|
||||||
|
const newLang = i18n.language === 'fr' ? 'en' : 'fr';
|
||||||
|
i18n.changeLanguage(newLang);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleThemeChange = (newTheme: ThemeSelected) => {
|
||||||
|
setThemeSelected(newTheme);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="min-h-screen text-secondary bg-primary transition-colors duration-300">
|
||||||
|
{/* Header */}
|
||||||
|
<header className='fixed top-0 left-0 right-0 z-50 flex justify-between items-center gap-4 text-sm w-full px-8 py-6 bg-primary/80 backdrop-blur-md border-b border-secondary/10'>
|
||||||
|
<h1 className='text-2xl font-bold'>
|
||||||
|
<span className='text-accent'>L</span>ouis <span className='text-accent'>E</span>MARD
|
||||||
|
</h1>
|
||||||
|
<nav className='flex gap-6 h-full justify-center items-center'>
|
||||||
|
<a href='#about' className='hover:text-accent transition-colors'>{t('nav.about')}</a>
|
||||||
|
<a href='#experience' className='hover:text-accent transition-colors'>{t('nav.experience')}</a>
|
||||||
|
<a href='#skills' className='hover:text-accent transition-colors'>{t('nav.skills')}</a>
|
||||||
|
<a href='#education' className='hover:text-accent transition-colors'>{t('nav.education')}</a>
|
||||||
|
<a href='#contact' className='hover:text-accent transition-colors'>{t('nav.contact')}</a>
|
||||||
|
|
||||||
|
{/* Language Toggle */}
|
||||||
|
<button
|
||||||
|
onClick={toggleLanguage}
|
||||||
|
className='px-3 py-1 border border-secondary/20 rounded hover:border-accent hover:text-accent transition-all'
|
||||||
|
>
|
||||||
|
{i18n.language.toUpperCase()}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/* Theme Menu */}
|
||||||
|
<ThemeMenu
|
||||||
|
theme={theme}
|
||||||
|
themeSelected={themeSelected}
|
||||||
|
onThemeChange={handleThemeChange}
|
||||||
|
/>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{/* Main Content */}
|
||||||
|
<main>
|
||||||
|
<Hero />
|
||||||
|
<About />
|
||||||
|
<Experience />
|
||||||
|
<Skills />
|
||||||
|
<Education />
|
||||||
|
<Contact />
|
||||||
|
</main>
|
||||||
|
|
||||||
|
{/* Footer */}
|
||||||
|
<footer className='py-8 border-t border-secondary/10 bg-secondary/5'>
|
||||||
|
<div className='flex flex-col md:flex-row gap-6 justify-center items-center text-sm'>
|
||||||
|
<a href='https://git.louisemard.dev' target='_blank' rel='noopener noreferrer' className='hover:text-accent transition-colors'>
|
||||||
|
Gitea
|
||||||
|
</a>
|
||||||
|
<a href='https://github.com/LouisDrame' target='_blank' rel='noopener noreferrer' className='hover:text-accent transition-colors'>
|
||||||
|
GitHub
|
||||||
|
</a>
|
||||||
|
<a href='https://www.linkedin.com/in/louis-emard-9b6a931a2/' target='_blank' rel='noopener noreferrer' className='hover:text-accent transition-colors'>
|
||||||
|
LinkedIn
|
||||||
|
</a>
|
||||||
|
<a href='https://www.collective.work/profile/louis-emard' target='_blank' rel='noopener noreferrer' className='hover:text-accent transition-colors'>
|
||||||
|
Collective
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<p className='text-center mt-4 text-secondary/50 text-xs'>
|
||||||
|
© {new Date().getFullYear()} Louis EMARD. All rights reserved.
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App
|
||||||
42
src/components/Contact.tsx
Normal file
42
src/components/Contact.tsx
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
const Contact = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="contact" className="py-20 px-8">
|
||||||
|
<div className="max-w-4xl mx-auto text-center">
|
||||||
|
<h2 className="text-4xl font-bold mb-8 text-accent">{t('contact.title')}</h2>
|
||||||
|
<p className="text-lg text-secondary/70 mb-12">
|
||||||
|
{t('contact.description')}
|
||||||
|
</p>
|
||||||
|
<div className="flex flex-col md:flex-row gap-4 justify-center items-center">
|
||||||
|
<a
|
||||||
|
href="mailto:louis.emard@example.com"
|
||||||
|
className="px-8 py-3 bg-accent text-white rounded-lg hover:bg-accent/90 transition-all hover:shadow-lg w-full md:w-auto"
|
||||||
|
>
|
||||||
|
📧 {t('contact.email')}
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="https://www.linkedin.com/in/louis-emard-9b6a931a2/"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="px-8 py-3 border-2 border-accent text-accent rounded-lg hover:bg-accent hover:text-white transition-all w-full md:w-auto"
|
||||||
|
>
|
||||||
|
💼 LinkedIn
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="https://github.com/LouisDrame"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="px-8 py-3 border-2 border-accent text-accent rounded-lg hover:bg-accent hover:text-white transition-all w-full md:w-auto"
|
||||||
|
>
|
||||||
|
💻 GitHub
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Contact;
|
||||||
44
src/components/Education.tsx
Normal file
44
src/components/Education.tsx
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
const Education = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const educations = [
|
||||||
|
{
|
||||||
|
period: '2020 - 2023',
|
||||||
|
title: 'education.degree1.title',
|
||||||
|
school: 'education.degree1.school',
|
||||||
|
description: 'education.degree1.description'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
period: '2018 - 2020',
|
||||||
|
title: 'education.degree2.title',
|
||||||
|
school: 'education.degree2.school',
|
||||||
|
description: 'education.degree2.description'
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="education" className="py-20 px-8 bg-secondary/5">
|
||||||
|
<div className="max-w-4xl mx-auto">
|
||||||
|
<h2 className="text-4xl font-bold mb-12 text-accent">{t('education.title')}</h2>
|
||||||
|
<div className="space-y-6">
|
||||||
|
{educations.map((edu, index) => (
|
||||||
|
<div key={index} className="bg-primary p-6 rounded-lg border border-secondary/10 hover:border-accent/50 transition-all">
|
||||||
|
<div className="flex flex-col md:flex-row md:justify-between md:items-start mb-3">
|
||||||
|
<div>
|
||||||
|
<h3 className="text-xl font-semibold text-secondary mb-1">{t(edu.title)}</h3>
|
||||||
|
<p className="text-accent font-medium">{t(edu.school)}</p>
|
||||||
|
</div>
|
||||||
|
<span className="text-secondary/60 text-sm md:text-base mt-2 md:mt-0">{edu.period}</span>
|
||||||
|
</div>
|
||||||
|
<p className="text-secondary/70">{t(edu.description)}</p>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Education;
|
||||||
159
src/components/Experience/Experience.tsx
Normal file
159
src/components/Experience/Experience.tsx
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
import { useEffect } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { Routes, Route, useRoutes, Link, useParams, useNavigate } from 'react-router';
|
||||||
|
import { AnimatePresence, motion } from 'framer-motion';
|
||||||
|
|
||||||
|
const Experience = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const experiences = [
|
||||||
|
{
|
||||||
|
period: '2023 - 2024',
|
||||||
|
title: 'experience.job1.title',
|
||||||
|
company: 'experience.job1.company',
|
||||||
|
description: 'experience.job1.description',
|
||||||
|
tasks: ['experience.job1.task1', 'experience.job1.task2', 'experience.job1.task3']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
period: '2022',
|
||||||
|
title: 'experience.job2.title',
|
||||||
|
company: 'experience.job2.company',
|
||||||
|
description: 'experience.job2.description',
|
||||||
|
tasks: ['experience.job2.task1', 'experience.job2.task2']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
period: '2018 - 2025',
|
||||||
|
title: 'experience.job3.title',
|
||||||
|
company: 'experience.job3.company',
|
||||||
|
description: 'experience.job3.description',
|
||||||
|
tasks: ['experience.job3.task1', 'experience.job3.task2']
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
const routes = useRoutes(['/', '/experiences/:xpId'].map((path, id) => ({
|
||||||
|
path,
|
||||||
|
element: (
|
||||||
|
<>
|
||||||
|
<Link to={"/"}>
|
||||||
|
<p>Exit</p>
|
||||||
|
</Link>
|
||||||
|
<div className="max-w-4xl mx-auto">
|
||||||
|
<h2 className="text-4xl font-bold mb-12 text-accent">{t('experience.title')}</h2>
|
||||||
|
<div className="space-y-8">
|
||||||
|
<ExperiencesList experiences={experiences} t={t} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
})));
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{routes}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface Experience {
|
||||||
|
period: string;
|
||||||
|
title: string;
|
||||||
|
company: string;
|
||||||
|
description: string;
|
||||||
|
tasks: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ExperiencesListProps {
|
||||||
|
experiences: Experience[];
|
||||||
|
t: (key: string) => string
|
||||||
|
}
|
||||||
|
|
||||||
|
const ExperiencesList = ({ experiences, t }: ExperiencesListProps) => {
|
||||||
|
const { xpId } = useParams();
|
||||||
|
return <div className=' flex flex-col space-y-8'>
|
||||||
|
{experiences.map((exp, index) => <ExperienceSummary key={index} index={index} exp={exp} t={t} />)}
|
||||||
|
<AnimatePresence>
|
||||||
|
{xpId !== undefined && <DetailedExperience t={t} />}
|
||||||
|
</AnimatePresence>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ExperienceSummaryProps {
|
||||||
|
index: number;
|
||||||
|
exp: {
|
||||||
|
period: string;
|
||||||
|
title: string;
|
||||||
|
company: string;
|
||||||
|
description: string;
|
||||||
|
tasks: string[];
|
||||||
|
};
|
||||||
|
t: (key: string) => string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ExperienceSummary = ({ index, exp, t }: ExperienceSummaryProps) => {
|
||||||
|
|
||||||
|
return <Link to={`/experiences/${index}`}>
|
||||||
|
<motion.div layoutId={`experience-${index}`} key={index} className="bg-primary p-6 rounded-lg border border-secondary/10 hover:border-accent/50 transition-all">
|
||||||
|
<div className="flex flex-col md:flex-row md:justify-between md:items-start mb-4">
|
||||||
|
<motion.div layoutId={`experience-header-${index}`}>
|
||||||
|
<h3 className="text-2xl font-semibold text-secondary mb-1">{t(exp.title)}</h3>
|
||||||
|
<p className="text-accent font-medium">{t(exp.company)}</p>
|
||||||
|
</motion.div>
|
||||||
|
<span className="text-secondary/60 text-sm md:text-base mt-2 md:mt-0">{exp.period}</span>
|
||||||
|
</div>
|
||||||
|
<p className="text-secondary/70 mb-4">{t(exp.description)}</p>
|
||||||
|
<ul className="list-disc list-inside space-y-2 text-secondary/60">
|
||||||
|
{exp.tasks.map((task, taskIndex) => (
|
||||||
|
<li key={taskIndex}>{t(task)}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</motion.div>
|
||||||
|
</Link>
|
||||||
|
};
|
||||||
|
|
||||||
|
interface DetailedExperienceProps {
|
||||||
|
t: (key: string) => string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const DetailedExperience = ({ t }: DetailedExperienceProps) => {
|
||||||
|
const { xpId } = useParams();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
useEffect(() => {
|
||||||
|
// Prevent background scrolling when detailed view is open
|
||||||
|
document.body.style.overflow = 'hidden';
|
||||||
|
|
||||||
|
const handleEscape = (e: KeyboardEvent) => {
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
navigate('/');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
document.addEventListener('keydown', handleEscape);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
document.body.style.overflow = 'auto';
|
||||||
|
document.removeEventListener('keydown', handleEscape);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const handleBackgroundClick = (e: React.MouseEvent) => {
|
||||||
|
if(e.target === e.currentTarget) {
|
||||||
|
navigate('/');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return <motion.div
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 1 }}
|
||||||
|
exit={{ opacity: 0 }}
|
||||||
|
className='fixed top-0 left-0 w-full h-full bg-black bg-opacity-80 flex flex-col items-center justify-center z-0 backdrop-blur-sm'
|
||||||
|
onClick={handleBackgroundClick}
|
||||||
|
|
||||||
|
>
|
||||||
|
<motion.div layoutId={`experience-${xpId}`} className="bg-primary p-8 rounded-lg border border-accent max-w-3xl w-full h-1/2" onClick={(e) => e.stopPropagation()}>
|
||||||
|
<motion.div layoutId={`experience-header-${xpId}`}>
|
||||||
|
<h3 className="text-2xl font-semibold text-secondary mb-1">Dev full stack</h3>
|
||||||
|
<p className="text-accent font-medium">Meta Video</p>
|
||||||
|
</motion.div>
|
||||||
|
</motion.div>
|
||||||
|
</motion.div>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Experience;
|
||||||
37
src/components/Hero.tsx
Normal file
37
src/components/Hero.tsx
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
const Hero = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="min-h-screen flex items-center justify-center px-8 py-20">
|
||||||
|
<div className="max-w-4xl mx-auto text-center">
|
||||||
|
<h1 className="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-accent to-secondary bg-clip-text text-transparent">
|
||||||
|
Louis EMARD
|
||||||
|
</h1>
|
||||||
|
<h2 className="text-2xl md:text-3xl text-secondary/80 mb-8">
|
||||||
|
{t('hero.title')}
|
||||||
|
</h2>
|
||||||
|
<p className="text-lg md:text-xl text-secondary/60 mb-12 max-w-2xl mx-auto">
|
||||||
|
{t('hero.subtitle')}
|
||||||
|
</p>
|
||||||
|
<div className="flex gap-4 justify-center flex-wrap">
|
||||||
|
<a
|
||||||
|
href="#contact"
|
||||||
|
className="px-8 py-3 bg-accent text-white rounded-lg hover:bg-accent/90 transition-all hover:shadow-lg"
|
||||||
|
>
|
||||||
|
{t('hero.cta')}
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="#projects"
|
||||||
|
className="px-8 py-3 border-2 border-accent text-accent rounded-lg hover:bg-accent hover:text-white transition-all"
|
||||||
|
>
|
||||||
|
{t('hero.projects')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Hero;
|
||||||
51
src/components/Skills.tsx
Normal file
51
src/components/Skills.tsx
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
const Skills = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const skillCategories = [
|
||||||
|
{
|
||||||
|
title: 'skills.languages.title',
|
||||||
|
skills: ['Python', 'JavaScript/TypeScript', 'Java', 'C', 'SQL', 'HTML/CSS', 'Bash']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'skills.frameworks.title',
|
||||||
|
skills: ['React', 'Node.js', 'Django', 'FastAPI', 'TailwindCSS', 'Bootstrap']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'skills.tools.title',
|
||||||
|
skills: ['Git', 'Docker', 'Linux', 'PostgreSQL', 'MongoDB', 'REST API']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'skills.other.title',
|
||||||
|
skills: ['Agile/Scrum', 'CI/CD', 'Test unitaires', 'Architecture logicielle']
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="skills" className="py-20 px-8">
|
||||||
|
<div className="max-w-4xl mx-auto">
|
||||||
|
<h2 className="text-4xl font-bold mb-12 text-accent">{t('skills.title')}</h2>
|
||||||
|
<div className="grid md:grid-cols-2 gap-8">
|
||||||
|
{skillCategories.map((category, index) => (
|
||||||
|
<div key={index} className="bg-secondary/5 p-6 rounded-lg border border-secondary/10">
|
||||||
|
<h3 className="text-xl font-semibold mb-4 text-secondary">{t(category.title)}</h3>
|
||||||
|
<div className="flex flex-wrap gap-2">
|
||||||
|
{category.skills.map((skill, skillIndex) => (
|
||||||
|
<span
|
||||||
|
key={skillIndex}
|
||||||
|
className="px-4 py-2 bg-accent/10 text-accent border border-accent/20 rounded-full text-sm font-medium hover:bg-accent/20 transition-all"
|
||||||
|
>
|
||||||
|
{skill}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Skills;
|
||||||
143
src/components/ThemeMenu.tsx
Normal file
143
src/components/ThemeMenu.tsx
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
import { useState } from 'react';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import clsx from 'clsx';
|
||||||
|
import Moon from '../icons/Moon';
|
||||||
|
import Sun from '../icons/Sun';
|
||||||
|
import SystemIcon from '../icons/System';
|
||||||
|
|
||||||
|
export type CustomThemeColor = 'purple' | 'teal' | 'sunset' | 'forest' | 'ocean' | 'rose' | 'amber';
|
||||||
|
export type ThemeType = 'light' | 'dark' | `custom-${CustomThemeColor}`;
|
||||||
|
export type ThemeSelected = 'light' | 'dark' | `custom-${CustomThemeColor}` | 'system';
|
||||||
|
|
||||||
|
interface ThemeMenuProps {
|
||||||
|
theme: ThemeType;
|
||||||
|
themeSelected: ThemeSelected;
|
||||||
|
onThemeChange: (theme: ThemeSelected) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const customThemes: CustomThemeColor[] = ['purple', 'teal', 'sunset', 'forest', 'ocean', 'rose', 'amber'];
|
||||||
|
|
||||||
|
const getThemeEmoji = (color: CustomThemeColor): string => {
|
||||||
|
const emojis: Record<CustomThemeColor, string> = {
|
||||||
|
purple: '💜',
|
||||||
|
teal: '🩵',
|
||||||
|
sunset: '🌅',
|
||||||
|
forest: '🌲',
|
||||||
|
ocean: '🌊',
|
||||||
|
rose: '🌹',
|
||||||
|
amber: '⚡'
|
||||||
|
};
|
||||||
|
return emojis[color];
|
||||||
|
};
|
||||||
|
|
||||||
|
export const ThemeMenu = ({ theme, themeSelected, onThemeChange }: ThemeMenuProps) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [showThemeMenu, setShowThemeMenu] = useState(false);
|
||||||
|
const [showCustomSubmenu, setShowCustomSubmenu] = useState(true);
|
||||||
|
|
||||||
|
const getThemeIcon = () => {
|
||||||
|
if (themeSelected === 'system') {
|
||||||
|
return <SystemIcon className='text-secondary'/>;
|
||||||
|
}
|
||||||
|
if (theme === 'light') {
|
||||||
|
return <Sun className='text-secondary'/>;
|
||||||
|
}
|
||||||
|
if (theme.startsWith('custom-')) {
|
||||||
|
const color = theme.split('-')[1] as CustomThemeColor;
|
||||||
|
return <span className='text-accent text-xl'>{getThemeEmoji(color)}</span>;
|
||||||
|
}
|
||||||
|
return <Moon className='text-secondary'/>;
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleThemeSelect = (selectedTheme: ThemeSelected) => {
|
||||||
|
onThemeChange(selectedTheme);
|
||||||
|
setShowThemeMenu(false);
|
||||||
|
setShowCustomSubmenu(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="relative">
|
||||||
|
<button
|
||||||
|
onClick={() => setShowThemeMenu(!showThemeMenu)}
|
||||||
|
className="hover:drop-shadow-[0_0_8px_currentColor] transition-all flex flex-row p-2 hover:bg-secondary/10 rounded"
|
||||||
|
>
|
||||||
|
{getThemeIcon()}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{showThemeMenu && (
|
||||||
|
<div className="absolute right-0 top-12 bg-primary border border-secondary/20 rounded-lg shadow-xl z-50 min-w-[180px] overflow-hidden">
|
||||||
|
{/* Light Theme */}
|
||||||
|
<button
|
||||||
|
onClick={() => handleThemeSelect('light')}
|
||||||
|
className={clsx(
|
||||||
|
"w-full px-4 py-3 text-left hover:bg-accent/10 hover:text-accent transition-colors flex items-center gap-3",
|
||||||
|
themeSelected === 'light' && "bg-accent/20 text-accent"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Sun height={16} width={16} /> {t('theme.light')}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/* Dark Theme */}
|
||||||
|
<button
|
||||||
|
onClick={() => handleThemeSelect('dark')}
|
||||||
|
className={clsx(
|
||||||
|
"w-full px-4 py-3 text-left hover:bg-accent/10 hover:text-accent transition-colors flex items-center gap-3",
|
||||||
|
themeSelected === 'dark' && "bg-accent/20 text-accent"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Moon height={16} width={16} /> {t('theme.dark')}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/* Custom Themes - with submenu */}
|
||||||
|
<div
|
||||||
|
className="relative"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
className={clsx(
|
||||||
|
"w-full px-4 py-3 text-left hover:bg-accent/10 hover:text-accent transition-colors flex items-center justify-between gap-3",
|
||||||
|
themeSelected.startsWith('custom-') && "bg-accent/20 text-accent"
|
||||||
|
)}
|
||||||
|
onClick={() => setShowCustomSubmenu(true)}
|
||||||
|
onBlur={() => setShowCustomSubmenu(false)}
|
||||||
|
>
|
||||||
|
<span className="flex items-center gap-3">
|
||||||
|
<span className='text-lg'>✨</span> {t('theme.custom')}
|
||||||
|
</span>
|
||||||
|
<span className="text-xs">▶</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{/* Custom Submenu */}
|
||||||
|
{/* {showCustomSubmenu && ( */}
|
||||||
|
<div className=" top-0 ml-1 bg-primary border border-secondary/20 rounded-lg shadow-xl min-w-[160px] overflow-hidden">
|
||||||
|
{customThemes.map((color) => (
|
||||||
|
<button
|
||||||
|
key={color}
|
||||||
|
onClick={() => handleThemeSelect(`custom-${color}`)}
|
||||||
|
className={clsx(
|
||||||
|
"w-full px-4 py-3 text-left hover:bg-accent/10 hover:text-accent transition-colors flex items-center gap-3",
|
||||||
|
themeSelected === `custom-${color}` && "bg-accent/20 text-accent"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<span className='text-lg'>{getThemeEmoji(color)}</span>
|
||||||
|
{t(`theme.custom_${color}`)}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
{/* )} */}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* System Theme */}
|
||||||
|
<button
|
||||||
|
onClick={() => handleThemeSelect('system')}
|
||||||
|
className={clsx(
|
||||||
|
"w-full px-4 py-3 text-left hover:bg-accent/10 hover:text-accent transition-colors flex items-center gap-3",
|
||||||
|
themeSelected === 'system' && "bg-accent/20 text-accent"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<SystemIcon height={16} width={16} /> {t('theme.system')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
240
src/i18n/i18n.ts
Normal file
240
src/i18n/i18n.ts
Normal file
@@ -0,0 +1,240 @@
|
|||||||
|
import i18n from 'i18next';
|
||||||
|
import { initReactI18next } from 'react-i18next';
|
||||||
|
|
||||||
|
const resources = {
|
||||||
|
en: {
|
||||||
|
translation: {
|
||||||
|
// Navigation
|
||||||
|
nav: {
|
||||||
|
about: "About",
|
||||||
|
experience: "Experience",
|
||||||
|
skills: "Skills",
|
||||||
|
education: "Education",
|
||||||
|
projects: "Projects",
|
||||||
|
contact: "Contact"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Theme
|
||||||
|
theme: {
|
||||||
|
light: "Light",
|
||||||
|
dark: "Dark",
|
||||||
|
custom: "Custom",
|
||||||
|
custom_purple: "Purple Haze",
|
||||||
|
custom_teal: "Teal Dream",
|
||||||
|
custom_sunset: "Sunset",
|
||||||
|
custom_forest: "Forest",
|
||||||
|
custom_ocean: "Ocean",
|
||||||
|
custom_rose: "Rose",
|
||||||
|
custom_amber: "Amber",
|
||||||
|
system: "System"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Hero Section
|
||||||
|
hero: {
|
||||||
|
title: "Full Stack Developer & Software Engineer",
|
||||||
|
subtitle: "Passionate about creating innovative web solutions and building scalable applications with modern technologies.",
|
||||||
|
cta: "Get in Touch",
|
||||||
|
projects: "View Projects"
|
||||||
|
},
|
||||||
|
|
||||||
|
// About Section
|
||||||
|
about: {
|
||||||
|
title: "About Me",
|
||||||
|
description: "I'm a full-stack developer with a strong focus on creating efficient, scalable, and user-friendly applications. With expertise in modern web technologies and a passion for clean code, I bring ideas to life through thoughtful design and robust engineering.",
|
||||||
|
experience_title: "Experience",
|
||||||
|
experience_desc: "3+ years of experience in web development, working with cutting-edge technologies and agile methodologies.",
|
||||||
|
passion_title: "Passion",
|
||||||
|
passion_desc: "Dedicated to continuous learning and staying up-to-date with the latest trends in software development."
|
||||||
|
},
|
||||||
|
|
||||||
|
// Experience Section
|
||||||
|
experience: {
|
||||||
|
title: "Recent projects",
|
||||||
|
job1: {
|
||||||
|
title: "Full Stack Developer",
|
||||||
|
company: "Meta Video",
|
||||||
|
description: "Led development of modern web applications using React and Node.js",
|
||||||
|
task1: "Developed and maintained full-stack web applications",
|
||||||
|
task2: "Implemented RESTful APIs and microservices architecture",
|
||||||
|
task3: "Collaborated with cross-functional teams in an Agile environment"
|
||||||
|
},
|
||||||
|
job2: {
|
||||||
|
title: "Junior Developer",
|
||||||
|
company: "Startup Inc.",
|
||||||
|
description: "Contributed to various web development projects",
|
||||||
|
task1: "Built responsive user interfaces with React and TailwindCSS",
|
||||||
|
task2: "Optimized database queries and improved application performance"
|
||||||
|
},
|
||||||
|
job3: {
|
||||||
|
title: "Intern Developer",
|
||||||
|
company: "Software Solutions",
|
||||||
|
description: "Learned foundational software development practices",
|
||||||
|
task1: "Assisted in development of internal tools and applications",
|
||||||
|
task2: "Participated in code reviews and team meetings"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Skills Section
|
||||||
|
skills: {
|
||||||
|
title: "Skills & Technologies",
|
||||||
|
languages: {
|
||||||
|
title: "Programming Languages"
|
||||||
|
},
|
||||||
|
frameworks: {
|
||||||
|
title: "Frameworks & Libraries"
|
||||||
|
},
|
||||||
|
tools: {
|
||||||
|
title: "Tools & Platforms"
|
||||||
|
},
|
||||||
|
other: {
|
||||||
|
title: "Other Skills"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Education Section
|
||||||
|
education: {
|
||||||
|
title: "Education",
|
||||||
|
degree1: {
|
||||||
|
title: "Bachelor's Degree in Computer Science",
|
||||||
|
school: "University Name",
|
||||||
|
description: "Specialized in software engineering and web development"
|
||||||
|
},
|
||||||
|
degree2: {
|
||||||
|
title: "Technical Diploma",
|
||||||
|
school: "Technical Institute",
|
||||||
|
description: "Foundation in computer science and programming"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Contact Section
|
||||||
|
contact: {
|
||||||
|
title: "Let's Work Together",
|
||||||
|
description: "I'm always interested in hearing about new projects and opportunities. Feel free to reach out!",
|
||||||
|
email: "Send Email"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fr: {
|
||||||
|
translation: {
|
||||||
|
// Navigation
|
||||||
|
nav: {
|
||||||
|
about: "À propos",
|
||||||
|
experience: "Expérience",
|
||||||
|
skills: "Compétences",
|
||||||
|
education: "Formation",
|
||||||
|
projects: "Projets",
|
||||||
|
contact: "Contact"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Theme
|
||||||
|
theme: {
|
||||||
|
light: "Clair",
|
||||||
|
dark: "Sombre",
|
||||||
|
custom: "Personnalisé",
|
||||||
|
custom_purple: "Violet Brumeux",
|
||||||
|
custom_teal: "Turquoise Rêveur",
|
||||||
|
custom_sunset: "Coucher de Soleil",
|
||||||
|
custom_forest: "Forêt",
|
||||||
|
custom_ocean: "Océan",
|
||||||
|
custom_rose: "Rose",
|
||||||
|
custom_amber: "Ambre",
|
||||||
|
system: "Système"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Hero Section
|
||||||
|
hero: {
|
||||||
|
title: "Développeur Full Stack & Ingénieur Logiciel",
|
||||||
|
subtitle: "Passionné par la création de solutions web innovantes et le développement d'applications évolutives avec des technologies modernes.",
|
||||||
|
cta: "Me Contacter",
|
||||||
|
projects: "Voir les Projets"
|
||||||
|
},
|
||||||
|
|
||||||
|
// About Section
|
||||||
|
about: {
|
||||||
|
title: "À Propos",
|
||||||
|
description: "Je suis un développeur full-stack passionné par la création d'applications efficaces, évolutives et conviviales. Avec une expertise en technologies web modernes et un souci du code propre, je donne vie aux idées à travers une conception réfléchie et une ingénierie robuste.",
|
||||||
|
experience_title: "Expérience",
|
||||||
|
experience_desc: "Plus de 3 ans d'expérience en développement web, travaillant avec des technologies de pointe et des méthodologies agiles.",
|
||||||
|
passion_title: "Passion",
|
||||||
|
passion_desc: "Dédié à l'apprentissage continu et à rester à jour avec les dernières tendances en développement logiciel."
|
||||||
|
},
|
||||||
|
|
||||||
|
// Experience Section
|
||||||
|
experience: {
|
||||||
|
title: "Projets récents",
|
||||||
|
job1: {
|
||||||
|
title: "Développeur Full Stack",
|
||||||
|
company: "Meta Video",
|
||||||
|
description: "Direction du développement d'applications web modernes avec React et Node.js",
|
||||||
|
task1: "Développement et maintenance d'applications web full-stack",
|
||||||
|
task2: "Implémentation d'APIs RESTful et architecture microservices",
|
||||||
|
task3: "Collaboration avec des équipes pluridisciplinaires en environnement Agile"
|
||||||
|
},
|
||||||
|
job2: {
|
||||||
|
title: "Développeur Junior",
|
||||||
|
company: "Startup Inc.",
|
||||||
|
description: "Contribution à divers projets de développement web",
|
||||||
|
task1: "Construction d'interfaces utilisateur responsive avec React et TailwindCSS",
|
||||||
|
task2: "Optimisation des requêtes base de données et amélioration des performances"
|
||||||
|
},
|
||||||
|
job3: {
|
||||||
|
title: "Développeur Stagiaire",
|
||||||
|
company: "Solutions Logicielles",
|
||||||
|
description: "Apprentissage des pratiques fondamentales du développement logiciel",
|
||||||
|
task1: "Assistance au développement d'outils et applications internes",
|
||||||
|
task2: "Participation aux revues de code et réunions d'équipe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Skills Section
|
||||||
|
skills: {
|
||||||
|
title: "Compétences & Technologies",
|
||||||
|
languages: {
|
||||||
|
title: "Langages de Programmation"
|
||||||
|
},
|
||||||
|
frameworks: {
|
||||||
|
title: "Frameworks & Bibliothèques"
|
||||||
|
},
|
||||||
|
tools: {
|
||||||
|
title: "Outils & Plateformes"
|
||||||
|
},
|
||||||
|
other: {
|
||||||
|
title: "Autres Compétences"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Education Section
|
||||||
|
education: {
|
||||||
|
title: "Formation",
|
||||||
|
degree1: {
|
||||||
|
title: "Licence en Informatique",
|
||||||
|
school: "Nom de l'Université",
|
||||||
|
description: "Spécialisé en génie logiciel et développement web"
|
||||||
|
},
|
||||||
|
degree2: {
|
||||||
|
title: "Diplôme Technique",
|
||||||
|
school: "Institut Technique",
|
||||||
|
description: "Fondations en informatique et programmation"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Contact Section
|
||||||
|
contact: {
|
||||||
|
title: "Travaillons Ensemble",
|
||||||
|
description: "Je suis toujours intéressé par de nouveaux projets et opportunités. N'hésitez pas à me contacter !",
|
||||||
|
email: "Envoyer un Email"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
i18n.use(initReactI18next).init({
|
||||||
|
resources,
|
||||||
|
lng: 'fr', // langue par défaut
|
||||||
|
fallbackLng: 'fr', // langue de secours
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false // react déjà sécurisé contre les attaques XSS
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export default i18n;
|
||||||
19
src/icons/Moon.tsx
Normal file
19
src/icons/Moon.tsx
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import { IconProps } from './types';
|
||||||
|
|
||||||
|
const Moon = ({ className = '', height = 24, width = 24 }: IconProps) => {
|
||||||
|
return <svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
strokeWidth={1.5}
|
||||||
|
stroke='currentColor'
|
||||||
|
height={height}
|
||||||
|
width={width}
|
||||||
|
className={className}
|
||||||
|
// filter='drop-shadow(0 0 2px)'
|
||||||
|
>
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" d="M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z" />
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Moon
|
||||||
20
src/icons/Sun.tsx
Normal file
20
src/icons/Sun.tsx
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { IconProps } from './types';
|
||||||
|
|
||||||
|
const Sun = ({ className = '', height = 24, width = 24 }: IconProps) => {
|
||||||
|
return <svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
strokeWidth={1.5}
|
||||||
|
stroke='currentColor'
|
||||||
|
height={height}
|
||||||
|
width={width}
|
||||||
|
className={className}
|
||||||
|
>
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" d="M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z" />
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Sun
|
||||||
24
src/icons/System.tsx
Normal file
24
src/icons/System.tsx
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { IconProps } from './types';
|
||||||
|
|
||||||
|
const SystemIcon = ({
|
||||||
|
height = 24,
|
||||||
|
width = 24,
|
||||||
|
className = '',
|
||||||
|
color = 'currentColor'
|
||||||
|
}: IconProps) => {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
width={width}
|
||||||
|
height={height}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
className={className}
|
||||||
|
stroke={color}
|
||||||
|
>
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25" />
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default SystemIcon;
|
||||||
6
src/icons/types.ts
Normal file
6
src/icons/types.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export interface IconProps {
|
||||||
|
className?: string;
|
||||||
|
height?: number;
|
||||||
|
width?: number;
|
||||||
|
color?: string;
|
||||||
|
}
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/* @tailwind base;
|
|
||||||
@tailwind components;
|
|
||||||
@tailwind utilities; */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
||||||
line-height: 1.5;
|
|
||||||
font-weight: 400;
|
|
||||||
|
|
||||||
color-scheme: light dark;
|
|
||||||
color: rgba(255, 255, 255, 0.87);
|
|
||||||
background-color: #242424;
|
|
||||||
|
|
||||||
font-synthesis: none;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
font-weight: 500;
|
|
||||||
color: #646cff;
|
|
||||||
text-decoration: inherit;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
color: #535bf2;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
display: flex;
|
|
||||||
place-items: center;
|
|
||||||
min-width: 320px;
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 3.2em;
|
|
||||||
line-height: 1.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 8px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
padding: 0.6em 1.2em;
|
|
||||||
font-size: 1em;
|
|
||||||
font-weight: 500;
|
|
||||||
font-family: inherit;
|
|
||||||
background-color: #1a1a1a;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: border-color 0.25s;
|
|
||||||
}
|
|
||||||
button:hover {
|
|
||||||
border-color: #646cff;
|
|
||||||
}
|
|
||||||
button:focus,
|
|
||||||
button:focus-visible {
|
|
||||||
outline: 4px auto -webkit-focus-ring-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
|
||||||
:root {
|
|
||||||
color: #213547;
|
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
|
||||||
a:hover {
|
|
||||||
color: #747bff;
|
|
||||||
}
|
|
||||||
button {
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,14 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom/client'
|
import ReactDOM from 'react-dom/client'
|
||||||
import App from './App.tsx'
|
import App from './components/App.tsx'
|
||||||
import './index.css'
|
import './styles/index.css'
|
||||||
|
import './i18n/i18n.ts';
|
||||||
|
import { BrowserRouter } from 'react-router';
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
|
<BrowserRouter>
|
||||||
<App />
|
<App />
|
||||||
|
</BrowserRouter>
|
||||||
</React.StrictMode>,
|
</React.StrictMode>,
|
||||||
)
|
)
|
||||||
|
|||||||
80
src/styles/index.css
Normal file
80
src/styles/index.css
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
/* @tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities; */
|
||||||
|
/* @import './reset.css'; */
|
||||||
|
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
|
||||||
|
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
|
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--color-primary: 232 232 227;
|
||||||
|
--color-secondary: 23 23 23;
|
||||||
|
--color-accent: 59 130 246; /* Bleu par défaut */
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-dark {
|
||||||
|
--color-primary: 23 23 23;
|
||||||
|
--color-secondary: 232 232 227;
|
||||||
|
--color-accent: 96 165 250; /* Bleu clair pour dark mode */
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-light {
|
||||||
|
--color-primary: 232 232 227;
|
||||||
|
--color-secondary: 23 23 23;
|
||||||
|
--color-accent: 37 99 235; /* Bleu foncé pour light mode */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Purple Haze */
|
||||||
|
.theme-custom-purple {
|
||||||
|
--color-primary: 15 23 42; /* Slate foncé */
|
||||||
|
--color-secondary: 226 232 240; /* Slate clair */
|
||||||
|
--color-accent: 168 85 247; /* Violet/Purple */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Teal Dream */
|
||||||
|
.theme-custom-teal {
|
||||||
|
--color-primary: 17 24 39; /* Gray foncé */
|
||||||
|
--color-secondary: 229 231 235; /* Gray clair */
|
||||||
|
--color-accent: 20 184 166; /* Teal */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Sunset Orange */
|
||||||
|
.theme-custom-sunset {
|
||||||
|
--color-primary: 30 27 27; /* Brun foncé */
|
||||||
|
--color-secondary: 254 240 215; /* Orange très clair */
|
||||||
|
--color-accent: 249 115 22; /* Orange vif */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Forest Green */
|
||||||
|
.theme-custom-forest {
|
||||||
|
--color-primary: 20 30 25; /* Vert très foncé */
|
||||||
|
--color-secondary: 236 253 243; /* Vert très clair */
|
||||||
|
--color-accent: 34 197 94; /* Vert */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Ocean Blue */
|
||||||
|
.theme-custom-ocean {
|
||||||
|
--color-primary: 12 23 39; /* Bleu nuit */
|
||||||
|
--color-secondary: 224 242 254; /* Bleu très clair */
|
||||||
|
--color-accent: 14 165 233; /* Bleu océan */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Rose Pink */
|
||||||
|
.theme-custom-rose {
|
||||||
|
--color-primary: 31 20 31; /* Violet foncé */
|
||||||
|
--color-secondary: 253 242 248; /* Rose très clair */
|
||||||
|
--color-accent: 244 63 94; /* Rose */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Themes - Amber Gold */
|
||||||
|
.theme-custom-amber {
|
||||||
|
--color-primary: 28 25 23; /* Brun foncé */
|
||||||
|
--color-secondary: 254 252 232; /* Jaune très clair */
|
||||||
|
--color-accent: 245 158 11; /* Ambre/Or */
|
||||||
|
}
|
||||||
|
|
||||||
43
src/styles/reset.css
Normal file
43
src/styles/reset.css
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
html, body, div, span, applet, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
a, abbr, acronym, address, big, cite, code,
|
||||||
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var,
|
||||||
|
b, u, i, center,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, embed,
|
||||||
|
figure, figcaption, footer, header, hgroup,
|
||||||
|
menu, nav, output, ruby, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
/* border: 0; */
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
/* HTML5 display-role reset for older browsers */
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
ol, ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
@@ -4,7 +4,13 @@ export default {
|
|||||||
"./src/**/*.{js,ts,jsx,tsx}",
|
"./src/**/*.{js,ts,jsx,tsx}",
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {
|
||||||
|
colors: {
|
||||||
|
primary: `rgb(var(--color-primary)/ <alpha-value>)`,
|
||||||
|
secondary: `rgb(var(--color-secondary)/ <alpha-value>)`,
|
||||||
|
accent: `rgb(var(--color-accent)/ <alpha-value>)`,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react'
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
server: {
|
||||||
|
host: '0.0.0.0',
|
||||||
|
port: 5173
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user