feat: add servers page
All checks were successful
Deploy Website / build (push) Successful in 1m23s

This commit is contained in:
TheClashFruit 2024-04-21 19:07:06 +02:00
parent 0a977a4dc2
commit 814984ad0e
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
4 changed files with 36 additions and 7 deletions

View file

@ -1,5 +1,6 @@
const path = require('path'); const path = require('path');
const createMDX = require('@next/mdx'); const createMDX = require('@next/mdx');
const childProcess = require('child_process');
const isProd = process.env.NODE_ENV === 'production'; const isProd = process.env.NODE_ENV === 'production';
@ -7,10 +8,13 @@ const isProd = process.env.NODE_ENV === 'production';
const nextConfig = { const nextConfig = {
output: 'export', output: 'export',
reactStrictMode: true, reactStrictMode: true,
pageExtensions: [ 'js', 'jsx', 'md', 'mdx', 'ts', 'tsx' ],
sassOptions: { sassOptions: {
includePaths: [ path.join(__dirname, 'styles') ] 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 // assetPrefix: isProd ? 'https://raw.theclashfruit.me/flint/website/pages' : undefined
}; };

View file

@ -1,12 +1,9 @@
import styles from '@/styles/Home.module.scss'; import styles from '@/styles/Home.module.scss';
import Button from '@/components/Button';
import Navbar from '@/components/Navbar'; import Navbar from '@/components/Navbar';
import ThemeChanger from '@/components/ThemeChanger'; import ThemeChanger from '@/components/ThemeChanger';
import {
Mountain
} from 'lucide-react';
import Button from '@/components/Button';
import Head from 'next/head'; import Head from 'next/head';
export default function Home() { export default function Home() {

27
pages/servers.tsx Normal file
View file

@ -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 (
<>
<Head>
<title>Flint &bull; Find a Server</title>
</Head>
<Navbar currentPage="servers" />
<main className={styles.container}>
<section>
<h2>Find a Server</h2>
<p>
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.
</p>
</section>
</main>
</>
);
}

View file

@ -0,0 +1 @@
@import 'variables.module';