diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..515b3fe --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# 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 + +# Languges - This does not need to be pushed +src/pages/en +src/pages/fr +src/pages/es +src/pages/po +src/pages/ru +src/pages/ch +src/pages/jp \ No newline at end of file diff --git a/README.md b/README.md index 23a4559..832cde8 100644 --- a/README.md +++ b/README.md @@ -1 +1,55 @@ -# Fluxnodes +# FluxNodes +![Landing](https://img.sudovanilla.com/4aZdSVi.png) + +> The image shown is a concept + +## Development +### Requirements + - [Bun](https://bun.sh/) + - NodeJS 20 or later + +### Install Packages +Installing packages is required to start run and to build the website, run: +``` +bun install +``` + +### Run +To start running the website on a port, run: +``` +bun dev +``` + +## Production +### Build Static +To build the website in static mode, run: +``` +bun build +``` + +### Server Side Rendering +To run the website in server side rendering mode, run: +``` +bun start +``` + +### Docker +This website is Docker ready! + +Build the Docker image, run: +``` +docker build -t fluxnodes.net . +``` + +Then, to run: +``` +docker run -d -p 2000:2000 fluxnodes.net +``` + +or use the already provided Docker Compose file: + +``` +docker compose up -d +``` + +> `sudo` might be required on some systems to run Docker commands. \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs new file mode 100644 index 0000000..084bce8 --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,25 @@ +import { defineConfig } from 'astro/config' +// import node from '@astrojs/node' +import astroFontPicker from 'astro-font-picker' +import vue from '@astrojs/vue' +import astroI18next from "astro-i18next" +import Compress from "astro-compress" + +export default defineConfig({ + site: 'https://fluxnodes.net', + trailingSlash: "ignore", + output: 'server', + // adapter: node({ + // mode: 'standalone', + // }), + integrations: [ + astroFontPicker(), + astroI18next(), + Compress(), + vue() + ], + server: { + port: 2000, + host: true + } +}) \ No newline at end of file diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..b7c86b6 Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..44cb386 --- /dev/null +++ b/package.json @@ -0,0 +1,30 @@ +{ + "name": "fluxnodes.net", + "version": "2024.03.13", + "description": "Homepage and help center of FluxNodes LLC.", + "repository": "https://github.com/FluxNodesLLC/fluxnodes.net", + "scripts": { + "start": "astro dev ", + "dev": "astro dev", + "build": "yarn run translate && astro build", + "translate": "astro-i18next generate", + }, + "dependencies": { + "@astrojs/mdx": "^2.1.0", + "@astrojs/node": "^8.1.0", + "@astrojs/partytown": "^2.0.4", + "@astrojs/vue": "^4.0.8", + "@iconoir/vue": "^7.3.0", + "@shoelace-style/shoelace": "^2.13.1", + "astro": "^4.2.6", + "astro-compress": "^2.2.8", + "astro-font-picker": "^0.2.1", + "astro-i18next": "^1.0.0-beta.21", + "astro-useragent": "^4.0.1", + "sass": "^1.70.0", + "shikiji-core": "^0.10.2" + }, + "devDependencies": { + "i18next-http-backend": "^2.4.2" + } +} 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/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro new file mode 100644 index 0000000..79d3b24 --- /dev/null +++ b/src/layouts/Default.astro @@ -0,0 +1,28 @@ +--- +// Properties +const { Title, Description, Selected } = Astro.props + + +// Components +import Head from '@components/global/Head.astro' +import Header from '@components/global/Header.astro' +import Footer from '@components/global/Footer.astro' + +// Styles +import '@styles/index.scss' +import '@styles/Header.scss' + +// Other Stuff +import i18next, { t } from "i18next" +--- + + + +
+ +
+ +
+
+ + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..2b78358 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,8 @@ +--- +import { changeLanguage } from "i18next"; +import Layout from "@layouts/Default.astro"; + +changeLanguage("en"); +--- + + \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..17a759a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@assets/*": ["src/assets/*"], + "@components/*": ["src/components/*"], + "@layouts/*": ["src/layouts/*"], + "@styles/*": ["src/styles/*"] + } + } +} \ No newline at end of file