Skip to content

Commit

Permalink
docs: tweak footer
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 7, 2020
1 parent 5ffbc8c commit 8ef2206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
5 changes: 1 addition & 4 deletions docs/Footer.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.skewed {
z-index: -1;
transform: skewY(-9deg);
box-shadow: 0 15rem 0 0 theme('backgroundColor.gray.900');

& > * {
transform: skewY(9deg);
}
}
13 changes: 7 additions & 6 deletions docs/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ export default function Footer({
reactUseGestureVersion: string
}) {
return (
<footer
className={cx(
'px-10 py-32 grid md:grid-flow-col md:place-items-center place-content-center gap-8 bg-gray-900',
styles.skewed
)}
>
<footer className="px-10 py-32 grid md:grid-flow-col md:place-items-center place-content-center gap-8 relative">
<div
className={cx(
styles.skewed,
'absolute top-0 right-0 bottom-0 bg-gray-900 w-screen'
)}
/>
<Badge name="react-spring-bottom-sheet" version={version} />
<Badge name="react-spring" version={reactSpringVersion} />
<Badge name="react-use-gesture" version={reactUseGestureVersion} />
Expand Down

0 comments on commit 8ef2206

Please sign in to comment.