-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luqmaan Essop
committed
May 28, 2024
1 parent
988875b
commit 1d1ce5f
Showing
8 changed files
with
187 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use client'; | ||
import { motion, useReducedMotion } from 'framer-motion'; | ||
import React, { PropsWithChildren } from 'react'; | ||
|
||
export function FadeUp({ | ||
yGap, | ||
children, | ||
className, | ||
}: PropsWithChildren<{ yGap: number; className?: string }>) { | ||
const reducedMotion = useReducedMotion(); | ||
return ( | ||
<motion.div | ||
className={className} | ||
transition={{ duration: 0.8 }} | ||
initial={{ opacity: reducedMotion ? 1 : 0, y: reducedMotion ? 0 : yGap }} | ||
whileInView={{ opacity: 1, y: 0 }} | ||
> | ||
{children} | ||
</motion.div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
packages/ui/src/components/Organisms/PageContent/BlockHorizontalSeparator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import React from 'react'; | ||
|
||
import { FadeUp } from '../../Molecules/FadeUp'; | ||
|
||
export function BlockHorizontalSeparator() { | ||
return ( | ||
<div className="container-page"> | ||
<div className="container-content"> | ||
<hr className="container-text my-8 text-gray-200" /> | ||
<FadeUp yGap={50}> | ||
<div className="container-page"> | ||
<div className="container-content"> | ||
<hr className="container-text my-8 text-gray-200" /> | ||
</div> | ||
</div> | ||
</div> | ||
</FadeUp> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.