Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(proof): fadein image #2617

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/seven-shrimps-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,20 @@ export const AttendanceTicket: FC<IProps> = ({ data, share }) => {
<Stack
className={classNames(wrapperClass, { [shareWrapperClass]: share })}
>
<motion.div
layoutId={data.image}
className={shareClass}
style={{
backgroundImage: `url("${getIPFSLink(data.image)}")`,
backgroundColor: data.properties?.avatar?.backgroundColor,
aspectRatio: aspectRatio,
}}
></motion.div>
{imgWidth && (
<motion.div
layoutId={data.image}
transition={{ delay: 1, duration: 0.5 }}
initial={{ opacity: 0, y: '-20%' }}
animate={{ opacity: 1, y: 0 }}
className={shareClass}
style={{
backgroundImage: `url("${getIPFSLink(data.image)}")`,
backgroundColor: data.properties?.avatar?.backgroundColor,
aspectRatio: aspectRatio,
}}
></motion.div>
)}
<div className={gradientClass}></div>
</Stack>
);
Expand All @@ -78,6 +83,9 @@ export const AttendanceTicket: FC<IProps> = ({ data, share }) => {
<motion.div
layoutId={data.image}
className={ticketClass}
transition={{ delay: 1, duration: 0.5 }}
initial={{ opacity: 0, y: '-20%' }}
animate={{ opacity: 1, y: 0 }}
style={{
backgroundImage: `url("${getIPFSLink(data.image)}")`,
backgroundColor: data.properties?.avatar?.backgroundColor,
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/proof-of-us/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const MyApp = ({
</Head>
<main className={mainWrapperClass}>
<CookieConsent />
<AnimatePresence mode="popLayout" initial={false}>
<AnimatePresence mode="popLayout">
<Component {...pageProps} key={router.asPath} />
</AnimatePresence>
</main>
Expand Down