From b16eb4c0b5ff101691bc22300d77e1bd7697ae4f Mon Sep 17 00:00:00 2001 From: lnino Date: Sat, 1 Feb 2025 03:43:37 +0100 Subject: [PATCH] add a lot of thing (too late to understand tbh) --- portfolio/.gitignore | 41 ++++++++++++++++++++++++++++++++++++ portfolio/README.md | 36 +++++++++++++++++++++++++++++++ portfolio/eslint.config.mjs | 16 ++++++++++++++ portfolio/next.config.ts | 7 ++++++ portfolio/pages/contact.js | 15 +++++++++++++ portfolio/pages/index.js | 24 +++++++++++++++++++++ portfolio/pages/projects.js | 16 ++++++++++++++ portfolio/postcss.config.js | 6 ++++++ portfolio/postcss.config.mjs | 8 +++++++ portfolio/public/file.svg | 1 + portfolio/public/globe.svg | 1 + portfolio/public/next.svg | 1 + portfolio/public/vercel.svg | 1 + portfolio/public/window.svg | 1 + portfolio/styles/globals.css | 3 +++ portfolio/tailwind.config.js | 8 +++++++ portfolio/tailwind.config.ts | 18 ++++++++++++++++ portfolio/tsconfig.json | 27 ++++++++++++++++++++++++ 18 files changed, 230 insertions(+) create mode 100644 portfolio/.gitignore create mode 100644 portfolio/README.md create mode 100644 portfolio/eslint.config.mjs create mode 100644 portfolio/next.config.ts create mode 100644 portfolio/pages/contact.js create mode 100644 portfolio/pages/index.js create mode 100644 portfolio/pages/projects.js create mode 100644 portfolio/postcss.config.js create mode 100644 portfolio/postcss.config.mjs create mode 100644 portfolio/public/file.svg create mode 100644 portfolio/public/globe.svg create mode 100644 portfolio/public/next.svg create mode 100644 portfolio/public/vercel.svg create mode 100644 portfolio/public/window.svg create mode 100644 portfolio/styles/globals.css create mode 100644 portfolio/tailwind.config.js create mode 100644 portfolio/tailwind.config.ts create mode 100644 portfolio/tsconfig.json diff --git a/portfolio/.gitignore b/portfolio/.gitignore new file mode 100644 index 0000000..5ef6a52 --- /dev/null +++ b/portfolio/.gitignore @@ -0,0 +1,41 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# env files (can opt-in for committing if needed) +.env* + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/portfolio/README.md b/portfolio/README.md new file mode 100644 index 0000000..e215bc4 --- /dev/null +++ b/portfolio/README.md @@ -0,0 +1,36 @@ +This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +# or +pnpm dev +# or +bun dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. + +This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. + +## Learn More + +To learn more about Next.js, take a look at the following resources: + +- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. +- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. + +You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! + +## Deploy on Vercel + +The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. + +Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. diff --git a/portfolio/eslint.config.mjs b/portfolio/eslint.config.mjs new file mode 100644 index 0000000..c85fb67 --- /dev/null +++ b/portfolio/eslint.config.mjs @@ -0,0 +1,16 @@ +import { dirname } from "path"; +import { fileURLToPath } from "url"; +import { FlatCompat } from "@eslint/eslintrc"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const compat = new FlatCompat({ + baseDirectory: __dirname, +}); + +const eslintConfig = [ + ...compat.extends("next/core-web-vitals", "next/typescript"), +]; + +export default eslintConfig; diff --git a/portfolio/next.config.ts b/portfolio/next.config.ts new file mode 100644 index 0000000..e9ffa30 --- /dev/null +++ b/portfolio/next.config.ts @@ -0,0 +1,7 @@ +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + /* config options here */ +}; + +export default nextConfig; diff --git a/portfolio/pages/contact.js b/portfolio/pages/contact.js new file mode 100644 index 0000000..57651a2 --- /dev/null +++ b/portfolio/pages/contact.js @@ -0,0 +1,15 @@ +export default function Contact() { + return ( +
+

Me Contacter

+

N'hésitez pas à me contacter pour toute collaboration !

+
+ + + + +
+
+ ); + } + \ No newline at end of file diff --git a/portfolio/pages/index.js b/portfolio/pages/index.js new file mode 100644 index 0000000..db990eb --- /dev/null +++ b/portfolio/pages/index.js @@ -0,0 +1,24 @@ +import { useEffect } from "react"; +import { gsap } from "gsap"; +import Link from "next/link"; + +export default function Home() { + useEffect(() => { + gsap.from(".fade-in", { opacity: 0, y: 20, duration: 1 }); + }, []); + + return ( +
+

Bienvenue sur mon Portfolio

+

Infrastructure | Réseau | Automatisation

+
+ + Voir mes projets + + + Me contacter + +
+
+ ); +} \ No newline at end of file diff --git a/portfolio/pages/projects.js b/portfolio/pages/projects.js new file mode 100644 index 0000000..a0eba6e --- /dev/null +++ b/portfolio/pages/projects.js @@ -0,0 +1,16 @@ +export default function Projects() { + return ( +
+

Mes Projets

+ +
+ ); + } \ No newline at end of file diff --git a/portfolio/postcss.config.js b/portfolio/postcss.config.js new file mode 100644 index 0000000..33ad091 --- /dev/null +++ b/portfolio/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/portfolio/postcss.config.mjs b/portfolio/postcss.config.mjs new file mode 100644 index 0000000..1a69fd2 --- /dev/null +++ b/portfolio/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/portfolio/public/file.svg b/portfolio/public/file.svg new file mode 100644 index 0000000..004145c --- /dev/null +++ b/portfolio/public/file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/portfolio/public/globe.svg b/portfolio/public/globe.svg new file mode 100644 index 0000000..567f17b --- /dev/null +++ b/portfolio/public/globe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/portfolio/public/next.svg b/portfolio/public/next.svg new file mode 100644 index 0000000..5174b28 --- /dev/null +++ b/portfolio/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/portfolio/public/vercel.svg b/portfolio/public/vercel.svg new file mode 100644 index 0000000..7705396 --- /dev/null +++ b/portfolio/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/portfolio/public/window.svg b/portfolio/public/window.svg new file mode 100644 index 0000000..b2b2a44 --- /dev/null +++ b/portfolio/public/window.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/portfolio/styles/globals.css b/portfolio/styles/globals.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/portfolio/styles/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/portfolio/tailwind.config.js b/portfolio/tailwind.config.js new file mode 100644 index 0000000..95b3e1b --- /dev/null +++ b/portfolio/tailwind.config.js @@ -0,0 +1,8 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: ["./pages/**/*.{js,ts,jsx,tsx}"], + theme: { + extend: {}, + }, + plugins: [], +}; diff --git a/portfolio/tailwind.config.ts b/portfolio/tailwind.config.ts new file mode 100644 index 0000000..1362b88 --- /dev/null +++ b/portfolio/tailwind.config.ts @@ -0,0 +1,18 @@ +import type { Config } from "tailwindcss"; + +export default { + content: [ + "./pages/**/*.{js,ts,jsx,tsx,mdx}", + "./components/**/*.{js,ts,jsx,tsx,mdx}", + "./app/**/*.{js,ts,jsx,tsx,mdx}", + ], + theme: { + extend: { + colors: { + background: "var(--background)", + foreground: "var(--foreground)", + }, + }, + }, + plugins: [], +} satisfies Config; diff --git a/portfolio/tsconfig.json b/portfolio/tsconfig.json new file mode 100644 index 0000000..d8b9323 --- /dev/null +++ b/portfolio/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +}