commit 7dbd3f50c7dbc5e056c1d25a5d6218c297fd0932 Author: shango-wk Date: Sat Jan 3 10:56:04 2026 +0100 initial commit diff --git a/.env b/.env new file mode 100644 index 0000000..71cf516 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +VITE_DIRECTUS_API_KEY="SLT_e4auGG1g2gGTl9dLjEBRHW-b7Dgl" +VITE_DIRECTUS_URL="https://api.mrsh.online" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/README.md b/README.md new file mode 100644 index 0000000..18bc70e --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# React + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. diff --git a/automate.sh b/automate.sh new file mode 100644 index 0000000..8e73277 --- /dev/null +++ b/automate.sh @@ -0,0 +1,5 @@ +# Rebuild and restart +docker stop mrsh +docker rm mrsh +docker build -t your-image-name . +docker run --name mrsh -p 5173:5173 your-image-name diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..0fa6fb6 Binary files /dev/null and b/bun.lockb differ diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..a02b02c --- /dev/null +++ b/dockerfile @@ -0,0 +1,12 @@ +FROM oven/bun:1 AS build +WORKDIR /app +COPY package.json bun.lockb ./ +RUN bun install +COPY . . +RUN bun run build + +FROM nginx:alpine +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY --from=build /app/dist /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..4fa125d --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,29 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{js,jsx}'], + extends: [ + js.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + parserOptions: { + ecmaVersion: 'latest', + ecmaFeatures: { jsx: true }, + sourceType: 'module', + }, + }, + rules: { + 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], + }, + }, +]) diff --git a/index.html b/index.html new file mode 100644 index 0000000..c50b6f5 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + [Mrsh] + + +
+ + + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..bbeb7c6 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,12 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} + diff --git a/package.json b/package.json new file mode 100644 index 0000000..4faeb24 --- /dev/null +++ b/package.json @@ -0,0 +1,33 @@ +{ + "name": "client", + "proxy": "https://mrsh.online", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "hamburger-react": "^2.5.2", + "initialize-css": "^1.4.0", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-markdown": "^10.1.0", + "react-router": "^7.10.1", + "sass": "^1.96.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "vite": "^7.2.4" + } +} diff --git a/public/fonts/04b_21/04B_21__.TTF b/public/fonts/04b_21/04B_21__.TTF new file mode 100644 index 0000000..278d011 Binary files /dev/null and b/public/fonts/04b_21/04B_21__.TTF differ diff --git a/public/fonts/04b_21/about.gif b/public/fonts/04b_21/about.gif new file mode 100644 index 0000000..1eb2946 Binary files /dev/null and b/public/fonts/04b_21/about.gif differ diff --git a/public/fonts/Alata/Alata-Regular.ttf b/public/fonts/Alata/Alata-Regular.ttf new file mode 100644 index 0000000..8533e4d Binary files /dev/null and b/public/fonts/Alata/Alata-Regular.ttf differ diff --git a/public/fonts/Alata/OFL.txt b/public/fonts/Alata/OFL.txt new file mode 100644 index 0000000..9d1c6f9 --- /dev/null +++ b/public/fonts/Alata/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2016 The Alata Project Authors (https://github.com/SorkinType/Alata) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/public/fonts/Vanitas/vanitas.ttf b/public/fonts/Vanitas/vanitas.ttf new file mode 100644 index 0000000..e76e2df Binary files /dev/null and b/public/fonts/Vanitas/vanitas.ttf differ diff --git a/public/links/bluesky.svg b/public/links/bluesky.svg new file mode 100644 index 0000000..17277ad --- /dev/null +++ b/public/links/bluesky.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/links/gitea.svg b/public/links/gitea.svg new file mode 100644 index 0000000..0bfc342 --- /dev/null +++ b/public/links/gitea.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/links/linkedin.svg b/public/links/linkedin.svg new file mode 100644 index 0000000..d3e7e80 --- /dev/null +++ b/public/links/linkedin.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/links/mail.svg b/public/links/mail.svg new file mode 100644 index 0000000..42cc2ef --- /dev/null +++ b/public/links/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/links/work.svg b/public/links/work.svg new file mode 100644 index 0000000..741ce81 --- /dev/null +++ b/public/links/work.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/pp.ico b/public/pp.ico new file mode 100644 index 0000000..e3c08b8 Binary files /dev/null and b/public/pp.ico differ diff --git a/public/pp.png b/public/pp.png new file mode 100644 index 0000000..93503d5 Binary files /dev/null and b/public/pp.png differ diff --git a/src/App.jsx b/src/App.jsx new file mode 100644 index 0000000..ef9be1c --- /dev/null +++ b/src/App.jsx @@ -0,0 +1,40 @@ +import { useState } from "react" +import Header from "./Components/Header" +import { BrowserRouter, Routes, Route } from "react-router" +import Home from './Pages/Home' +import Blog from "./Pages/Blog/Blog" +import BlogArticle from "./Pages/Blog/BlogArticle" +import Event from "./Pages/Event" +import Walkthroughs from "./Pages/Walkthroughs/Walkthroughs" +import WalkthroughsArticle from "./Pages/Walkthroughs/WalkthroughsArticles" +import Music from "./Pages/Music" +import Hamburger from 'hamburger-react' + +function App() { + + const [lang, setlang] = useState('fr') + const [isOpen, setOpen] = useState(false) + + return ( + <> + +
+ + + + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + + ) +} + +export default App diff --git a/src/Components/Header.jsx b/src/Components/Header.jsx new file mode 100644 index 0000000..5515848 --- /dev/null +++ b/src/Components/Header.jsx @@ -0,0 +1,25 @@ +import { Link } from "react-router" +import {useState} from "react" + +export default function Header({setLang, isOpen, setOpen}){ + return( +
{setOpen(false)}} className={isOpen == true ?`Header` : `HeaderActive`} > +
+
+ + / + +
+
+
    +
  • Blog
  • +
  • Event
  • +
  • Music
  • +
  • Walkthroughs
  • +
  • Links
  • +
  • Gallery
  • +
+
+
+ ) +} diff --git a/src/Pages/Blog/Blog.jsx b/src/Pages/Blog/Blog.jsx new file mode 100644 index 0000000..06071ee --- /dev/null +++ b/src/Pages/Blog/Blog.jsx @@ -0,0 +1,50 @@ +import { Link } from "react-router" +import { useEffect, useState } from "react"; + +export default function Blog({lang}){ + const [articles, setArticles] = useState([]) + const [loading, setLoading] = useState(true) + + useEffect(() => { + + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Blog`) + .then(res => res.json()) + .then(data => {setArticles(data.data), setLoading(false), console.log(data.data)}) + + }, []) + + if(loading === true){ + return( + + Loading + + ) + } + + return( +
+
+ Home + / +

Blog

+
+
+ {articles?.map((e,i)=>{return( + +

Titre

+
+
+ + +
+ {lang === "fr" ? +

{e.title}

+ :

{e.title_en}

} + + + )})} + + +
+ ) +} diff --git a/src/Pages/Blog/BlogArticle.jsx b/src/Pages/Blog/BlogArticle.jsx new file mode 100644 index 0000000..864ce13 --- /dev/null +++ b/src/Pages/Blog/BlogArticle.jsx @@ -0,0 +1,56 @@ +import { Link, useSearchParams } from "react-router" +import { useEffect, useState } from "react"; +import Markdown from 'react-markdown' + +export default function BlogArticle({lang}){ + + const [article, setArticle] = useState({}); + const [loading, setLoading] = useState(true); + const [searchParams] = useSearchParams(); + const id = searchParams.get("id") + + useEffect(() => { + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Blog/${id}`) + .then(res => res.json()) + .then(data => {setArticle(data.data), setLoading(false), console.log(data.data)}) + + }, []) + + if (!id) return

