1
1
import React from 'react' ;
2
2
import styled from 'styled-components' ;
3
+ import { useTranslation } from 'react-i18next' ;
3
4
4
5
const StyledAbout = styled . div `
5
6
color: ${ props => props . theme . text } ;
@@ -20,36 +21,37 @@ const Header = styled.h3`
20
21
margin-top: 2rem;
21
22
` ;
22
23
23
- const About = ( ) => (
24
- < StyledAbout >
25
- < Header > The Game</ Header >
26
- < p >
27
- Design Patterns - get familiar with the design patterns implemented in JavaScript, test
28
- yourself (or someone else) or simply for fun. Enjoy!
29
- </ p >
30
-
31
- < Header > References</ Header >
32
- < p >
33
- All the code samples are taken from this{ ' ' }
34
- < cite >
35
- < a href = "//github.com/fbeline/Design-Patterns-JS" target = "_blank" >
36
- awesome code compilation
37
- </ a > { ' ' }
38
- by Felipe Beline
39
- </ cite >
40
- .
41
- </ p >
42
- < p >
43
- If you want a deep dive into the subject I can't recommend enough{ ' ' }
44
- < cite >
45
- < a href = "//addyosmani.com/resources/essentialjsdesignpatterns/book/" target = "_blank" >
46
- Learning JavaScript Design Patterns
47
- </ a > { ' ' }
48
- by Addy Osmani
49
- </ cite >
50
- .
51
- </ p >
52
- </ StyledAbout >
53
- ) ;
24
+ const About = ( ) => {
25
+ const { t } = useTranslation ( ) ;
26
+
27
+ return (
28
+ < StyledAbout >
29
+ < Header > { t ( 'The Game' ) } </ Header >
30
+ < p >
31
+ { t ( 'Design Patterns' ) } - { t ( 'Design Patterns Intro' ) }
32
+ </ p >
33
+
34
+ < Header > { t ( 'References' ) } </ Header >
35
+ < p >
36
+ { t ( 'Felipe Beline References' ) }
37
+ < cite >
38
+ < a href = "//github.com/fbeline/Design-Patterns-JS" target = "_blank" >
39
+ awesome code compilation
40
+ </ a >
41
+ </ cite >
42
+ .
43
+ </ p >
44
+ < p >
45
+ { t ( 'Addy Osmani References' ) }
46
+ < cite >
47
+ < a href = "//addyosmani.com/resources/essentialjsdesignpatterns/book/" target = "_blank" >
48
+ Learning JavaScript Design Patterns
49
+ </ a >
50
+ </ cite >
51
+ .
52
+ </ p >
53
+ </ StyledAbout >
54
+ ) ;
55
+ } ;
54
56
55
57
export default About ;
0 commit comments