File tree Expand file tree Collapse file tree 10 files changed +31
-16
lines changed Expand file tree Collapse file tree 10 files changed +31
-16
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Design Patterns - a quick game to test your familiarity with the 'Gang of Four' design patterns implemented in JS.
6
6
7
- ### :zap : [ PLAY HERE] ( http ://designpatternsgame.com/)
7
+ ### :zap : [ PLAY HERE] ( https ://designpatternsgame.com/)
8
8
9
9
![ Design Patterns - game results screenshot] ( /static/screenshot.png?sanitize=true&raw=true )
10
10
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ exports[`<Header /> component renders with DARK theme 1`] = `
53
53
}
54
54
55
55
.c8 {
56
- font : 400 0.925 rem ' Karla' ,sans - serif ;
56
+ font : 400 0.875 rem ' Karla' ,sans - serif ;
57
57
color : #C8C8C8 ;
58
58
margin : 0.75rem 0 0 ;
59
59
}
@@ -226,7 +226,7 @@ exports[`<Header /> component renders with DARK theme 1`] = `
226
226
<h2
227
227
className = " c8"
228
228
>
229
- implemented in JavaScript
229
+ “Gang of Four” patterns in JavaScript
230
230
</h2 >
231
231
</div >
232
232
</header >
@@ -286,7 +286,7 @@ exports[`<Header /> component renders with LIGHT theme 1`] = `
286
286
}
287
287
288
288
.c8 {
289
- font : 400 0.925 rem ' Karla' ,sans - serif ;
289
+ font : 400 0.875 rem ' Karla' ,sans - serif ;
290
290
color : #6F256F ;
291
291
margin : 0.75rem 0 0 ;
292
292
}
@@ -459,7 +459,7 @@ exports[`<Header /> component renders with LIGHT theme 1`] = `
459
459
<h2
460
460
className = " c8"
461
461
>
462
- implemented in JavaScript
462
+ “Gang of Four” patterns in JavaScript
463
463
</h2 >
464
464
</div >
465
465
</header >
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ exports[`REFERENCE - Patterns List renders all the patterns 1`] = `
16
16
margin - top : 2.5rem ;
17
17
}
18
18
19
+ .c0 h3 {
20
+ border - bottom : 1px solid ;
21
+ padding - bottom : 1rem ;
22
+ }
23
+
19
24
<div
20
25
className = " c0"
21
26
>
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ exports[`<Title /> component renders with a DARK theme 1`] = `
18
18
}
19
19
20
20
.c2 {
21
- font : 400 0.925 rem ' Karla' ,sans - serif ;
21
+ font : 400 0.875 rem ' Karla' ,sans - serif ;
22
22
color : #C8C8C8 ;
23
23
margin : 0.75rem 0 0 ;
24
24
}
@@ -34,7 +34,7 @@ exports[`<Title /> component renders with a DARK theme 1`] = `
34
34
<h2
35
35
className = " c2"
36
36
>
37
- implemented in JavaScript
37
+ “Gang of Four” patterns in JavaScript
38
38
</h2 >
39
39
</div >
40
40
` ;
@@ -57,7 +57,7 @@ exports[`<Title /> component renders with a LIGHT theme 1`] = `
57
57
}
58
58
59
59
.c2 {
60
- font : 400 0.925 rem ' Karla' ,sans - serif ;
60
+ font : 400 0.875 rem ' Karla' ,sans - serif ;
61
61
color : #6F256F ;
62
62
margin : 0.75rem 0 0 ;
63
63
}
@@ -73,7 +73,7 @@ exports[`<Title /> component renders with a LIGHT theme 1`] = `
73
73
<h2
74
74
className = " c2"
75
75
>
76
- implemented in JavaScript
76
+ “Gang of Four” patterns in JavaScript
77
77
</h2 >
78
78
</div >
79
79
` ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ exports[`About page renders with a DARK theme 1`] = `
16
16
}
17
17
18
18
.c1 {
19
- color : #888888 ;
19
+ color : #F5F5F5 ;
20
20
margin - top : 2rem ;
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ exports[`Patterns page renders the Patterns list 1`] = `
16
16
margin - top : 2.5rem ;
17
17
}
18
18
19
+ .c0 h3 {
20
+ border - bottom : 1px solid ;
21
+ padding - bottom : 1rem ;
22
+ }
23
+
19
24
<div
20
25
className = " c0"
21
26
>
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " javascript-patterns" ,
3
- "version" : " 0.1.0" ,
4
- "private" : true ,
2
+ "name" : " design-patterns-game" ,
3
+ "version" : " 1.0.0" ,
5
4
"dependencies" : {
6
5
"prop-types" : " ^15.7.2" ,
7
6
"react" : " ^16.8.6" ,
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ const StyledPatterns = styled.div`
21
21
color: ${ props => props . theme . header } ;
22
22
margin-top: 2.5rem;
23
23
}
24
+
25
+ h3 {
26
+ border-bottom: 1px solid ${ props => props . theme . text } ;
27
+ color: ${ props => props . theme . header } ;
28
+ padding-bottom: 1rem;
29
+ }
24
30
` ;
25
31
26
32
const PatternsList = ( ) => {
Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ const Heading = styled.h1`
18
18
` ;
19
19
20
20
const SubHeading = styled . h2 `
21
- font: 400 0.925rem 'Karla', sans-serif;
21
+ font: 400 0.875rem 'Karla', sans-serif;
22
22
color: ${ props => props . theme . link } ;
23
23
margin: 0.75rem 0 0;
24
24
` ;
25
25
26
26
export const Title = ( ) => (
27
27
< TitleContainer >
28
28
< Heading > Design Patterns Game</ Heading >
29
- < SubHeading > implemented in JavaScript</ SubHeading >
29
+ < SubHeading > “Gang of Four” patterns in JavaScript</ SubHeading >
30
30
</ TitleContainer >
31
31
) ;
32
32
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const themeDark = {
36
36
toggleActiveBorder : C . SILVER ,
37
37
38
38
// text and header
39
- header : C . GRAY ,
39
+ header : C . WILD_SAND ,
40
40
text : C . SILVER ,
41
41
42
42
border : C . TUNDORA
You can’t perform that action at this time.
0 commit comments