Skip to content

Commit

Permalink
feat: team member bio dropdown, footer icons
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfrasco committed Feb 26, 2024
1 parent 30629c4 commit 70ccb80
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 37 deletions.
74 changes: 42 additions & 32 deletions packages/client/src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ export const Footer = () => {
{ name: 'LinkedIn', icon: <LinkedInIcon />, url: 'https://www.linkedin.com/' },
{ name: 'YouTube', icon: <YouTubeIcon />, url: 'https://www.youtube.com/' }
];
const logos = [
const staticLogos = [
{
src: 'src/assets/bu-logo.webp',
url: 'https://www.bu.edu/'
},
{
src: 'src/assets/bmc-logo.png',
url: 'https://www.bmc.org/'
},
}
];
const rotatingLogos = [
{
src: 'src/assets/nimh-logo.png',
url: 'https://www.nimh.nih.gov/'
Expand Down Expand Up @@ -70,37 +72,45 @@ export const Footer = () => {

return (
<Box>
<Carousel logos={logos} displayCount={displayedLogos > 0 ? displayedLogos : 1} />
<Carousel logos={rotatingLogos} displayCount={displayedLogos > 0 ? displayedLogos : 1} />
<Container display="flex" sx={{ marginX: 'auto', paddingX: { sm: 6, xs: 3 } }} ref={componentRef}>
<Box>
<Box
component="img"
src={import.meta.env.VITE_STRAPI_URL + data.logoFullSvg.data.attributes.LogoFullSVG.data.attributes.url}
sx={{ height: 48, marginBottom: 2 }}
/>
<Box marginBottom={2}>
<Typography variant="body2">
<b>Address:</b>
<br />
One Boston Medical Center Place
<br />
Boston, MA 02118
<br />
<b>Contact:</b>
<br />
<Link to="tel:6174142340">(617) 414-2340</Link>
<br />
<Link to="mailto:[email protected]">[email protected]</Link>
</Typography>
</Box>
<Grid container spacing={1}>
{socialLinks.map((socialLink) => (
<Grid item key={socialLink.name}>
<Link to={socialLink.url}>{socialLink.icon}</Link>
</Grid>
))}
<Grid container>
<Grid item md={4}>
<Box
component="img"
src={import.meta.env.VITE_STRAPI_URL + data.logoFullSvg.data.attributes.LogoFullSVG.data.attributes.url}
sx={{ height: 48, marginBottom: 2 }}
/>
<Box marginBottom={2}>
<Typography variant="body2">
<b>Address:</b>
<br />
One Boston Medical Center Place
<br />
Boston, MA 02118
<br />
<b>Contact:</b>
<br />
<Link to="tel:6174142340">(617) 414-2340</Link>
<br />
<Link to="mailto:[email protected]">[email protected]</Link>
</Typography>
</Box>
</Grid>
</Box>
<Grid item md={4} display="flex" alignItems="center">
<img src={staticLogos[0].src} style={{ height: 80, marginBottom: 2 }} />
</Grid>
<Grid item md={4} display="flex" alignItems="center">
<img src={staticLogos[1].src} style={{ height: 80, marginBottom: 2 }} />
</Grid>
</Grid>
<Grid container spacing={1}>
{socialLinks.map((socialLink) => (
<Grid item key={socialLink.name}>
<Link to={socialLink.url}>{socialLink.icon}</Link>
</Grid>
))}
</Grid>
</Container>
<Box display="flex" flexDirection="column" sx={{ marginBottom: 8 }}>
<Divider sx={{ alignSelf: 'center', marginY: 3, width: '90%' }} />
Expand All @@ -113,7 +123,7 @@ export const Footer = () => {
paddingX: { sm: 0, xs: 3 }
}}
>
<Typography variant="body1">© 2023 All rights reserved</Typography>
<Typography variant="body1">© {new Date().getFullYear()} All rights reserved</Typography>
<Typography
variant="body1"
display="flex"
Expand Down
31 changes: 26 additions & 5 deletions packages/client/src/components/TeamMember.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import { Card, CardContent, Chip, Grid, Typography } from '@mui/material';
import {
Accordion,
AccordionDetails,
AccordionSummary,
Card,
CardContent,
Chip,
Grid,
Typography
} from '@mui/material';
import { TeamMemberPhoto } from './TeamMemberPhoto.jsx';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';

export const TeamMember = ({ Name, Photo, Credentials, Pronouns, Languages, Roles, Bio, Interests, EBPs }) => {
return (
Expand All @@ -17,10 +27,21 @@ export const TeamMember = ({ Name, Photo, Credentials, Pronouns, Languages, Role
</Typography>
)}
{Bio && (
<Typography variant="body1" gutterBottom>
<strong>Bio: </strong>
{Bio}
</Typography>
<Accordion disableGutters elevation={0} square>
<AccordionSummary
sx={{ padding: 0 }}
expandIcon={<ExpandMoreIcon />}
aria-controls="panel1-content"
id="panel1-header"
>
<strong>Bio: </strong>
</AccordionSummary>
<AccordionDetails>
<Typography variant="body1" gutterBottom>
{Bio}
</Typography>
</AccordionDetails>
</Accordion>
)}
{Interests && (
<Typography variant="body1" gutterBottom>
Expand Down

0 comments on commit 70ccb80

Please sign in to comment.