Skip to content

Commit 2ab92cc

Browse files
author
Josh Habdas
committed
Segment variations up to Circular
1 parent 69161f9 commit 2ab92cc

6 files changed

Lines changed: 141 additions & 6 deletions

File tree

docs/app/Examples/elements/Segment/Variations/SegmentAttachedComplexExample.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, {Component} from 'react';
2-
import {Header, Message, Segment, Segments} from 'stardust';
2+
import {Header, Message, Segment} from 'stardust';
33

44
export default class SegmentAttachedComplexExample extends Component {
55
render() {
66
return (
7-
<Segments>
7+
<div>
88
<Header.H5 className='attached'>
99
Dogs
1010
</Header.H5>
@@ -27,7 +27,7 @@ export default class SegmentAttachedComplexExample extends Component {
2727
<i className='warning icon'></i>
2828
You've reached the end of this content segment!
2929
</Message>
30-
</Segments>
30+
</div>
3131
);
3232
}
3333
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, {Component} from 'react';
2-
import {Segment, Segments} from 'stardust';
2+
import {Segment} from 'stardust';
33

44
export default class SegmentAttachedExample extends Component {
55
render() {
66
return (
7-
<Segments>
7+
<div>
88
<Segment className='top attached'>
99
This segment is on top
1010
</Segment>
@@ -14,7 +14,7 @@ export default class SegmentAttachedExample extends Component {
1414
<Segment className='bottom attached'>
1515
This segment is on bottom
1616
</Segment>
17-
</Segments>
17+
</div>
1818
);
1919
}
2020
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import React, {Component} from 'react';
2+
import {Segment} from 'stardust';
3+
4+
export default class SegmentColoredExample extends Component {
5+
render() {
6+
return (
7+
<div>
8+
<Segment className='red'>
9+
Red
10+
</Segment>
11+
<Segment className='orange'>
12+
Orange
13+
</Segment>
14+
<Segment className='yellow'>
15+
Yellow
16+
</Segment>
17+
<Segment className='olive'>
18+
Olive
19+
</Segment>
20+
<Segment className='green'>
21+
Green
22+
</Segment>
23+
<Segment className='teal'>
24+
Teal
25+
</Segment>
26+
<Segment className='blue'>
27+
Blue
28+
</Segment>
29+
<Segment className='violet'>
30+
Violet
31+
</Segment>
32+
<Segment className='purple'>
33+
Purple
34+
</Segment>
35+
<Segment className='pink'>
36+
Pink
37+
</Segment>
38+
<Segment className='brown'>
39+
Brown
40+
</Segment>
41+
<Segment className='grey'>
42+
Grey
43+
</Segment>
44+
<Segment className='black'>
45+
Black
46+
</Segment>
47+
</div>
48+
);
49+
}
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import React, {Component} from 'react';
2+
import {Segment} from 'stardust';
3+
4+
export default class SegmentColoredInvertedExample extends Component {
5+
render() {
6+
return (
7+
<div>
8+
<Segment className='red inverted'>
9+
Red
10+
</Segment>
11+
<Segment className='orange inverted'>
12+
Orange
13+
</Segment>
14+
<Segment className='yellow inverted'>
15+
Yellow
16+
</Segment>
17+
<Segment className='olive inverted'>
18+
Olive
19+
</Segment>
20+
<Segment className='green inverted'>
21+
Green
22+
</Segment>
23+
<Segment className='teal inverted'>
24+
Teal
25+
</Segment>
26+
<Segment className='blue inverted'>
27+
Blue
28+
</Segment>
29+
<Segment className='violet inverted'>
30+
Violet
31+
</Segment>
32+
<Segment className='purple inverted'>
33+
Purple
34+
</Segment>
35+
<Segment className='pink inverted'>
36+
Pink
37+
</Segment>
38+
<Segment className='brown inverted'>
39+
Brown
40+
</Segment>
41+
<Segment className='grey inverted'>
42+
Grey
43+
</Segment>
44+
<Segment className='black inverted'>
45+
Black
46+
</Segment>
47+
</div>
48+
);
49+
}
50+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React, {Component} from 'react';
2+
import {Segment} from 'stardust';
3+
4+
export default class SegmentEmphasisExample extends Component {
5+
render() {
6+
return (
7+
<div>
8+
<Segment>
9+
I'm here to tell you something, and you will probably read me first.
10+
</Segment>
11+
<Segment className='secondary'>
12+
I am pretty noticeable but you might check out other content before you look at me.
13+
</Segment>
14+
<Segment className='tertiary'>
15+
If you notice me you must be looking very hard.
16+
</Segment>
17+
</div>
18+
);
19+
}
20+
}

docs/app/Examples/elements/Segment/Variations/SegmentVariationsExamples.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ export default class SegmentVariationsExamples extends Component {
4747
description='A segment group may take up only as much space as is necessary.'
4848
examplePath='elements/Segment/Variations/SegmentCompactGroupExample'
4949
/>
50+
<ComponentExample
51+
title='Colored'
52+
description='A segment can be colored.'
53+
examplePath='elements/Segment/Variations/SegmentColoredExample'
54+
/>
55+
<ComponentExample
56+
title='Colored'
57+
description='These colors can be inverted.'
58+
examplePath='elements/Segment/Variations/SegmentColoredInvertedExample'
59+
/>
60+
<ComponentExample
61+
title='Emphasis'
62+
description='A segment can be formatted to appear more or less noticeable.'
63+
examplePath='elements/Segment/Variations/SegmentEmphasisExample'
64+
/>
5065
</ExampleSection>
5166
);
5267
}

0 commit comments

Comments
 (0)