diff --git a/next.config.js b/next.config.js index ef87651..547ce3c 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,6 @@ -const path = require('path'); -const createMDX = require('@next/mdx'); +const path = require('path'); +const createMDX = require('@next/mdx'); +const childProcess = require('child_process'); const isProd = process.env.NODE_ENV === 'production'; @@ -7,10 +8,13 @@ const isProd = process.env.NODE_ENV === 'production'; const nextConfig = { output: 'export', reactStrictMode: true, - pageExtensions: [ 'js', 'jsx', 'md', 'mdx', 'ts', 'tsx' ], sassOptions: { includePaths: [ path.join(__dirname, 'styles') ] }, + generateBuildId: async () => { + return childProcess.execSync('git rev-parse HEAD').toString().trim(); + }, + pageExtensions: [ 'js', 'jsx', 'md', 'mdx', 'ts', 'tsx' ], // assetPrefix: isProd ? 'https://raw.theclashfruit.me/flint/website/pages' : undefined }; diff --git a/pages/index.tsx b/pages/index.tsx index 88ddca0..7b42c5b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,12 +1,9 @@ import styles from '@/styles/Home.module.scss'; +import Button from '@/components/Button'; import Navbar from '@/components/Navbar'; import ThemeChanger from '@/components/ThemeChanger'; -import { - Mountain -} from 'lucide-react'; -import Button from '@/components/Button'; import Head from 'next/head'; export default function Home() { diff --git a/pages/servers.tsx b/pages/servers.tsx new file mode 100644 index 0000000..4b8cef4 --- /dev/null +++ b/pages/servers.tsx @@ -0,0 +1,27 @@ +import styles from '@/styles/Servers.module.scss'; + +import Navbar from '@/components/Navbar'; + +import Head from 'next/head'; + +export default function Servers() { + return ( + <> + + Flint • Find a Server + + + + +
+
+

Find a Server

+ +

+ Flint is a federated git platform, meaning that you can host your own server and connect with other servers. Below is a list of servers that you can join. +

+
+
+ + ); +} \ No newline at end of file diff --git a/styles/Servers.module.scss b/styles/Servers.module.scss new file mode 100644 index 0000000..ef9ca99 --- /dev/null +++ b/styles/Servers.module.scss @@ -0,0 +1 @@ +@import 'variables.module'; \ No newline at end of file