Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Card, Feed } from 'semantic-ui-react'

const ContentBlock = () => (
const CardExampleContentBlock = () => (
<Card>
<Card.Content>
<Card.Header>
Expand Down Expand Up @@ -43,4 +43,4 @@ const ContentBlock = () => (
</Card>
)

export default ContentBlock
export default CardExampleContentBlock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const description = [
'She enjoys the outdoors and currently resides in upstate New York.',
].join(' ')

const ExtraContent = () => (
const CardExampleExtraContent = () => (
<Card>
<Card.Content header='About Amy' />
<Card.Content description={description} />
Expand All @@ -17,4 +17,4 @@ const ExtraContent = () => (
</Card>
)

export default ExtraContent
export default CardExampleExtraContent
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Card } from 'semantic-ui-react'

const HeaderCards = () => (
const CardExampleHeaderCard = () => (
<Card.Group>
<Card>
<Card.Content>
Expand Down Expand Up @@ -35,4 +35,4 @@ const HeaderCards = () => (
</Card.Group>
)

export default HeaderCards
export default CardExampleHeaderCard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Card, Icon, Image } from 'semantic-ui-react'

const ImageCard = () => (
const CardExampleImageCard = () => (
<Card>
<Image src='http://semantic-ui.com/images/avatar/large/daniel.jpg' />
<Card.Content>
Expand All @@ -18,4 +18,4 @@ const ImageCard = () => (
</Card>
)

export default ImageCard
export default CardExampleImageCard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Card } from 'semantic-ui-react'

const LinkCard = () => (
const CardExampleLinkCard = () => (
<Card
href='#link'
header='Elliot Baker'
Expand All @@ -10,4 +10,4 @@ const LinkCard = () => (
/>
)

export default LinkCard
export default CardExampleLinkCard
20 changes: 10 additions & 10 deletions docs/app/Examples/views/Card/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ const Content = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Content Block'
description='A card contains blocks of content'
examplePath='views/Card/Content/ContentBlock'
description='A card contains blocks of content.'
examplePath='views/Card/Content/CardExampleContentBlock'
/>
<ComponentExample
title='Extra Content'
description='A card can contain extra content meant to be formatted separately from the main content'
examplePath='views/Card/Content/ExtraContent'
description='A card can contain extra content meant to be formatted separately from the main content.'
examplePath='views/Card/Content/CardExampleExtraContent'
/>
<ComponentExample
title='Image'
description='A card can contain an image'
examplePath='views/Card/Content/ImageCard'
description='A card can contain an image.'
examplePath='views/Card/Content/CardExampleImageCard'
/>
<ComponentExample
title='Header'
description='A card can contain a header'
examplePath='views/Card/Content/HeaderCard'
description='A card can contain a header.'
examplePath='views/Card/Content/CardExampleHeaderCard'
/>
<ComponentExample
title='Link'
description='A card can be formatted to link to other contnet'
examplePath='views/Card/Content/LinkCard'
description='A card can be formatted to link to other content.'
examplePath='views/Card/Content/CardExampleLinkCard'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const items = [
},
]

const GroupByProps = () => (
const CardExampleGroupProps = () => (
<Card.Group items={items} />
)

export default GroupByProps
export default CardExampleGroupProps
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Button, Card, Image } from 'semantic-ui-react'

const Groups = () => (
const CardExampleGroups = () => (
<Card.Group>
<Card>
<Card.Content>
Expand Down Expand Up @@ -66,4 +66,4 @@ const Groups = () => (
</Card.Group>
)

export default Groups
export default CardExampleGroups
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Card, Icon, Image } from 'semantic-ui-react'

const IndividualCard = () => (
const CardExampleIndividualCard = () => (
<Card>
<Image src='http://semantic-ui.com/images/avatar2/large/matthew.png' />
<Card.Content>
Expand All @@ -26,4 +26,4 @@ const IndividualCard = () => (
</Card>
)

export default IndividualCard
export default CardExampleIndividualCard
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const extra = (
</a>
)

const IndividualCardByProps = () => (
const CardExampleIndividualCardProps = () => (
<Card
image='http://semantic-ui.com/images/avatar/large/elliot.jpg'
header='Elliot Baker'
Expand All @@ -18,4 +18,4 @@ const IndividualCardByProps = () => (
/>
)

export default IndividualCardByProps
export default CardExampleIndividualCardProps
16 changes: 8 additions & 8 deletions docs/app/Examples/views/Card/Types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Card'
description='A card displays site content in a manner similar to a playing card'
examplePath='views/Card/Types/IndividualCard'
description='A card displays site content in a manner similar to a playing card.'
examplePath='views/Card/Types/CardExampleIndividualCard'
/>
<ComponentExample
description='You can also use props to configure the markup'
examplePath='views/Card/Types/IndividualCardByProps'
description='You can also use props to configure the markup.'
examplePath='views/Card/Types/CardExampleIndividualCardProps'
/>
<ComponentExample
title='Cards'
description='A group of cards'
examplePath='views/Card/Types/Groups'
description='A group of cards.'
examplePath='views/Card/Types/CardExampleGroups'
/>
<ComponentExample
description='You can also use props to configure the markup'
examplePath='views/Card/Types/GroupByProps'
description='You can also use props to configure the markup.'
examplePath='views/Card/Types/CardExampleGroupProps'
/>
</ExampleSection>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Card } from 'semantic-ui-react'

const src = 'http://semantic-ui.com/images/wireframe/white-image.png'

const ColoredCards = () => (
const CardExampleColored = () => (
<Card.Group itemsPerRow={4}>
<Card color='red' image={src} />
<Card color='orange' image={src} />
Expand All @@ -20,4 +20,4 @@ const ColoredCards = () => (
</Card.Group>
)

export default ColoredCards
export default CardExampleColored
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Card } from 'semantic-ui-react'

const src = 'http://semantic-ui.com/images/wireframe/image.png'

const ColumnCountCards = () => (
const CardExampleColumnCount = () => (
<Card.Group itemsPerRow={6}>
<Card raised image={src} />
<Card raised image={src} />
Expand All @@ -20,4 +20,4 @@ const ColumnCountCards = () => (
</Card.Group>
)

export default ColumnCountCards
export default CardExampleColumnCount
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react'
import { Card } from 'semantic-ui-react'

const FluidCards = () => (
const CardExampleFluid = () => (
<Card.Group>
<Card fluid color='red' header='Option 1' />
<Card fluid color='orange' header='Option 2' />
<Card fluid color='yellow' header='Option 3' />
</Card.Group>
)

export default FluidCards
export default CardExampleFluid
12 changes: 6 additions & 6 deletions docs/app/Examples/views/Card/Variations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ const Variations = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Fluid Card'
description='A fluid card takes up the width of its container'
examplePath='views/Card/Variations/Fluid'
description='A fluid card takes up the width of its container.'
examplePath='views/Card/Variations/CardExampleFluid'
/>
<ComponentExample
title='Colored'
description='A card can specify a color'
examplePath='views/Card/Variations/Colored'
description='A card can specify a color.'
examplePath='views/Card/Variations/CardExampleColored'
/>
<ComponentExample
title='Column Count'
description='A group of cards can set how many cards should exist in a row'
examplePath='views/Card/Variations/ColumnCount'
description='A group of cards can set how many cards should exist in a row.'
examplePath='views/Card/Variations/CardExampleColumnCount'
/>
</ExampleSection>
)
Expand Down