diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b02a1ff --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local +package-lock.json + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/about.html b/about.html index 73791e9..d641fe5 100644 --- a/about.html +++ b/about.html @@ -1,26 +1,42 @@ - - + + - Guams - - - - - - - - + + + + + Guams - About -
- - fishgolf -
-

Work in progress...

-
+ +
+
+

Work in progress...

+
+
- + \ No newline at end of file diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 54941a9..0000000 --- a/css/style.css +++ /dev/null @@ -1,94 +0,0 @@ -* { - font-family: Verdana, Geneva, Tahoma, sans-serif; -} - -body { - background-color: #f6f0e6; - margin: auto; - width: 50%; - padding: 10px; -} - -nav { - display: flex; - gap: inherit; -} - -.nav-item { - color: #d67d72; -} - -.nav-item:hover { - color: #c65d53; - transition: 1.5s; -} - -a { - text-decoration: none; -} - -h2 { - text-align: center; - color: #d67d72; -} - -.git_button_a, .website_link_a { - height: 100%; - color: #ffffff; -} - -.git_button, .website_link { - display: flex; - gap: 5px; - align-items: center; - padding: 10px; - border-radius: 8px; - background-color: #d67d72; - transition: 0.3s; - border: none; -} - -.git_button:hover, .website_link:hover { - color: #ffffff; - background-color: #c65d53; - border: 1px solid #9b7432; -} - -.badge { - width: 88px; - height: 31px; -} - -main { - gap: 50px; - border-radius: 4px; - padding: 1%; - display: flex; - flex-direction: column; - align-items: center; - box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; - background-color: #ffffff; -} - -img.illustration { - border-radius: 5px; - box-shadow: 0 5px 5px black; - object-fit: cover; - width: 100%; - height: 300px; - display: block; - margin: auto; -} - -.button_div { - display: flex; - justify-content: space-evenly; -} - -.card { - display: flex; - border-top: 1px solid rgba(159, 162, 177, 0.4); - justify-content: center; - flex-direction: column; - gap: 20px; -} \ No newline at end of file diff --git a/index.html b/index.html index b21561d..dd71cbc 100644 --- a/index.html +++ b/index.html @@ -1,87 +1,72 @@ - - + + - Guams - - - - - - - - + + + + + + Guams - Home -
- - fishgolf -
-

À bon entendeur

- gitea -
- -
- Source code - - - - - - - - - -
-
- - - +
+ +
+
+
+
+ My gitea instance ! +
+
+
This is my gitea instance, this is here I share my projects.
+ gitea showcase + Go to website +
+
+
+
+ À bon entendeur +
+
+
This is my personal blog, where I share reviews of the things I enjoy (did it by + myself btw 😁).
+ abonentendeur showcase +
It is not 100% functional for now, but I'll fix all the bug that are reported
+ +
+
+
+
diff --git a/package.json b/package.json new file mode 100644 index 0000000..bf82f80 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "asa_pres_bootstrap", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "devDependencies": { + "typescript": "~5.7.2", + "vite": "^6.2.0" + }, + "dependencies": { + "bootstrap": "^5.3.3" + } +} diff --git a/public/icon.jpg b/public/icon.jpg new file mode 100644 index 0000000..6e0e8ef Binary files /dev/null and b/public/icon.jpg differ diff --git a/img/abonentendeur.png b/src/img/abonentendeur.png similarity index 100% rename from img/abonentendeur.png rename to src/img/abonentendeur.png diff --git a/img/fishgolf.gif b/src/img/fishgolf.gif similarity index 100% rename from img/fishgolf.gif rename to src/img/fishgolf.gif diff --git a/img/gitea.png b/src/img/gitea.png similarity index 100% rename from img/gitea.png rename to src/img/gitea.png diff --git a/img/guams.gif b/src/img/guams.gif similarity index 100% rename from img/guams.gif rename to src/img/guams.gif diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..ce74d9f --- /dev/null +++ b/src/main.ts @@ -0,0 +1,20 @@ +import './style.css' +import 'bootstrap'; + +document.addEventListener("DOMContentLoaded", () => { + const chkBox = document.getElementById('dark-mode') as HTMLInputElement; + chkBox?.addEventListener("change", changeTheme); +}); + +function changeTheme() { + const htmlElement = document.getElementById('html'); + const chkBox = document.getElementById('dark-mode') as HTMLInputElement; + + if (chkBox && htmlElement) { + htmlElement.setAttribute("data-bs-theme", chkBox.checked ? "dark" : "light"); + document.getElementById("dark-mode-text")!.innerHTML = chkBox.checked ? "Dark theme enabled 🌕" : "Light theme enabled ☀️"; + } +} + + + diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..48e8fd3 --- /dev/null +++ b/src/style.css @@ -0,0 +1,40 @@ +@import '../node_modules/bootstrap/dist/css/bootstrap.css'; + +main { + gap: 50px; + border-radius: 4px; + padding: 1%; + display: flex; + flex-direction: column; + align-items: center; + box-shadow: rgba(0, 0, 0, 0.05) 0 6px 24px 0, rgba(0, 0, 0, 0.08) 0 0 0 1px; + min-height: 800px; +} + +.card { + width: 100%; +} + +body { + padding-top: 90px; +} + +div.body { + margin: auto; + width: 50%; + padding: 10px; +} + +img.showcase { + width: 80%; +} + +@media screen and (max-width: 700px) { + main { + width: 100%; + } + div.body { + width: 100%; + } + +} diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..a4883f2 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["src"] +}