Work on landing page

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle committed 2024-02-25 00:53:46 -08:00
1 parent 54f580a589
commit 062526e775
9 files changed
+73 -86

No files matched your search

+2 -30
View File
@@ -4,7 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic';
const config: Config = { const config: Config = {
title: 'GeyserMC', title: 'GeyserMC',
tagline: 'Meowing strictly prohibited', tagline: 'Revolutionize Your Minecraft Server',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
// Set the production url of your site here // Set the production url of your site here
@@ -105,35 +105,7 @@ const config: Config = {
}, },
footer: { footer: {
style: 'dark', style: 'dark',
links: [ copyright: `© ${new Date().getFullYear()} GeyserMC`,
{
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.`,
}, },
prism: { prism: {
theme: prismThemes.github, theme: prismThemes.github,
+30 -23
View File
@@ -1,56 +1,63 @@
import clsx from 'clsx'; import clsx from 'clsx';
import Heading from '@theme/Heading'; import Heading from '@theme/Heading';
import styles from './styles.module.css'; 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 = { type FeatureItem = {
title: string; title: string;
Svg: React.ComponentType<React.ComponentProps<'svg'>>; image?: string;
description: JSX.Element; description: JSX.Element;
index?: number;
}; };
const FeatureList: FeatureItem[] = [ const FeatureList: FeatureItem[] = [
{ {
title: 'Easy to Use', title: 'What is Geyser?',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, image: Crossplatform0Img,
description: ( description: (
<> <>
Docusaurus was designed from the ground up to be easily installed and 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.
used to get your website up and running quickly.
</> </>
), ),
}, },
{ {
title: 'Focus on What Matters', title: 'How does it work?',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, image: Crossplatform1Img,
description: ( description: (
<> <>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go 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.
ahead and move your docs into the <code>docs</code> directory.
</> </>
), ),
}, },
{ {
title: 'Powered by React', title: 'Join from anywhere',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: ( description: (
<> <>
Extend or customize your website layout by reusing React. Docusaurus can 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!
be extended while reusing the same header and footer.
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 = () => (
<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>
);
return ( return (
<div className={clsx('col col--4')}> <div className={clsx('column')}>
<div className="text--center"> {index % 2 === 0 ? <><Image /><Content /></> : <><Content /><Image /></>}
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div> </div>
); );
} }
@@ -61,7 +68,7 @@ export default function HomepageFeatures(): JSX.Element {
<div className="container"> <div className="container">
<div className="row"> <div className="row">
{FeatureList.map((props, idx) => ( {FeatureList.map((props, idx) => (
<Feature key={idx} {...props} /> <Feature key={idx} {...props} index={idx} />
))} ))}
</div> </div>
</div> </div>
@@ -1,11 +1,11 @@
.features { .features {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 2rem 0; padding: 2rem 0;
width: 100%; width: 100%;
} }
.featureSvg { .featureSvg {
height: 200px; height: 200px;
width: 200px; width: 200px;
} }
+20 -15
View File
@@ -1,23 +1,28 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/
.heroBanner { .heroBanner {
padding: 4rem 0; background-repeat: no-repeat;
text-align: center; background-position-x: center;
position: relative; background-position-y: center;
overflow: hidden; 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) { @media screen and (max-width: 996px) {
.heroBanner { .heroBanner {
padding: 2rem; padding: 2rem;
} }
}
.textSection {
text-shadow: 1px 1px 5px #000;
color: #fff;
} }
.buttons { .buttons {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
+11 -12
View File
@@ -1,27 +1,26 @@
import clsx from 'clsx'; import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout'; import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures'; import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Heading from '@theme/Heading'; 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'; import styles from './index.module.css';
function HomepageHeader() { function HomepageHeader() {
const { siteConfig } = useDocusaurusContext(); const { siteConfig } = useDocusaurusContext();
return ( return (
<header className={clsx('hero hero--primary', styles.heroBanner)}> <header className={clsx('hero hero--primary', styles.heroBanner)} style={{backgroundImage: `url(${HeroBackground})`}}>
<div className="container"> <div className="container">
<Heading as="h1" className="hero__title"> <img src={HeroImage} alt="Geyser Logo" className="hero__image"/>
{siteConfig.title} <div className={styles.textSection}>
</Heading> <Heading as="h1" className="hero__title">
<p className="hero__subtitle">{siteConfig.tagline}</p> {siteConfig.tagline}
<div className={styles.buttons}> </Heading>
<Link <p className="hero__subtitle">
className="button button--secondary button--lg" Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server.
to="/geyser"> </p>
Docusaurus Tutorial - 5min ⏱️
</Link>
</div> </div>
</div> </div>
</header> </header>
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

+4
View File
@@ -0,0 +1,4 @@
declare module '*.png' {
const value: any;
export = value;
}