Change homepage layout (#112)

* Change homepage layout

* Fix translations
This commit is contained in:
Luke authored and GitHub committed 2025-12-27 13:53:48 +01:00
1 parent 26e00da63f
commit 47463777c6
7 files changed
+117 -98

No files matched your search

+7
View File
@@ -66,4 +66,11 @@
display: flex;
align-items: center;
justify-content: center;
}
.features {
padding: 50px 0;
display: flex;
flex-direction: column;
gap: 40px;
}
+34 -4
View File
@@ -1,18 +1,21 @@
import clsx from 'clsx';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Crossplatform0Img from '@site/static/img/site/crossplatform_0.png';
import Crossplatform1Img from '@site/static/img/site/crossplatform_1.png';
import Crossplatform2Img from '@site/static/img/site/crossplatform_2.png';
import Heading from '@theme/Heading';
import HeroImage from '@site/static/img/site/geyser.png';
import styles from './index.module.scss';
import Translate from '@docusaurus/Translate';
import { HomepageFeature } from '../components/HomepageFeature';
function HomepageHeader() {
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className={styles.heroContent}>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImage}/>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImageBackgroundBlur}/>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImage} />
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImageBackgroundBlur} />
<div className={styles.textSection}>
<Heading as="h1" className="hero__title">
<Translate id='pages.main.title'>Revolutionize Your Minecraft Server</Translate>
@@ -33,8 +36,35 @@ export default function Home(): JSX.Element {
description="Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server."
>
<HomepageHeader />
<main>
<HomepageFeatures />
<div className={clsx(styles.features, "container")}>
<HomepageFeature
title="What is Geyser?"
image={Crossplatform2Img}
>
<Translate id="components.homepage_features.1.line1">Geyser is a program that allows Minecraft: Bedrock Edition clients to join Minecraft: Java Edition servers, allowing for true crossplay between both editions of the game.</Translate>
<br /><br />
<Translate id="components.homepage_features.1.line2">The ultimate goal of this project is to allow Minecraft: Bedrock Edition users to join Minecraft: Java Edition servers as seamlessly as possible.</Translate>
</HomepageFeature>
<HomepageFeature
title="How does it work?"
image={Crossplatform1Img}
flipped
>
<Translate id="components.homepage_features.2">Geyser acts as a translator which sits between the Bedrock client and the Java server. It takes data from the Bedrock client and translates it into a format the Java server understands and vice versa. Geyser works with any modern Minecraft version and can be installed either as a plugin or ran as a standalone program.</Translate>
</HomepageFeature>
<HomepageFeature
title="Join from anywhere"
image={Crossplatform0Img}
>
<Translate id="components.homepage_features.3.line1">Geyser can be joined from Bedrock clients on Windows 10/11, iOS, Android, and even consoles. Geyser works with a wide array of hosting providers, but can also be used as its own standalone proxy to join any Minecraft server!</Translate>
<br /><br />
<Translate id="components.homepage_features.3.line2">If you are a server owner, you can install our Floodgate plugin which allows Xbox Live authenticated Bedrock users to join without a Java Edition account!</Translate>
</HomepageFeature>
</div>
</main>
</Layout>
);