-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from RENCI/feature/improve-contacts-section
Feature/improve contacts section
- Loading branch information
Showing
3 changed files
with
37 additions
and
9 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 |
---|---|---|
@@ -1,23 +1,52 @@ | ||
import React from 'react' | ||
import { Section } from '../section' | ||
import { ParagraphGrid } from '../paragraph-grid'; | ||
import Grid from '@mui/joy/Grid'; | ||
import { Card, CardContent, AspectRatio, Typography } from '@mui/joy'; | ||
import { Link } from '../link' | ||
|
||
export const KeyContacts = ({ content }) => { | ||
|
||
return ( | ||
<Section | ||
backgroundColor="#1A1B2F" | ||
title={content.title} | ||
textColor="#fff" | ||
> | ||
<Grid container spacing={2}> | ||
<Grid container spacing={2} mb={3}> | ||
{ | ||
content.people.map((person) => ( | ||
<ParagraphGrid key={`contact-${person.name}`} heading={person.name} body={person.description} color="#fff"/> | ||
<Grid key={`contact-${person.name}`} xs={12} sm={12} md={6} > | ||
<Card orientation="horizontal" size="lg" | ||
sx={{ backgroundColor: '#ECF1F2' }} | ||
> | ||
<AspectRatio flex ratio="1" maxHeight={182} sx={{ minWidth: 182 }}> | ||
<img loading="lazy" alt="" | ||
src={person.photoURL} | ||
/> | ||
</AspectRatio> | ||
<CardContent> | ||
<Typography fontSize="xl" fontWeight="lg" > | ||
{person.name} | ||
</Typography> | ||
<Typography> | ||
{person.description} | ||
</Typography> | ||
</CardContent> | ||
</Card> | ||
</Grid> | ||
)) | ||
} | ||
</Grid> | ||
|
||
<Typography level="h3" sx={{ | ||
textAlign: 'center', color: '#fff' | ||
}}>Questions?</Typography> | ||
<Typography sx={{textAlign: 'center', color: '#fff'}}> | ||
Contact the team at <Link | ||
to="mailto:[email protected]">[email protected] | ||
</Link> | ||
</Typography> | ||
|
||
</Section> | ||
) | ||
} |
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 |
---|---|---|
|
@@ -3,9 +3,7 @@ title: Key Contacts | |
people: | ||
- name: Bryttany Todd | ||
description: STAR Program Manager | ||
photoURL: https://renci.org/wp-content/uploads/2019/05/RENCI_201905_Photo_Todd_Bryttany.jpg | ||
- name: Ashley Hukins | ||
description: STAR Program Coordinator | ||
- name: Questions? | ||
description: > | ||
Contact the team at [email protected] or | ||
join our slack channel, #star-program-info. | ||
photoURL: https://ca.slack-edge.com/T0450N0TQ-U044V4MNF1B-263648a9357a-512 |
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