Skip to content

Commit

Permalink
🎉 introduce ListCardView #29
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyrbegeyev committed Jul 5, 2019
1 parent 4daa276 commit 1a4f640
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
50 changes: 50 additions & 0 deletions people/src/components/ListCardView/ListCardView.tsx
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;
9 changes: 9 additions & 0 deletions people/src/components/ListCardView/ListCardViewStyles.tsx
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)`
`

0 comments on commit 1a4f640

Please sign in to comment.