Skip to content

Commit 508e4b4

Browse files
committed
Update content
1 parent 945790d commit 508e4b4

File tree

10 files changed

+340
-354
lines changed

10 files changed

+340
-354
lines changed

src/components/explore/Album.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import React, { Component } from 'react';
2+
import { Link } from 'react-router-dom';
3+
import { Responsive, Card, Image, Label, Icon } from 'semantic-ui-react';
4+
5+
import image from '../../assets/img/image.png';
6+
import matthew from '../../assets/img/matthew.png';
7+
8+
export default class Album extends Component {
9+
10+
render() {
11+
const { explores } = this.props;
12+
13+
return(
14+
<div>
15+
<Responsive {...Responsive.onlyMobile}>
16+
<Card.Group itemsPerRow={1}>
17+
{explores.map((item)=> (
18+
<Card color='green' key={item.id} image={image}
19+
header={item.title}
20+
description={(
21+
<Label as={Link} to={`/profile/${item.userId}`} color='teal' image>
22+
<Image src={matthew} />
23+
{item.user.name}
24+
</Label>
25+
)}
26+
extra={(
27+
<div>
28+
<Link to={`/albums/${item.id}`}>
29+
<Icon name='picture' circular /> {explores.length} Photos
30+
</Link>
31+
</div>
32+
)}
33+
/>
34+
))}
35+
</Card.Group>
36+
</Responsive>
37+
<Responsive minWidth={Responsive.onlyTablet.minWidth}>
38+
<Card.Group itemsPerRow={3}>
39+
{explores.map((item)=> (
40+
<Card color='green' key={item.id} image={image}
41+
header={item.title}
42+
description={(
43+
<Label as={Link} to={`/profile/${item.userId}`} color='teal' image>
44+
<Image src={matthew} />
45+
{item.user.name}
46+
</Label>
47+
)}
48+
extra={(
49+
<div>
50+
<Link to={`/albums/${item.id}`}>
51+
<Icon name='picture' circular /> {explores.length} Photos
52+
</Link>
53+
</div>
54+
)}
55+
/>
56+
))}
57+
</Card.Group>
58+
</Responsive>
59+
</div>
60+
)
61+
}
62+
}

src/components/explore/Content.js

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/components/friend/Content.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/components/friend/User.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import React, { Component } from 'react';
2+
import { Link } from 'react-router-dom';
3+
import { Responsive, Card, Image, Button } from 'semantic-ui-react';
4+
5+
import matthew from '../../assets/img/matthew.png';
6+
7+
export default class User extends Component {
8+
9+
render() {
10+
const { friends } = this.props;
11+
12+
return(
13+
<div>
14+
<Responsive {...Responsive.onlyMobile}>
15+
<Card.Group itemsPerRow={1} >
16+
{friends.map((item)=> (
17+
<Card color='green' key={item.id} link>
18+
<Card.Content>
19+
<Image as={Link} to={`/profile/${item.id}`} floated='right' size='mini' src={matthew} />
20+
<Card.Header><Link to={`/profile/${item.id}`}>{item.username}</Link></Card.Header>
21+
<Card.Meta>{item.name}</Card.Meta>
22+
</Card.Content>
23+
<Card.Content extra>
24+
<div className='ui two buttons'>
25+
<Button basic color='green' as={Link} to={`/profile/${item.id}`}>
26+
Detail Profile
27+
</Button>
28+
</div>
29+
</Card.Content>
30+
</Card>
31+
))}
32+
</Card.Group>
33+
</Responsive>
34+
<Responsive minWidth={Responsive.onlyTablet.minWidth}>
35+
<Card.Group itemsPerRow={4} >
36+
{friends.map((item)=> (
37+
<Card color='green' key={item.id} link>
38+
<Card.Content>
39+
<Image as={Link} to={`/profile/${item.id}`} floated='right' size='mini' src={matthew} />
40+
<Card.Header><Link to={`/profile/${item.id}`}>{item.username}</Link></Card.Header>
41+
<Card.Meta>{item.name}</Card.Meta>
42+
</Card.Content>
43+
<Card.Content extra>
44+
<div className='ui two buttons'>
45+
<Button basic color='green' as={Link} to={`/profile/${item.id}`}>
46+
Detail Profile
47+
</Button>
48+
</div>
49+
</Card.Content>
50+
</Card>
51+
))}
52+
</Card.Group>
53+
</Responsive>
54+
</div>
55+
)
56+
}
57+
}

src/components/home/Content.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)