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
+76 -89

No files matched your search

+21 -16
View File
@@ -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;
}
+11 -12
View File
@@ -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 (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={clsx('hero hero--primary', styles.heroBanner)} style={{backgroundImage: `url(${HeroBackground})`}}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/geyser">
Docusaurus Tutorial - 5min ⏱️
</Link>
<img src={HeroImage} alt="Geyser Logo" className="hero__image"/>
<div className={styles.textSection}>
<Heading as="h1" className="hero__title">
{siteConfig.tagline}
</Heading>
<p className="hero__subtitle">
Enable clients from Minecraft Bedrock Edition to join your Minecraft Java server.
</p>
</div>
</div>
</header>