Landing page and navigation bar

This commit is contained in:
2024-07-02 01:26:51 +02:00
parent 6f8fed1a36
commit 1432c93d32
20 changed files with 16241 additions and 2 deletions

View File

@ -0,0 +1,79 @@
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
const FeatureList = [
{
title: 'No plot claiming!',
Img: require('@site/static/img/noclaiming.jpg').default,
description: (
<>
Tired of random players griefing
your beautiful castle but don't want to be restricted to a claimed plot?
We are a <span style={{fontWeight:"bold"}}> whitelisted community </span> and trust each other.
Therefore, we <span style={{fontWeight:"bold"}}> don't need any plot claiming system </span> and
you can build whereever you want, even Spawn itself! But for your ease of mind, our
plugins <span style={{fontWeight:"bold"}}> can rollback ANY malicious interaction
in the world</span>.
We never had any game-breaking incident that
our experienced admins couldn't resolve in over 3 years running the server!
</>
),
},
{
title: 'Small and friendly community!',
Img: require('@site/static/img/logo.png').default,
description: (
<>
We are a <span style={{fontWeight:"bold"}}> small community of friends</span> that enjoy
building epic based and creative Redstone contraptions.
<span style={{fontWeight:"bold"}}> Some of us play over 3 years together </span>
on this server and we've become good friends through joint adventures and building
projects. We're happy to invite new players to the community too. If you're
<span style={{fontWeight:"bold"}}> above age 15 </span> and
reasonably <span style={{fontWeight:"bold"}}> mature </span> feel free to apply on our Discord! See you soon!
</>
),
},
{
title: 'Relaxed building, no PvP!',
Img: require('@site/static/img/nopvp.jpg').default,
description: (
<>
We're <span style={{fontWeight:"bold"}}> here to build amazing bases together and prefer a rather relaxed
playing experience</span>. But if you need to flex some muscles with your friends you can do
that of course. However, if you want to continue with your base uninteruptedly,
you <span style={{fontWeight:"bold"}}> can toggle PvP off </span> with just a
single command!
</>
),
},
];
function Feature({Img, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<img src={Img} className={styles.featureImg} alt={title} />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}

View File

@ -0,0 +1,11 @@
.features {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}
.featureSvg {
height: 200px;
width: 200px;
}

30
src/css/custom.css Normal file
View File

@ -0,0 +1,30 @@
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #84262B;
--ifm-color-primary-dark: #6b1d21;
--ifm-color-primary-darker: #631a1e;
--ifm-color-primary-darkest: #421113;
--ifm-color-primary-light: #eba07f;
--ifm-color-primary-lighter: #e9b7a2;
--ifm-color-primary-lightest: #EDD1C5;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #ce3b42;
--ifm-color-primary-dark: #bb353b;
--ifm-color-primary-darker: #9b2a2f;
--ifm-color-primary-darkest: #742024;
--ifm-color-primary-light: #eba07f;
--ifm-color-primary-lighter: #e9b7a2;
--ifm-color-primary-lightest: #EDD1C5;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

48
src/pages/index.js Normal file
View File

@ -0,0 +1,48 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Heading from '@theme/Heading';
import styles from './index.module.css';
function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/documentation/about">
About the server
</Link> &emsp;&emsp;
<Link
className="button button--secondary button--lg"
to="https://discord.gg/dTWRHbkfvV">
Join the community 📩
</Link>
</div>
</div>
</header>
);
}
export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`${siteConfig.title}`}
>
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
}

View File

@ -0,0 +1,23 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/
.heroBanner {
padding: 4rem 0;
text-align: center;
position: relative;
overflow: hidden;
}
@media screen and (max-width: 996px) {
.heroBanner {
padding: 2rem;
}
}
.buttons {
display: flex;
align-items: center;
justify-content: center;
}