diff --git a/docusaurus.config.ts b/docusaurus.config.ts index b06e8c7..b68ed2f 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic'; const config: Config = { title: 'GeyserMC', - tagline: 'Meowing strictly prohibited', + tagline: 'Revolutionize Your Minecraft Server', favicon: 'img/favicon.ico', // Set the production url of your site here @@ -105,35 +105,7 @@ const config: Config = { }, footer: { style: 'dark', - links: [ - { - title: 'Community', - items: [ - { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', - }, - { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, - { - label: 'Twitter', - href: 'https://twitter.com/docusaurus', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'GitHub', - href: 'https://github.com/GeyserMC/Geyser', - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `© ${new Date().getFullYear()} GeyserMC`, }, prism: { theme: prismThemes.github, diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 541b37e..105148e 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -1,56 +1,63 @@ import clsx from 'clsx'; import Heading from '@theme/Heading'; import styles from './styles.module.css'; +import Crossplatform0Img from '@site/static/img/site/crossplatform_0.png'; +import Crossplatform1Img from '@site/static/img/site/crossplatform_1.png'; type FeatureItem = { title: string; - Svg: React.ComponentType>; + image?: string; description: JSX.Element; + index?: number; }; const FeatureList: FeatureItem[] = [ { - title: 'Easy to Use', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + title: 'What is Geyser?', + image: Crossplatform0Img, description: ( <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. + 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: 'Focus on What Matters', - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, + title: 'How does it work?', + image: Crossplatform1Img, description: ( <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. + 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: 'Powered by React', - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, + title: 'Join from anywhere', description: ( <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. + 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! ), }, ]; -function Feature({ title, Svg, description }: FeatureItem) { +function Feature({ title, image, description, index }: FeatureItem) { + const Content = () => ( +
+ {title} +

{description}

+
+ ); + const Image = () => ( + image && +
+ {title} +
+ ); return ( -
-
- -
-
- {title} -

{description}

-
+
+ {index % 2 === 0 ? <> : <>}
); } @@ -61,10 +68,10 @@ export default function HomepageFeatures(): JSX.Element {
{FeatureList.map((props, idx) => ( - + ))}
); -} +} \ No newline at end of file diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index b248eb2..684bc3c 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -1,11 +1,11 @@ .features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; } .featureSvg { - height: 200px; - width: 200px; -} + height: 200px; + width: 200px; +} \ No newline at end of file diff --git a/src/pages/index.module.css b/src/pages/index.module.css index 9f71a5d..03c2863 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -1,23 +1,28 @@ -/** - * CSS files with the .module.css suffix will be treated as CSS modules - * and scoped locally. - */ - .heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; + background-repeat: no-repeat; + background-position-x: center; + background-position-y: center; + background-size: cover; + height: calc(100vh - 60px); + text-align: center; + position: relative; + overflow: hidden; + color: var(--ifm-font-color-base); } @media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } + .heroBanner { + padding: 2rem; + } +} + +.textSection { + text-shadow: 1px 1px 5px #000; + color: #fff; } .buttons { - display: flex; - align-items: center; - justify-content: center; -} + display: flex; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a35c3a1..11b9b6f 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,27 +1,26 @@ import clsx from 'clsx'; -import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import HomepageFeatures from '@site/src/components/HomepageFeatures'; import Heading from '@theme/Heading'; +import HeroBackground from '@site/static/img/site/split-background.png'; +import HeroImage from '@site/static/img/site/geyser.png'; import styles from './index.module.css'; function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( -
+
- - {siteConfig.title} - -

{siteConfig.tagline}

-
- - Docusaurus Tutorial - 5min ⏱️ - + Geyser Logo +
+ + {siteConfig.tagline} + +

+ Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server. +

diff --git a/static/img/site/crossplatform_0.png b/static/img/site/crossplatform_0.png new file mode 100644 index 0000000..3a9ff61 Binary files /dev/null and b/static/img/site/crossplatform_0.png differ diff --git a/static/img/site/crossplatform_1.png b/static/img/site/crossplatform_1.png new file mode 100644 index 0000000..5c3ef3c Binary files /dev/null and b/static/img/site/crossplatform_1.png differ diff --git a/static/img/site/geyser.png b/static/img/site/geyser.png new file mode 100644 index 0000000..19ae2f4 Binary files /dev/null and b/static/img/site/geyser.png differ diff --git a/static/img/site/index.d.ts b/static/img/site/index.d.ts new file mode 100644 index 0000000..5d8ad30 --- /dev/null +++ b/static/img/site/index.d.ts @@ -0,0 +1,4 @@ +declare module '*.png' { + const value: any; + export = value; +} \ No newline at end of file