Rules page
Some checks failed
Deploy Website / deploy (push) Failing after 20s
Lint Codebase / lint (push) Failing after 1m9s

This commit is contained in:
blryface 2024-09-03 20:43:14 -03:00
parent 30af0b0cf6
commit 70a173d02b
4 changed files with 97 additions and 53 deletions

15
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

View file

@ -1,6 +1,7 @@
import {
Menu,
Home,
Scale,
AtSign,
Images,
Map,
@ -102,6 +103,13 @@ export default function NavBar({ currentPage }: { currentPage: string }) {
Home
</Link>
</li>
<li>
<Link href={currentPage == 'rules' ? '#' : '/rules'} className={currentPage == 'rules' ? styles.active : ''}>
<Scale />
Rules
</Link>
</li>
<li>
<Link href={currentPage == 'about' ? '#' : '/about'} className={currentPage == 'about' ? styles.active : ''}>
<AtSign />

View file

@ -33,59 +33,6 @@ export default function Home() {
<p>
You can download it from Modrinth: <a href="https://modrinth.com/modpack/crsspack">https://modrinth.com/modpack/crsspack</a>.
</p>
<h2 id="rules">Rules</h2>
<ol>
<li>
The use of modified clients that give an unfair advantage to players, such as hacked clients, is not permitted.
<ul>
<li>
You are not allowed to use them even for their legitimate features, such as a fullbright option.
</li>
<li>
If admins suspect you are hacking you will be immediately banned.
</li>
</ul>
</li>
<li>
Do not modify or destroy (grief) other player&apos;s constructions without their consent, or steal any of their items.
<ul>
<li>
You are allowed to visit any build, as long as you don&apos;t take anything, and if you do you pay them back.
</li>
<li>
You should ask permission in the discord or the in-game chat before modifying builds.
</li>
</ul>
</li>
<li>
Follow the laws of the nations you are in to avoid issues with other players and making the server unfun to play.
<ul>
<li>
If you feel the laws are too vague, feel free to ask the people in charge of them what they meanr with something, and feel free to contribute to them. Complaining that they don&apos;t make sense won&apos;t get you anywhere.
</li>
<li>
Breaking laws isn&apos;t bannable, the nation you are in will take measures and punish you for your actions as they see fit.
</li>
</ul>
</li>
<li>
Do not attempt to make nations where the territory is already owned by another nation.
<ul>
<li>
You can make it near the borders of a nation but never inside one, you can&apos;t just take existing territory as your own.
</li>
<li>
Other nations are free to claim more territory whenever they feel like it, as long as it doesnt take other nations&apos; territory with it.
</li>
</ul>
</li>
</ol>
</PageContent>
<Footer />

74
pages/rules.tsx Normal file
View file

@ -0,0 +1,74 @@
import AdBanner from '@/components/AdBanner';
import Footer from '@/components/Footer';
import Meta from '@/components/Meta';
import NavBar from '@/components/NavBar';
import PageContent from '@/components/PageContent';
export default function Rules() {
const nations = [ ];
return (
<>
<Meta page={{ title: 'Rules' }} />
<NavBar currentPage="rules" />
<PageContent>
<h1 id="rules">Rules</h1>
<ol>
<li>
The use of modified clients that give an unfair advantage to players, such as hacked clients, is not permitted.
<ul>
<li>
You are not allowed to use them even for their legitimate features, such as a "fullbright" option.
</li>
<li>
If admins suspect you are hacking you will be immediately banned.
</li>
</ul>
</li>
<li>
Do not modify or destroy (grief) other player&apos;s constructions without their consent, or steal any of their items.
<ul>
<li>
You are allowed to visit any build, as long as you don&apos;t take anything, and if you do you pay them back.
</li>
<li>
You should ask permission in the discord or the in-game chat before modifying builds.
</li>
</ul>
</li>
<li>
Follow the laws of the nations you are in to avoid issues with other players and making the server not fun to play.
<ul>
<li>
If you feel the laws are too vague, feel free to ask the people in charge of them what they mean with something, and feel free to contribute to them. Complaining that they don&apos;t make sense won&apos;t get you anywhere.
</li>
<li>
Breaking laws won&apos;t necessarily get you banned, the nation you are in will take measures and punish you for your actions as they see fit.
</li>
</ul>
</li>
<li>
Do not attempt to make nations where the territory is already owned by another nation.
<ul>
<li>
You can make it near the borders of a nation but never inside one, you can&apos;t just take existing territory as your own.
</li>
<li>
Other nations are free to claim more territory whenever they feel like it, as long as it doesn't take other nations&apos; territory with it.
</li>
</ul>
</li>
</ol>
</PageContent>
<Footer />
</>
);
}