Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 634aea5

Browse files
FInish Pattern component styling in Reference
1 parent 9fa168a commit 634aea5

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

‎src/components/Pattern.jsx‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ const StyledPattern = styled.div`
2323
}
2424
`;
2525

26-
const Memo = styled.span`
27-
color: ${props => props.theme.ATLANTIS};
26+
const SubHeader = styled.span`
27+
background-color: ${props => props.theme.titleBackground};
28+
color: ${props => props.theme.header};
2829
display: block;
30+
margin-bottom: 8px;
31+
padding: 4px;
32+
text-transform: uppercase;
33+
`;
34+
35+
const Type = styled.span`
36+
text-transform: capitalize;
2937
`;
3038

3139
const StyledLink = styled(Link)`
@@ -40,7 +48,6 @@ const StyledLink = styled(Link)`
4048
}
4149
`;
4250

43-
// const Pattern = ({ match, mode }) => {
4451
class Pattern extends React.Component {
4552
componentDidMount() {
4653
this.props.reset();
@@ -62,11 +69,11 @@ class Pattern extends React.Component {
6269
<React.Fragment>
6370
<h2>{pattern.name}</h2>
6471
<p>
65-
<Memo>Type:</Memo>
66-
{pattern.type} pattern
72+
<SubHeader>Type:</SubHeader>
73+
<Type>{pattern.type} pattern</Type>
6774
</p>
6875
<p>
69-
<Memo>Description:</Memo>
76+
<SubHeader>Description:</SubHeader>
7077
{`This pattern ${pattern.hint}.`}
7178
</p>
7279

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /