forked from zoltantothcom/Design-Patterns-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTitle.jsx
More file actions
33 lines (28 loc) · 765 Bytes
/
Title.jsx
File metadata and controls
33 lines (28 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import styled from 'styled-components';
const TitleContainer = styled.div`
padding: 0.75rem 0 1rem;
border-radius: 4px;
background: ${props => props.theme.titleBackground};
margin: 1rem 0 0;
text-align: center;
width: 100%;
`;
const Heading = styled.h1`
font-family: 'Karla', sans-serif;
font-size: 1.75rem;
color: ${props => props.theme.title};
margin: 0;
`;
const SubHeading = styled.h2`
font: 400 0.875rem 'Karla', sans-serif;
color: ${props => props.theme.link};
margin: 0.75rem 0 0;
`;
export const Title = () => (
<TitleContainer>
<Heading>Design Patterns Game</Heading>
<SubHeading>“Gang of Four” patterns in JavaScript</SubHeading>
</TitleContainer>
);
export default Title;