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

UI Improvements #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 1 addition & 1 deletion open-giving/src/components/FilterAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const FilterAccordion = ({
onMethodToggle,
paymentMethods,
}) => (
<Accordion expanded={isExpanded} onChange={() => setIsExpanded(!isExpanded)}>
<Accordion sx={{marginBottom:"0.5rem"}} expanded={isExpanded} onChange={() => setIsExpanded(!isExpanded)}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="filter-content"
Expand Down
4 changes: 2 additions & 2 deletions open-giving/src/components/NonProfitCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default function NonProfitCard({ nonProfit, onLearnMore, showQRCode }) {

return (
<Card
sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}
elevation={2}
sx={{ height: '100%', display: 'flex', flexDirection: 'column', transition: 'transform 0.3s ease, box-shadow 0.3s ease', '&:hover': { transform: 'translateY(-8px)', boxShadow: 6 }}}
elevation={2}
>
<CardMedia
component="div"
Expand Down
35 changes: 20 additions & 15 deletions open-giving/src/components/NonProfitGrid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Grid } from '@mui/material';
import { Grid, Grow } from '@mui/material';
import React from 'react';

import NonProfitCard from './NonProfitCard';
Expand All @@ -10,22 +10,27 @@ const NonProfitGrid = ({
useTestPaymentID,
}) => (
<Grid container spacing={3}>
{nonProfits.map((nonProfit) => (
<Grid
item
xs={6}
sm={6}
md={4}
{nonProfits.map((nonProfit, index) => (
<Grow
in={true}
key={nonProfit.npCode}
id={`nonprofit-${nonProfit.npCode}`}
style={{ transitionDelay: `${index * 50}ms` }}
>
<NonProfitCard
nonProfit={nonProfit}
onLearnMore={() => onOpenDialog(nonProfit)}
showQRCode={showQRCode}
useTestPaymentID={useTestPaymentID}
/>
</Grid>
<Grid
item
xs={12}
sm={6}
md={4}
id={`nonprofit-${nonProfit.npCode}`}
>
<NonProfitCard
nonProfit={nonProfit}
onLearnMore={() => onOpenDialog(nonProfit)}
showQRCode={showQRCode}
useTestPaymentID={useTestPaymentID}
/>
</Grid>
</Grow>
))}
</Grid>
);
Expand Down