Skip to content

Commit

Permalink
style: tweak hero (#1576)
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnlarsson authored Sep 28, 2023
1 parent 9dbfd18 commit 606467d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 54 deletions.
35 changes: 5 additions & 30 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ function Logo(props) {
<img
src={useBaseUrl(
logoDir +
(isDarkMode
? props.brand.logoColorDark
: props.brand.logoColorLight)
(isDarkMode
? props.brand.logoColorDark
: props.brand.logoColorLight)
)}
alt={props.brand.name}
/>
Expand Down Expand Up @@ -474,25 +474,12 @@ export default function App() {
})}
>
<header className={classNames('hero', styles.hero)}>
<div className={classNames(styles.heroBefore)}>
<div className={classNames(styles.loopsContainer)}>
<img
className={classNames(styles.heroLoops)}
src="/img/index/blue_loops.svg"
/>
</div>
<img
className={classNames(styles.heroPackage)}
src="/img/index/orange_package.svg"
/>
</div>

<div className={classNames(styles.heroContainer)}>
<p className={classNames(styles.heroSubtitle, 'hero__subtitle')}>
<Translate>Announcing the release of</Translate>
</p>
<span className={classNames(styles.heroImage)}>
<DynamicHeaderImage />
</span>
<br />
<div className={classNames(styles.heroSubtitle, 'hero__subtitle')}>
<Translate>
Build an optimized, secure, and frontend-independent application
Expand All @@ -511,18 +498,6 @@ export default function App() {
<Translate>Quick Start</Translate>
</Link>
</div>
<div className={classNames(styles.heroAfter)}>
<img
className={classNames(styles.heroPackage)}
src="/img/index/blue_package.svg"
/>
<div className={classNames(styles.loopsContainer)}>
<img
className={classNames(styles.heroLoops)}
src="/img/index/orange_loops.svg"
/>
</div>
</div>
</header>

<main>
Expand Down
19 changes: 19 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,22 @@
text-align: center;
}
}

.hero {
animation: hero-intro 2s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
background:
linear-gradient(-90deg, #6d6d6d25 1px, transparent 1px), linear-gradient(#6d6d6d25 1px, transparent 1px), linear-gradient(-90deg, #6d6d6d25 1px, transparent 1px), linear-gradient(#6d6d6d25 1px, transparent 1px), linear-gradient(transparent 6px, transparent 6px, transparent 156px, transparent 156px), linear-gradient(-90deg, #6d6d6d25 1px, transparent 1px), linear-gradient(-90deg, transparent 6px, transparent 6px, transparent 156px, transparent 156px), linear-gradient(#6d6d6d25 1px, transparent 1px), transparent;
background-size: 32px 32px, 32px 32px, 256px 256px, 256px 256px, 256px 256px, 256px 256px, 256px 256px, 256px 256px
}

@keyframes hero-intro {
0% {
background-position: 0px 50px;
}
}

@media (prefers-reduced-motion: reduce) {
.hero {
animation: none;
}
}
13 changes: 1 addition & 12 deletions static/img/index/header_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 606467d

Please sign in to comment.