-
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.
- Loading branch information
1 parent
4daa276
commit 1a4f640
Showing
2 changed files
with
59 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React, { Component } from 'react' | ||
import ListCard from '../ListCard/ListCard' | ||
import { ListCardViewContainer, ListCardGrid } from './ListCardViewStyles' | ||
|
||
const people = [ | ||
{ | ||
name: "Taiyr Begeyev", | ||
email: "[email protected]", | ||
college: "Krupp", | ||
room: "KC-113", | ||
major: "CS", | ||
class: "2021" | ||
}, | ||
{ | ||
name: "Taiyr Begeyev", | ||
email: "[email protected]", | ||
college: "Krupp", | ||
room: "KC-113", | ||
major: "CS", | ||
class: "2021" | ||
}, | ||
{ | ||
name: "Taiyr Begeyev", | ||
email: "[email protected]", | ||
college: "Krupp", | ||
room: "KC-113", | ||
major: "CS", | ||
class: "2021" | ||
} | ||
] | ||
|
||
class ListCardView extends Component<{}, {}> { | ||
public render() { | ||
return ( | ||
<ListCardViewContainer maxWidth={'sm'}> | ||
<ListCardGrid container spacing={2}> | ||
{ | ||
people.map(person => ( | ||
<ListCardGrid item key={person.email} xs={12}> | ||
<ListCard person={person}/> | ||
</ListCardGrid> | ||
)) | ||
} | ||
</ListCardGrid> | ||
</ListCardViewContainer> | ||
); | ||
} | ||
} | ||
|
||
export default ListCardView; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import { Container, Grid } from '@material-ui/core'; | ||
|
||
export const ListCardViewContainer = styled(Container)` | ||
` | ||
|
||
export const ListCardGrid = styled(Grid)` | ||
` |