Add rest of stuff
This commit is contained in:
parent
0baa63eb45
commit
d237061288
10 changed files with 197 additions and 1 deletions
30
.gitignore
vendored
Normal file
30
.gitignore
vendored
Normal file
|
@ -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
|
56
README.md
56
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.
|
25
astro.config.mjs
Normal file
25
astro.config.mjs
Normal file
|
@ -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
|
||||
}
|
||||
})
|
BIN
bun.lockb
Executable file
BIN
bun.lockb
Executable file
Binary file not shown.
30
package.json
Normal file
30
package.json
Normal file
|
@ -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"
|
||||
}
|
||||
}
|
9
public/favicon.svg
Normal file
9
public/favicon.svg
Normal file
|
@ -0,0 +1,9 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
|
||||
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
|
||||
<style>
|
||||
path { fill: #000; }
|
||||
@media (prefers-color-scheme: dark) {
|
||||
path { fill: #FFF; }
|
||||
}
|
||||
</style>
|
||||
</svg>
|
After Width: | Height: | Size: 749 B |
1
src/env.d.ts
vendored
Normal file
1
src/env.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/// <reference types="astro/client" />
|
28
src/layouts/Default.astro
Normal file
28
src/layouts/Default.astro
Normal file
|
@ -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"
|
||||
---
|
||||
|
||||
<html lang={i18next.language}>
|
||||
<Head Title={Title} Description={Description}/>
|
||||
<Header Selected={Selected}/>
|
||||
<body>
|
||||
<div class="content">
|
||||
<slot/>
|
||||
<Footer/>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
8
src/pages/index.astro
Normal file
8
src/pages/index.astro
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
import { changeLanguage } from "i18next";
|
||||
import Layout from "@layouts/Default.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
---
|
||||
|
||||
<Layout Title="FluxNodess" Selected="Home"></Layout>
|
11
tsconfig.json
Normal file
11
tsconfig.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@assets/*": ["src/assets/*"],
|
||||
"@components/*": ["src/components/*"],
|
||||
"@layouts/*": ["src/layouts/*"],
|
||||
"@styles/*": ["src/styles/*"]
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue