From ebaa56401efd9b14ecef922db8c2f6eac732a4d6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 21 Feb 2025 17:38:43 -0500 Subject: Initial commit --- .gitignore | 24 +++++++++++++++ .vscode/extensions.json | 4 +++ .vscode/launch.json | 11 +++++++ README.md | 48 +++++++++++++++++++++++++++++ astro.config.mjs | 5 +++ bun.lockb | Bin 0 -> 143302 bytes package.json | 14 +++++++++ public/favicon.svg | 9 ++++++ src/assets/astro.svg | 1 + src/assets/background.svg | 1 + src/components/sites.json | 77 ++++++++++++++++++++++++++++++++++++++++++++++ src/layouts/Layout.astro | 26 ++++++++++++++++ src/pages/index.astro | 56 +++++++++++++++++++++++++++++++++ tsconfig.json | 5 +++ 14 files changed, 281 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 README.md create mode 100644 astro.config.mjs create mode 100755 bun.lockb create mode 100644 package.json create mode 100644 public/favicon.svg create mode 100644 src/assets/astro.svg create mode 100644 src/assets/background.svg create mode 100644 src/components/sites.json create mode 100644 src/layouts/Layout.astro create mode 100644 src/pages/index.astro create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..016b59e --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# 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 + +# jetbrains setting folder +.idea/ 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/README.md b/README.md new file mode 100644 index 0000000..ff19a3e --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +# 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/ +│ ├── layouts/ +│ │ └── Layout.astro +│ └── pages/ +│ └── index.astro +└── package.json +``` + +To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/). + +## 🧞 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.mjs b/astro.config.mjs new file mode 100644 index 0000000..e762ba5 --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,5 @@ +// @ts-check +import { defineConfig } from 'astro/config'; + +// https://astro.build/config +export default defineConfig({}); diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..9beb96a Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..59152cc --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "bnbmc-website", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "astro": "^5.3.0" + } +} \ No newline at end of file diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..f157bd1 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,9 @@ + + + + diff --git a/src/assets/astro.svg b/src/assets/astro.svg new file mode 100644 index 0000000..8cf8fb0 --- /dev/null +++ b/src/assets/astro.svg @@ -0,0 +1 @@ + diff --git a/src/assets/background.svg b/src/assets/background.svg new file mode 100644 index 0000000..4b2be0a --- /dev/null +++ b/src/assets/background.svg @@ -0,0 +1 @@ + diff --git a/src/components/sites.json b/src/components/sites.json new file mode 100644 index 0000000..fa72f5e --- /dev/null +++ b/src/components/sites.json @@ -0,0 +1,77 @@ +[ + { + "name": "bnbmc Wiki", + "website": "https://wiki.bnbmc.net", + "type": "wiki" + }, + { + "name": "AirCS Race", + "website": "https://aircs.racing", + "type": "transportation" + }, + { + "name": "SQTR", + "website": "https://sqtr.aircs.racing", + "type": "transportation" + }, + { + "name": "FrivoloCo", + "website": "https://frivoloco.aircs.racing", + "type": "business" + }, + { + "name": "MinePot", + "website": "https://minepot.aircs.racing", + "type": "business" + }, + { + "name": "Waveform Music Solutions", + "website": "https://waveformmusic.aircs.racing", + "type": "business" + }, + { + "name": "TAY", + "website": "https://tay.aircs.racing", + "type": "country" + }, + { + "name": "KR", + "website": "https://kr.aircs.racing", + "type": "country" + }, + { + "name": "Anatoli", + "website": "https://anatoli.aircs.racing", + "type": "country" + }, + { + "name": "Open Republic", + "website": "https://openrepublic.aircs.racing", + "type": "country" + }, + { + "name": "Alure Regions", + "website": "https://alure.bnbmc.net", + "type": "country" + }, + { + "name": "Aura Regions", + "website": "https://auraregions.aircs.racing", + "type": "country" + }, + { + "name": "Mojave", + "website": "https://mojave.aircs.racing", + "type": "country" + }, + { + "name": "Yavno Republic", + "website": "https://yavno.aircs.racing", + "type": "country" + }, + { + "name": "Solstan Federation", + "website": "https://solstice.bnbmc.net", + "type": "country" + } +] diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..e51b083 --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,26 @@ + + + + + + + + bits & Bytes Minecraft + + + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..e47d9a1 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,56 @@ +--- +import Layout from '../layouts/Layout.astro'; +import sites from '../components/sites.json'; + +// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build +// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh. +--- + + +
+

bits & Bytes Minecraft

+

IP: mc.bnbmc.net

+ Must be an active member of the bits & Bytes Discord to join. +
+ {sites.map((site) => ( + + ))} +
+
+
+ + diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..8bf91d3 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "astro/tsconfigs/strict", + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"] +} -- cgit v1.2.3