2023-11-07 19:40:55 -06:00
|
|
|
import clsx from 'clsx';
|
|
|
|
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
|
|
|
import Layout from '@theme/Layout';
|
|
|
|
|
import HomepageFeatures from '@site/src/components/HomepageFeatures';
|
|
|
|
|
import Heading from '@theme/Heading';
|
2024-02-25 00:53:46 -08:00
|
|
|
import HeroBackground from '@site/static/img/site/split-background.png';
|
|
|
|
|
import HeroImage from '@site/static/img/site/geyser.png';
|
2023-11-07 19:40:55 -06:00
|
|
|
|
|
|
|
|
import styles from './index.module.css';
|
|
|
|
|
|
|
|
|
|
function HomepageHeader() {
|
2024-01-25 22:38:57 -08:00
|
|
|
const { siteConfig } = useDocusaurusContext();
|
|
|
|
|
return (
|
2024-02-25 00:53:46 -08:00
|
|
|
<header className={clsx('hero hero--primary', styles.heroBanner)} style={{backgroundImage: `url(${HeroBackground})`}}>
|
2024-01-25 22:38:57 -08:00
|
|
|
<div className="container">
|
2024-02-25 00:53:46 -08:00
|
|
|
<img src={HeroImage} alt="Geyser Logo" className="hero__image"/>
|
|
|
|
|
<div className={styles.textSection}>
|
|
|
|
|
<Heading as="h1" className="hero__title">
|
|
|
|
|
{siteConfig.tagline}
|
|
|
|
|
</Heading>
|
|
|
|
|
<p className="hero__subtitle">
|
|
|
|
|
Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server.
|
|
|
|
|
</p>
|
2024-01-25 22:38:57 -08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
);
|
2023-11-07 19:40:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function Home(): JSX.Element {
|
2024-01-25 22:38:57 -08:00
|
|
|
const { siteConfig } = useDocusaurusContext();
|
|
|
|
|
return (
|
|
|
|
|
<Layout
|
|
|
|
|
title={`Hello from ${siteConfig.title}`}
|
|
|
|
|
description="Description will go into a meta tag in <head />">
|
|
|
|
|
<HomepageHeader />
|
|
|
|
|
<main>
|
|
|
|
|
<HomepageFeatures />
|
|
|
|
|
</main>
|
|
|
|
|
</Layout>
|
|
|
|
|
);
|
2023-11-07 19:40:55 -06:00
|
|
|
}
|