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

+27 -1
View File
@@ -8,6 +8,33 @@
position: relative;
overflow: hidden;
color: var(--ifm-font-color-base);
background-color: var(--ifm-background-color);
}
.heroContent {
position: absolute;
top: 80%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
}
.heroImage {
-webkit-filter: drop-shadow(12px 12px 7px rgba(0, 100, 100, 0.5));
filter: drop-shadow(12px 12px 7px rgba(0, 100, 100, 0.5));
}
.heroImageBackgroundBlur {
position: absolute;
top: 0;
left: 0;
top: 40%;
left: 50%;
width: 80vh;
filter: blur(1.5rem);
transform: translate(-50%, -50%);
opacity: 0.5;
z-index: -1;
}
@media screen and (max-width: 996px) {
@@ -17,7 +44,6 @@
}
.textSection {
text-shadow: 1px 1px 5px #000;
color: #fff;
}
+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}