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

Swatig #14

Open
wants to merge 6 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
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Typography from '@mui/material/Typography';
import './App.css';

// Place card imports here!
import SwatiCard from './SwatiCard';
import CardTemplate from './CardTemplate';

const theme = createTheme({
Expand Down Expand Up @@ -73,6 +74,7 @@ function App() {
<Grid container spacing={4}>
{/* Insert cards here! */}
<CardTemplate />
<SwatiCard/>
</Grid>
</Container>
</main>
Expand Down
38 changes: 38 additions & 0 deletions src/SwatiCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 CardTemplate() {
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 */}
Swati Goel
</Typography>
<Typography>
{/* Harvard intro here */}
Winthrop 2025, CS/Physics
I have added a change!
</Typography>
</CardContent>
</Card>
</Grid>
)
}