diff --git a/i18n/en/code.json b/i18n/en/code.json index 1465e28..46fcca6 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -224,14 +224,20 @@ "pages.main.subtitle": { "message": "Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server" }, - "components.homepage_features.1": { - "message": "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." + "components.homepage_features.1.line1": { + "message": "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." }, - "components.homepage_features.features.2": { + "components.homepage_features.1.line2": { + "message": "The ultimate goal of this project is to allow Minecraft: Bedrock Edition users to join Minecraft: Java Edition servers as seamlessly as possible." + }, + "components.homepage_features.2": { "message": "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." }, - "components.homepage_features.features.3": { - "message": "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! 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!" + "components.homepage_features.3.line1": { + "message": "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!" + }, + "components.homepage_features.3.line2": { + "message": "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!" }, "pages.download.title": { "message": "Download" diff --git a/src/components/HomepageFeature/index.tsx b/src/components/HomepageFeature/index.tsx new file mode 100644 index 0000000..562aeaf --- /dev/null +++ b/src/components/HomepageFeature/index.tsx @@ -0,0 +1,25 @@ +import clsx from 'clsx'; +import { PropsWithChildren } from 'react'; +import styles from "./styles.module.scss"; + +interface HomepageFeatureProps { + title: string; + image?: string; + flipped?: boolean; +} + +export const HomepageFeature: React.FC> = ({ title, image, flipped, children }) => { + return ( +
+
+

{title}

+ {children} +
+ {image && ( +
+ {title} +
+ )} +
+ ); +} \ No newline at end of file diff --git a/src/components/HomepageFeature/styles.module.scss b/src/components/HomepageFeature/styles.module.scss new file mode 100644 index 0000000..5fb2ac9 --- /dev/null +++ b/src/components/HomepageFeature/styles.module.scss @@ -0,0 +1,40 @@ +.feature { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; +} + +.feature.flipped > *:first-child { + order: 2; +} + +.feature.flipped > *:last-child { + order: 1; +} + +.content { + margin-top: auto; + margin-bottom: auto; +} + +.title { + font-size: 30px; +} + +@media (max-width: 768px) { + .feature { + grid-template-columns: 1fr; + } + + .feature > *:first-child { + order: 2; + } + + .feature > *:last-child { + order: 1; + } + + .title { + margin-top: 15px; + } +} \ No newline at end of file diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx deleted file mode 100644 index 9158c15..0000000 --- a/src/components/HomepageFeatures/index.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import clsx from 'clsx'; -import Heading from '@theme/Heading'; -import styles from './styles.module.scss'; -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 Translate from '@docusaurus/Translate'; - -type FeatureItem = { - title: string; - image?: string; - description: JSX.Element; - index?: number; -}; - -const FeatureList: FeatureItem[] = [ - { - title: 'What is Geyser?', - image: Crossplatform2Img, - description: ( - <> - 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. - - ), - }, - { - title: 'How does it work?', - image: Crossplatform1Img, - description: ( - <> - 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. - - ), - }, - { - title: 'Join from anywhere', - image: Crossplatform0Img, - description: ( - <> - 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! 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! - - ), - }, -]; - -function Feature({ title, image, description, index }: FeatureItem) { - const Content = () => ( -
- {title} -

{description}

-
- ); - const Image = () => ( - image && -
- {title} -
- ); - return ( -
- {index % 2 === 0 ? <> : <>} -
- ); -} - -export default function HomepageFeatures(): JSX.Element { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ); -} \ No newline at end of file diff --git a/src/components/HomepageFeatures/styles.module.scss b/src/components/HomepageFeatures/styles.module.scss deleted file mode 100644 index 684bc3c..0000000 --- a/src/components/HomepageFeatures/styles.module.scss +++ /dev/null @@ -1,11 +0,0 @@ -.features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; -} - -.featureSvg { - height: 200px; - width: 200px; -} \ No newline at end of file diff --git a/src/pages/index.module.scss b/src/pages/index.module.scss index c25d19b..b735253 100644 --- a/src/pages/index.module.scss +++ b/src/pages/index.module.scss @@ -66,4 +66,11 @@ display: flex; align-items: center; justify-content: center; +} + +.features { + padding: 50px 0; + display: flex; + flex-direction: column; + gap: 40px; } \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 0a3aa3f..4711b95 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -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 (
- Geyser Logo - Geyser Logo + Geyser Logo + Geyser Logo
Revolutionize Your Minecraft Server @@ -33,8 +36,35 @@ export default function Home(): JSX.Element { description="Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server." > +
- +
+ + 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. +
+ + + 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. + + + + 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! +

+ 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! +
+
);