Files
GeyserWebsite/src/components/HomepageFeatures/index.tsx
T

77 lines
2.8 KiB
TypeScript
Raw Normal View History

2023-11-07 19:40:55 -06:00
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
2024-02-25 00:53:46 -08:00
import Crossplatform0Img from '@site/static/img/site/crossplatform_0.png';
import Crossplatform1Img from '@site/static/img/site/crossplatform_1.png';
2023-11-07 19:40:55 -06:00
type FeatureItem = {
2024-01-25 22:38:57 -08:00
title: string;
2024-02-25 00:53:46 -08:00
image?: string;
2024-01-25 22:38:57 -08:00
description: JSX.Element;
2024-02-25 00:53:46 -08:00
index?: number;
2023-11-07 19:40:55 -06:00
};
const FeatureList: FeatureItem[] = [
2024-01-25 22:38:57 -08:00
{
2024-02-25 00:53:46 -08:00
title: 'What is Geyser?',
image: Crossplatform0Img,
2024-01-25 22:38:57 -08:00
description: (
<>
2024-02-25 00:53:46 -08:00
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. The ultimate goal of this project is to allow Minecraft: Bedrock Edition users to join Minecraft: Java Edition servers as seamlessly as possible.
2024-01-25 22:38:57 -08:00
</>
),
},
{
2024-02-25 00:53:46 -08:00
title: 'How does it work?',
image: Crossplatform1Img,
2024-01-25 22:38:57 -08:00
description: (
<>
2024-02-25 00:53:46 -08:00
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.
2024-01-25 22:38:57 -08:00
</>
),
},
{
2024-02-25 00:53:46 -08:00
title: 'Join from anywhere',
2024-01-25 22:38:57 -08:00
description: (
<>
2024-02-25 00:53:46 -08:00
Geyser can be joined from Bedrock clients on Windows 10/11, iOS, Android, and even consoles (more info here). Geyser works with a wide array of hosting providers, but can also be used as its own standalone proxy to join any Minecraft server!
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!
2024-01-25 22:38:57 -08:00
</>
),
},
2023-11-07 19:40:55 -06:00
];
2024-02-25 00:53:46 -08:00
function Feature({ title, image, description, index }: FeatureItem) {
const Content = () => (
<div className="text--left padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
);
const Image = () => (
image &&
<div className="column text--left">
<img src={image} alt={title} />
</div>
);
2024-01-25 22:38:57 -08:00
return (
2024-02-25 00:53:46 -08:00
<div className={clsx('column')}>
{index % 2 === 0 ? <><Image /><Content /></> : <><Content /><Image /></>}
2024-01-25 22:38:57 -08:00
</div>
);
2023-11-07 19:40:55 -06:00
}
export default function HomepageFeatures(): JSX.Element {
2024-01-25 22:38:57 -08:00
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
2024-02-25 00:53:46 -08:00
<Feature key={idx} {...props} index={idx} />
2024-01-25 22:38:57 -08:00
))}
</div>
</div>
</section>
);
2024-02-25 00:53:46 -08:00
}