From 1ea7882f8699cf91e5c76a7e6cc93b681e776210 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Tue, 2 Apr 2024 16:31:36 -0400 Subject: [PATCH] Add reveal animation to gallery --- components/onboard/gallery-paginated.js | 5 +- components/onboard/item.js | 68 ++++++------------------- 2 files changed, 20 insertions(+), 53 deletions(-) diff --git a/components/onboard/gallery-paginated.js b/components/onboard/gallery-paginated.js index 3e5e52ab..613feed0 100644 --- a/components/onboard/gallery-paginated.js +++ b/components/onboard/gallery-paginated.js @@ -5,6 +5,7 @@ import Head from 'next/head' import { Box, Button, Flex, Grid, Heading, Text } from 'theme-ui' import Item from './item' import Nav from '../nav' +import { Slide } from 'react-reveal' const perPage = 10 @@ -138,7 +139,9 @@ export const GalleryPage = ({ currentPage, itemCount, currentProjects }) => { }} > {currentProjects.map(project => ( - + + + ))} { const { name, imageTop, galleryURL } = project return ( - - + - - - - {name} - - - - {/* {`${author_name ? `by ${trim(author_name)}` : ""} ${author_slack ? `(${trim(author_slack)})` : ""}`} */} - - - + {name} + + ) }