commit 740a96d30a113c4d570650c5b1e9664c860b171e Author: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun Jan 21 13:28:48 2024 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d4c0aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# build output +dist/ + +# generated types +.astro/ + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store diff --git a/.ncurc.yml b/.ncurc.yml new file mode 100644 index 0000000..e5619e5 --- /dev/null +++ b/.ncurc.yml @@ -0,0 +1,4 @@ +upgrade: true +interactive: true +format: "group" +reject: diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..22a1505 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,4 @@ +{ + "recommendations": ["astro-build.astro-vscode"], + "unwantedRecommendations": [] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..d642209 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "command": "./node_modules/.bin/astro dev", + "name": "Development server", + "request": "launch", + "type": "node-terminal" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9a4c2b9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "editor.rulers": [100], + "editor.tabSize": 2, + "typescript.preferences.importModuleSpecifier": "non-relative" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..1db3fb3 --- /dev/null +++ b/README.md @@ -0,0 +1,54 @@ +# Astro Starter Kit: Basics + +```sh +npm create astro@latest -- --template basics +``` + +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) +[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics) +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json) + +> πŸ§‘β€πŸš€ **Seasoned astronaut?** Delete this file. Have fun! + +![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554) + +## πŸš€ Project Structure + +Inside of your Astro project, you'll see the following folders and files: + +```text +/ +β”œβ”€β”€ public/ +β”‚ └── favicon.svg +β”œβ”€β”€ src/ +β”‚ β”œβ”€β”€ components/ +β”‚ β”‚ └── Card.astro +β”‚ β”œβ”€β”€ layouts/ +β”‚ β”‚ └── Layout.astro +β”‚ └── pages/ +β”‚ └── index.astro +└── package.json +``` + +Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. + +There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. + +Any static assets, like images, can be placed in the `public/` directory. + +## 🧞 Commands + +All commands are run from the root of the project, from a terminal: + +| Command | Action | +| :------------------------ | :----------------------------------------------- | +| `npm install` | Installs dependencies | +| `npm run dev` | Starts local dev server at `localhost:4321` | +| `npm run build` | Build your production site to `./dist/` | +| `npm run preview` | Preview your build locally, before deploying | +| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | +| `npm run astro -- --help` | Get help using the Astro CLI | + +## πŸ‘€ Want to learn more? + +Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). diff --git a/astro.config.ts b/astro.config.ts new file mode 100644 index 0000000..557a970 --- /dev/null +++ b/astro.config.ts @@ -0,0 +1,26 @@ +import icon from "astro-icon"; +import { defineConfig } from "astro/config"; +import node from "@astrojs/node"; + +// https://astro.build/config +export default defineConfig({ + output: "server", + srcDir: "./src", + publicDir: "./public", + outDir: "./dist", + adapter: node({ + mode: "standalone", + }), + integrations: [ + icon({ + include: { + "material-symbols": ["*"], // Loads entire Material Design Icon set + }, + }), + ], + + server: { + port: 12499, + host: true, + }, +}); diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..b6060b3 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..99ed451 --- /dev/null +++ b/package.json @@ -0,0 +1,30 @@ +{ + "name": "v3.accords-library.com", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "start": "astro dev", + "build": "astro check && astro build", + "preview": "astro preview", + "astro": "astro", + "upgrade": "ncu" + }, + "dependencies": { + "@astrojs/check": "^0.3.1", + "@astrojs/node": "^6.0.3", + "astro": "^3.5.2", + "astro-icon": "next", + "ua-parser-js": "^1.0.37" + }, + "devDependencies": { + "@iconify-json/material-symbols": "^1.1.62", + "@types/ua-parser-js": "^0.7.39", + "autoprefixer": "^10.4.16", + "bun-types": "^1.0.11", + "postcss-preset-env": "^9.3.0", + "ts-node": "^10.9.1", + "typescript": "^5.2.2", + "npm-check-updates": "^16.14.6" + } +} diff --git a/postcss.config.cjs b/postcss.config.cjs new file mode 100644 index 0000000..7d7fb52 --- /dev/null +++ b/postcss.config.cjs @@ -0,0 +1,11 @@ +const autoprefixer = require("autoprefixer"); +const postcssPresetEnv = require("postcss-preset-env"); + +module.exports = { + plugins: [ + autoprefixer, + postcssPresetEnv({ + browsers: ["> 0.2% and not dead"], + }), + ], +}; diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..424e9cf Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/img/bg-home.webp b/public/img/bg-home.webp new file mode 100644 index 0000000..7391d19 Binary files /dev/null and b/public/img/bg-home.webp differ diff --git a/public/img/categories/dark/404gamereset.png b/public/img/categories/dark/404gamereset.png new file mode 100644 index 0000000..1629f50 Binary files /dev/null and b/public/img/categories/dark/404gamereset.png differ diff --git a/public/img/categories/dark/dod.png b/public/img/categories/dark/dod.png new file mode 100644 index 0000000..43243cf Binary files /dev/null and b/public/img/categories/dark/dod.png differ diff --git a/public/img/categories/dark/dod1.3.png b/public/img/categories/dark/dod1.3.png new file mode 100644 index 0000000..16b2fb4 Binary files /dev/null and b/public/img/categories/dark/dod1.3.png differ diff --git a/public/img/categories/dark/dod2.png b/public/img/categories/dark/dod2.png new file mode 100644 index 0000000..5142a85 Binary files /dev/null and b/public/img/categories/dark/dod2.png differ diff --git a/public/img/categories/dark/dod3.png b/public/img/categories/dark/dod3.png new file mode 100644 index 0000000..86b2b43 Binary files /dev/null and b/public/img/categories/dark/dod3.png differ diff --git a/public/img/categories/dark/god-app.png b/public/img/categories/dark/god-app.png new file mode 100644 index 0000000..1be5978 Binary files /dev/null and b/public/img/categories/dark/god-app.png differ diff --git a/public/img/categories/dark/na.png b/public/img/categories/dark/na.png new file mode 100644 index 0000000..78a1c41 Binary files /dev/null and b/public/img/categories/dark/na.png differ diff --git a/public/img/categories/dark/nier-rein.png b/public/img/categories/dark/nier-rein.png new file mode 100644 index 0000000..14905cd Binary files /dev/null and b/public/img/categories/dark/nier-rein.png differ diff --git a/public/img/categories/dark/nier.png b/public/img/categories/dark/nier.png new file mode 100644 index 0000000..0d9b669 Binary files /dev/null and b/public/img/categories/dark/nier.png differ diff --git a/public/img/categories/dark/sino.png b/public/img/categories/dark/sino.png new file mode 100644 index 0000000..4c6314f Binary files /dev/null and b/public/img/categories/dark/sino.png differ diff --git a/public/img/categories/dark/voc.png b/public/img/categories/dark/voc.png new file mode 100644 index 0000000..9189d48 Binary files /dev/null and b/public/img/categories/dark/voc.png differ diff --git a/public/img/categories/dark/yorha-boys.png b/public/img/categories/dark/yorha-boys.png new file mode 100644 index 0000000..d63a388 Binary files /dev/null and b/public/img/categories/dark/yorha-boys.png differ diff --git a/public/img/categories/dark/yorha.png b/public/img/categories/dark/yorha.png new file mode 100644 index 0000000..809ecb3 Binary files /dev/null and b/public/img/categories/dark/yorha.png differ diff --git a/public/img/categories/light/404gamereset.png b/public/img/categories/light/404gamereset.png new file mode 100644 index 0000000..eda2b00 Binary files /dev/null and b/public/img/categories/light/404gamereset.png differ diff --git a/public/img/categories/light/dod.png b/public/img/categories/light/dod.png new file mode 100644 index 0000000..bb40368 Binary files /dev/null and b/public/img/categories/light/dod.png differ diff --git a/public/img/categories/light/dod1.3.png b/public/img/categories/light/dod1.3.png new file mode 100644 index 0000000..79d39ac Binary files /dev/null and b/public/img/categories/light/dod1.3.png differ diff --git a/public/img/categories/light/dod2.png b/public/img/categories/light/dod2.png new file mode 100644 index 0000000..5142a85 Binary files /dev/null and b/public/img/categories/light/dod2.png differ diff --git a/public/img/categories/light/dod3.png b/public/img/categories/light/dod3.png new file mode 100644 index 0000000..34757ed Binary files /dev/null and b/public/img/categories/light/dod3.png differ diff --git a/public/img/categories/light/god-app.png b/public/img/categories/light/god-app.png new file mode 100644 index 0000000..1be5978 Binary files /dev/null and b/public/img/categories/light/god-app.png differ diff --git a/public/img/categories/light/na.png b/public/img/categories/light/na.png new file mode 100644 index 0000000..c52fe99 Binary files /dev/null and b/public/img/categories/light/na.png differ diff --git a/public/img/categories/light/nier-rein.png b/public/img/categories/light/nier-rein.png new file mode 100644 index 0000000..f95a183 Binary files /dev/null and b/public/img/categories/light/nier-rein.png differ diff --git a/public/img/categories/light/nier.png b/public/img/categories/light/nier.png new file mode 100644 index 0000000..e5c6186 Binary files /dev/null and b/public/img/categories/light/nier.png differ diff --git a/public/img/categories/light/sino.png b/public/img/categories/light/sino.png new file mode 100644 index 0000000..c738655 Binary files /dev/null and b/public/img/categories/light/sino.png differ diff --git a/public/img/categories/light/voc.png b/public/img/categories/light/voc.png new file mode 100644 index 0000000..48f7cd1 Binary files /dev/null and b/public/img/categories/light/voc.png differ diff --git a/public/img/categories/light/yorha-boys.png b/public/img/categories/light/yorha-boys.png new file mode 100644 index 0000000..0a9e2c3 Binary files /dev/null and b/public/img/categories/light/yorha-boys.png differ diff --git a/public/img/categories/light/yorha.png b/public/img/categories/light/yorha.png new file mode 100644 index 0000000..6d45e75 Binary files /dev/null and b/public/img/categories/light/yorha.png differ diff --git a/public/img/paper-dots-dark.webp b/public/img/paper-dots-dark.webp new file mode 100644 index 0000000..8fbc850 Binary files /dev/null and b/public/img/paper-dots-dark.webp differ diff --git a/public/img/paper-dots.webp b/public/img/paper-dots.webp new file mode 100644 index 0000000..acf3d72 Binary files /dev/null and b/public/img/paper-dots.webp differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..77470cb --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file diff --git a/src/components/AppLayout/AppLayout.astro b/src/components/AppLayout/AppLayout.astro new file mode 100644 index 0000000..de04404 --- /dev/null +++ b/src/components/AppLayout/AppLayout.astro @@ -0,0 +1,96 @@ +--- +import Html from "./components/Html.astro"; +import Topbar from "./components/Topbar.astro"; +import Footer from "./components/Footer.astro"; + +interface Props { + breadcrumb?: { name: string; slug: string }[]; + title?: string; + description?: string; + illustration?: string; +} + +const { + title = "Accord’s Library", + description, + illustration, + breadcrumb = [], +} = Astro.props; +--- + +{ + /* ------------------------------------------- HTML ------------------------------------------- */ +} + + +
+ +
+
+ +

{title}

+
+ +

{description}

+
+
+
+
+
+
+