Skip to content

Commit

Permalink
fix(Feed): update props and shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Oct 2, 2016
1 parent cb5cb06 commit f519e1a
Show file tree
Hide file tree
Showing 44 changed files with 915 additions and 636 deletions.
82 changes: 0 additions & 82 deletions docs/app/Examples/views/Feed/Content/AdditionalInformation.js

This file was deleted.

49 changes: 0 additions & 49 deletions docs/app/Examples/views/Feed/Content/Date.js

This file was deleted.

44 changes: 0 additions & 44 deletions docs/app/Examples/views/Feed/Content/DateSummary.js

This file was deleted.

20 changes: 20 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleContentDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const FeedExampleContentDate = () => (
<Feed>
<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>
</Feed>
)

export default FeedExampleContentDate
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'
import { Feed } from 'stardust'

const image = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'
const date = '3 days ago'
const summary = 'You added Jenny Hess to your coworker group.'

const FeedExampleContentDateShorthand = () => (
<Feed>
<Feed.Event image={image} date={date} summary={summary} />

<Feed.Event>
<Feed.Label image={image} />
<Feed.Content date={date} summary={summary} />
</Feed.Event>
</Feed>
)

export default FeedExampleContentDateShorthand
47 changes: 47 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const FeedExampleDate = () => (
<Feed>
<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date date='3 days ago' />
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content date='3 days ago'>
<Feed.Summary>
You added <a>Jenny Hess</a> to your <a>coworker</a> group.
</Feed.Summary>
</Feed.Content>
</Feed.Event>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>
</Feed.Event>
</Feed>
)

export default FeedExampleDate
24 changes: 24 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleDateShorthand.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'
import { Feed } from 'stardust'

const imageSrc = 'http://semantic-ui.com/images/avatar/small/jenny.jpg'

const FeedExampleDateShorthand = () => (
<Feed>
<Feed.Event
image={imageSrc}
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>

<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content
date='3 days ago'
summary='You added Jenny Hess to your coworker group.'
/>
</Feed.Event>
</Feed>
)

export default FeedExampleDateShorthand
22 changes: 22 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleExtraImages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { Feed } from 'stardust'

const FeedExampleAdditionalInformation = () => (
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/helen.jpg' />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
<a>Helen Troy</a> added 2 photos
</Feed.Summary>
<Feed.Extra images>
<a><img src='http://semantic-ui.com/images/wireframe/image.png' /></a>
<a><img src='http://semantic-ui.com/images/wireframe/image.png' /></a>
</Feed.Extra>
</Feed.Content>
</Feed.Event>
</Feed>
)

export default FeedExampleAdditionalInformation
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react'
import { Feed } from 'stardust'

const image = 'http://semantic-ui.com/images/avatar/small/helen.jpg'
const date = '3 days ago'
const summary = 'Helen Troy added 2 photos'
const extraImages = [
'http://semantic-ui.com/images/wireframe/image.png',
'http://semantic-ui.com/images/wireframe/image.png',
]

const FeedExampleExtraImagesShorthand = () => (
<Feed>
<Feed.Event
image={image}
date={date}
summary={summary}
extraImages={extraImages}
/>

<Feed.Event>
<Feed.Label image={image} />
<Feed.Content date={date} summary={summary} extraImages={extraImages} />
</Feed.Event>

<Feed.Event>
<Feed.Label image={image} />
<Feed.Content>
<Feed.Date content={date} />
<Feed.Summary content={summary} />
<Feed.Extra images={extraImages} />
</Feed.Content>
</Feed.Event>
</Feed>
)

export default FeedExampleExtraImagesShorthand
21 changes: 21 additions & 0 deletions docs/app/Examples/views/Feed/Content/FeedExampleExtraText.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react'
import { Feed } from 'stardust'

const FeedExampleExtraText = () => (
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/laura.jpg' />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
<a>Laura Faucet</a> created a post
</Feed.Summary>
<Feed.Extra text>
Have you seen what's going on in Israel? Can you believe it.
</Feed.Extra>
</Feed.Content>
</Feed.Event>
</Feed>
)

export default FeedExampleExtraText
Loading

0 comments on commit f519e1a

Please sign in to comment.