Files
GeyserWebsite/src/pages/index.tsx
T

43 lines
1.5 KiB
TypeScript
Raw Normal View History

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 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();
2024-03-02 23:32:57 -08:00
2024-01-25 22:38:57 -08:00
return (
2024-03-03 10:21:26 -08:00
<header className={clsx('hero hero--primary', styles.heroBanner)}>
2024-03-02 23:32:57 -08:00
<div className={styles.heroContent}>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImage}/>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImageBackgroundBlur}/>
2024-02-25 00:53:46 -08:00
<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
}