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

Andrew card #19

Open
wants to merge 2 commits 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
30 changes: 20 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions src/AndrewCardTemplate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import CardMedia from '@mui/material/CardMedia';
import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import img from './static/t4sg_logo.jpg';

export default function AndrewCardTemplate() {
return (
<Grid item xs={12} sm={6} md={4}>
<Card
sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}
>
<CardMedia
component="img"
sx={{
// 16:9
pt: '5%',
}}
style={{ width: '80%', margin: 'auto' }}
src={img}
alt="t4sg logo"
/>
<CardContent sx={{ flexGrow: 1 }}>
<Typography gutterBottom variant="h5" component="h2">
{/* Name here */}
Andrew Card
</Typography>
<Typography>
{/* Harvard intro here */}
Template Intro
</Typography>
</CardContent>
</Card>
</Grid>
)
}
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { createTheme, ThemeProvider } from '@mui/material/styles';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import './App.css';
import AndrewCardTemplate from './AndrewCardTemplate';

// Place card imports here!
import CardTemplate from './CardTemplate';
Expand Down Expand Up @@ -73,6 +74,7 @@ function App() {
<Grid container spacing={4}>
{/* Insert cards here! */}
<CardTemplate />
<AndrewCardTemplate/>
</Grid>
</Container>
</main>
Expand All @@ -87,6 +89,7 @@ function App() {
Created by the T4SG SWE Summer Committee 2022
</Typography>
</Box>

{/* End footer */}
</ThemeProvider>
</div>
Expand Down