Some wild css

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle committed 2024-03-02 23:32:57 -08:00
1 parent 8eee82779a
commit 021663f01e
6 files changed
+116 -12

No files matched your search

+10 -3
View File
@@ -1,19 +1,26 @@
import clsx from 'clsx';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import { useColorMode } from '@docusaurus/theme-common';
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 HeroBackgroundLight from '@site/static/img/site/split-background-light.png';
import HeroImage from '@site/static/img/site/geyser.png';
import styles from './index.module.css';
function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
const { colorMode } = useColorMode();
const backgroundImageUrl = colorMode === 'dark' ? HeroBackground : HeroBackgroundLight;
return (
<header className={clsx('hero hero--primary', styles.heroBanner)} style={{backgroundImage: `url(${HeroBackground})`}}>
<div className="container">
<img src={HeroImage} alt="Geyser Logo" className="hero__image"/>
<header className={clsx('hero hero--primary', styles.heroBanner)} style={{backgroundImage: `url(${backgroundImageUrl})`}}>
<div className={styles.heroContent}>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImage}/>
<img src={HeroImage} alt="Geyser Logo" className={styles.heroImageBackgroundBlur}/>
<div className={styles.textSection}>
<Heading as="h1" className="hero__title">
{siteConfig.tagline}