No ID provided

+ + if(loading === true){ + return( + + Loading + + ) + } + + return( +
+
+ Home + / + Blog + / + {lang == "fr" ? article.title : article.title_en} +
+
+ +
+

{article?.title}

+
+
+ +
+ + {lang == "fr" ? article.content : article.content_en} + +
+ Retour +
+
+ +
+ ) +} diff --git a/src/Pages/Event.jsx b/src/Pages/Event.jsx new file mode 100644 index 0000000..d99bbc2 --- /dev/null +++ b/src/Pages/Event.jsx @@ -0,0 +1,48 @@ +import { Link } from "react-router" +import {useState, useEffect} from 'react' + +export default function Event({lang}){ + + const [events, setEvents] = useState([]) + const [past, setPast] = useState([]) + const [future, setFuture] = useState([]) + + //for today date + const today = new Date(); + const yyyy = today.getFullYear(); + const mm = String(today.getMonth() + 1).padStart(2, '0'); // Months are zero-based + const dd = String(today.getDate()).padStart(2, '0'); + const formattedDate = `${yyyy}-${mm}-${dd}`; + + useEffect(() => { + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Event`) + .then(res => res.json()) + .then(data => setEvents(data.data)) + + }, []) + + + useEffect(() => { + console.log(future) + console.log(formattedDate) + + }, [future]) + + return( +
+
+ Home + / + Event +
+
+ + {events?.map((e,i)=>{return( + +
+

{e.date} {e.title} @ {e.place} | {lang == "fr" ? "Lien" : "Link"}

+
+ )})} +
+ ) +} diff --git a/src/Pages/Home.jsx b/src/Pages/Home.jsx new file mode 100644 index 0000000..4b07713 --- /dev/null +++ b/src/Pages/Home.jsx @@ -0,0 +1,192 @@ +import { useEffect, useState } from "react"; +import { Link } from "react-router" + +export default function Home({lang}){ + + const [blogHome, setBlogHome] = useState({}) + const [eventHome, setEventHome] = useState({}) + const [friendHome, setFriendHome] = useState([]) + const [walkthroughtHome, setWalkthroughtHome] = useState({}) + const [loading, setLoading] = useState(false) + + useEffect(() => { + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Blog`) + .then(res => res.json()) + .then(data => setBlogHome(data.data[0])) + + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Event`) + .then(res => res.json()) + .then(data => setEventHome(data.data[0])) + + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Walkthrought`) + .then(res => res.json()) + .then(data => setWalkthroughtHome(data.data[0])) + + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Friend`) + .then(res => res.json()) + .then(data => setFriendHome(data.data)) + + setLoading(false) + + }, []) + + useEffect(() => { + console.log(walkthroughtHome,"hello") + + }, [walkthroughtHome]) + + + + + + + if(loading === true){ + return( + + Loading + + ) + } + + return ( +
+
+
+

[Mrsh]

+

TECH / MUSIC

+ {lang === "fr" ? +

Salut 🙌🏿 , moi c'est Marsha. Je suis développeuse web et apprentie admin sys. Je suis fan de trop de trucs et j'en fais un blog, mais surtout des ordinateurs et la musique. On peut me retrouver ici ou en train de faire un moshpit.

+ :

Hi, 🙌🏿 I'm Marsha. I'm a web developer and a trainee system administrator. I'm a fan of so many things, and I write a blog about them, but mainly about computers and music. You can find me here or in the middle of a mosh pit.

} +
+ +
+ +
+
+
+

BLOG

+
+ +
+ +
+ {lang === "fr" ? +

{blogHome.title}

+ :

{blogHome.title_en}

} + + + +
+ {lang == "fr" ? "Voir plus" : "See more" } +
+
+ +
+

EVENT

+
+
+ +
+ +

+ {eventHome.date} | {eventHome.title} @ {eventHome.place} +

+
+
+ {lang == "fr" ? "Voir plus" : "See more" } +
+
+ +
+

Music

+
+ +

Opps Canem - 2025

+ +
+ {lang == "fr" ? "Voir plus" : "See more" } +
+
+ +
+

WALKTHROUGHTS

+
+ {walkthroughtHome == null ? + + Under construction... + + : + +
+ +
+ {lang === "fr" ? + <> +

{walkthroughtHome.title}

+

{walkthroughtHome.summary}

+ + : + <> +

{walkthroughtHome.title_en}

+

{walkthroughtHome.summary_en}

+ + } + +
+ {lang == "fr" ? "Voir plus" : "See more" } +
+ + } +
+ + +
+

FRIENDS

+
+ +
+ + +
+ ); +} diff --git a/src/Pages/Music.jsx b/src/Pages/Music.jsx new file mode 100644 index 0000000..af48eed --- /dev/null +++ b/src/Pages/Music.jsx @@ -0,0 +1,26 @@ +import { Link } from "react-router" + +export default function Music (){ + return( +
+
+ Home + / +

Music

+
+
+ +

Opps Canem - 2025 - (Production)

+
+ + +

Sooooo Dysfurric - 2025 - (Production)

+
+ + +

Aïda - 2025 - (Bass)

+
+ +
+ ) +} \ No newline at end of file diff --git a/src/Pages/Walkthroughs/Walkthroughs.jsx b/src/Pages/Walkthroughs/Walkthroughs.jsx new file mode 100644 index 0000000..774bd87 --- /dev/null +++ b/src/Pages/Walkthroughs/Walkthroughs.jsx @@ -0,0 +1,48 @@ +import { Link } from "react-router" +import { useEffect, useState } from "react"; + +export default function Walkthroughs({lang}){ + const [articles, setArticles] = useState([]) + const [loading, setLoading] = useState(true) + + useEffect(() => { + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Walkthrought`) + .then(res => res.json()) + .then(data => {setArticles(data.data), setLoading(false), console.log(data.data)}) + + }, []) + + if(loading === true){ + return( + + Loading + + ) + } + + return( +
+
+ Home + / +

Walkthroughs

+
+
+ {articles?.map((e,i)=>{return( + +

Titre

+
+
+ +
+ {lang === "fr" ? +

{e.title}

+ :

{e.title_en}

} + + + )})} + + +
+ ) +} diff --git a/src/Pages/Walkthroughs/WalkthroughsArticles.jsx b/src/Pages/Walkthroughs/WalkthroughsArticles.jsx new file mode 100644 index 0000000..8cebd13 --- /dev/null +++ b/src/Pages/Walkthroughs/WalkthroughsArticles.jsx @@ -0,0 +1,58 @@ +import { Link, useSearchParams } from "react-router" +import { useEffect, useState } from "react"; +import Markdown from 'react-markdown' + +export default function WalkthroughsArticles({lang}){ + + const [article, setArticle] = useState({}); + const [loading, setLoading] = useState(true); + const [searchParams] = useSearchParams(); + const id = searchParams.get("id") + + useEffect(() => { + fetch(`${import.meta.env.VITE_DIRECTUS_URL}/items/Walkthrought/${id}`) + .then(res => res.json()) + .then(data => {setArticle(data.data), setLoading(false), console.log(data.data)}) + + }, []) + + if (!id) return

No ID provided

+ + if(loading === true){ + return( + + Loading + + ) + } + + return( +
+
+ Home + / + Blog + / + {article.title} +
+
+ +
+

{article?.title}

+
+
+ +
+
+ + {lang == "fr" ? article.content : article.content_en} + +
+
+ Retour +
+
+ +
+ ) +} diff --git a/src/assets/react.svg b/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/main.jsx b/src/main.jsx new file mode 100644 index 0000000..140a353 --- /dev/null +++ b/src/main.jsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react' +import { createRoot } from 'react-dom/client' +import App from './App.jsx' +import './main.sass' + +createRoot(document.getElementById('root')).render( + + + , +) diff --git a/src/main.sass b/src/main.sass new file mode 100644 index 0000000..b6114df --- /dev/null +++ b/src/main.sass @@ -0,0 +1,244 @@ +@use "../node_modules/initialize-css/dist/initialize" + +@font-face + font-family: 'alata' + src: url('/fonts/Alata/Alata-Regular.ttf') + +@font-face + font-family: 'Vanitas' + src: url('/fonts/Vanitas/vanitas.ttf') + +$background: #0E0E0E +$foreground: #F1F1F1 +$accent: #FB74E0 + +@keyframes fadeIn + from + opacity: 0 + transform: translateY(10px) + + to + opacity: 1 + transform: translateY(0px) + +@mixin animation-fadeIn($duration: 1s, $timing: ease-in) + animation-name: fadeIn + animation-duration: $duration + animation-timing-function: $timing + animation-fill-mode: forwards + +body + background-color: $background + +#root + max-width: 1024px + margin: auto + +.Loading + font-family: 'Vanitas' + font-size: 50px + margin: 150px auto + text-align: center + width: 100% + display: block +p, button + font-family: 'alata' + +h1, h2, header button, header, h3 + font-family: 'Vanitas' + margin: 0 + padding: 0 +h1 + font-size: 128px +h2 + font-size: 40px + +.breadcrumb + margin-top: 200px + display: flex + gap: 10px + h1, span, a + font-size: 30px + font-family: 'Vanitas' +.separator + height: 1px + background-color: white + width: 100% + margin-bottom: 20px + +button + all: unset + background: none + color: $foreground + border-radius: 5px + border: 1px solid $foreground + padding: 5px 10px + transition: 0.5s ease + &:hover + color: $accent + cursor: pointer + border: 1px solid $accent + +a, p, span, h1, h2, h3, h4, h5 + color: $foreground + text-decoration: none + @include animation-fadeIn(2s, ease) + +a + transition: 0.5s ease-in-out + &:hover + color: $accent +.hamburger-react + position : fixed !important + top : 50px + z-index: 40 + left: 5% + color: $foreground + + +.Header + &Active + opacity: 0 + transform: translateY(-200%) + height: 0 + position: fixed + top: 0 + left: 0% + display: block + background-color: $background + z-index:5 + font-size: 20px + height: 100% + display: flex + width: 100% + align-items: center + padding: 100px 0 + transition: 0.6s ease + flex-direction: column + ul + display: flex + flex-direction: column + gap: 10px + padding: 0 + li + text-align: center + list-style: none + button + background: none + border: none + &Logo + font-family: '04b_21' + font-size: 40px + +.Home + &Presentation + display: flex + margin-top:100px + justify-content: space-between + align-items: center + flex-direction: column + &Profile + @include animation-fadeIn(2s, ease) + width: 40% + img + width: 100% + &Text + @include animation-fadeIn(2s, ease) + text-align: center + &Element + min-height: 40vh + margin: 50px 0 + p + width: 80% + margin: 20px auto + h3 + margin: 20px auto + transition: 0.6s ease + text-align: center + font-size: 40px + &:hover + h3 + color: $accent + &Friend + &Container + width: 50% + padding: 20px + display: flex + flex-direction: column + gap: 10px + &:hover + h4 + color: $accent + h4 + transition: 0.6s ease + text-align: center + font-family: 'vanitas' + font-size: 30px + margin: 0 + p + margin: 0 + width: 100% + font-size: 20px + &Image + max-height: 50% + img + width: 100% + &Link + a + margin: 40px auto + border: 1px solid white + max-width: 200px + text-align: center + border-radius: 10px + padding: 10px + transition: 0.3 ease + cursor: pointer + display: block + &:hover + background-color: $foreground + &Img + object-fit: cover + max-width: 50% + margin: auto + img + width: 100% + +.Links + display: flex + flex-direction: column + justify-content: center + align-items: center + text-align: center + p + font-family: 'Vanitas' + font-size: 35px + &Container + width: 200px + img + width: 100% + &:hover + cursor: pointer + img + color: $accent + transform: translate(0.05) +iframe + margin-bottom: 50px + +.BlogElement + h2, h3, h4, h5 + font-family: 'Vanitas' + text-align: center + img + display: block + max-width: 400px + margin: auto + +//pour le text Markdown +.prose + img + max-height: 400px + display: block + margin: auto + + + //transform: translateX(-50%) diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..c3045f7 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,15 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +export default defineConfig({ + plugins: [react()], + server: { + host: '0.0.0.0', + port: 5173, + strictPort: true, + watch: { + usePolling: true, // Essential for Docker + interval: 1000 + }, + } +})