@@ -14,26 +14,37 @@ const OSX = global.process.platform === 'darwin'
1414const BRAND_COLOR = '#18AF90'
1515
1616const searchTutorialElement = (
17- < svg width = '750' height = '120 ' className = 'tutorial' >
18- < text x = '450 ' y = '33 ' fill = { BRAND_COLOR } fontSize = '24' > Search some posts!!</ text >
19- < text x = '450 ' y = '60 ' fill = { BRAND_COLOR } fontSize = '18' > { '- Search by tag : #{string}' } </ text >
20- < text x = '450 ' y = '85 ' fill = { BRAND_COLOR } fontSize = '18' >
17+ < svg width = '750' height = '300 ' className = 'tutorial' >
18+ < text x = '125 ' y = '63 ' fill = { BRAND_COLOR } fontSize = '24' > Search some posts!!</ text >
19+ < text x = '125 ' y = '90 ' fill = { BRAND_COLOR } fontSize = '18' > { '- Search by tag : #{string}' } </ text >
20+ < text x = '125 ' y = '115 ' fill = { BRAND_COLOR } fontSize = '18' >
2121 { '- Search by folder : /{folder_name}\n' } </ text >
22- < text x = '465 ' y = '105 ' fill = { BRAND_COLOR } fontSize = '14' >
22+ < text x = '140 ' y = '135 ' fill = { BRAND_COLOR } fontSize = '14' >
2323 { 'exact match : //{folder_name}' } </ text >
2424
25- < svg width = '500' height = '300' >
26- < path fill = 'white' d = 'M54.5,51.5c-12.4,3.3-27.3-1.4-38.4-7C11.2,42,5,38.1,5.6,31.8c0.7-6.9,8.1-11.2,13.8-13.7
27- c12.3-5.4,26.4-6.8,39.7-7.7C72.4,9.6,85.7,9.7,99,9.8c55.2,0.3,110.4,2.2,165.5-1.5C291,6.5,317.7,3.8,344.1,7
28- c12.8,1.6,25.8,4.4,37.5,10c1.2,0.6,2.4,1.1,3.5,1.8c2.4,1.4,3.2,1.5,3.3,4.5c0.1,3.6-2.3,5.9-4.8,8.3c-3.9,3.8-8.6,6.8-13.5,9.2
29- c-12.6,6-26.5,7.2-40.3,7.7c-13.7,0.5-27.5,0.6-41.2,1.1c-27.7,0.9-55.3,2.2-82.9,4c-30.8,2-61.6,4.5-92.3,7.6
30- c-15.4,1.5-30.8,3.7-46.3,4.9c-13.6,1.1-30.7,1.5-41.8-7.8c-1.5-1.2-3.6,0.9-2.1,2.1c8.9,7.5,21.4,9.2,32.7,9.2
31- c15.3,0,30.6-2.6,45.8-4.2c31.3-3.3,62.7-6,94.2-8.1c30.9-2.1,61.8-3.7,92.8-4.7c15.7-0.5,31.4-0.5,47-1.3
32- c13.1-0.7,26.3-2.7,38.1-8.9c4.4-2.3,8.5-5.1,12-8.6c2.8-2.8,7.3-7.3,6.4-11.7c-0.8-4.3-6.4-6.3-9.8-7.9
33- c-5.6-2.6-11.4-4.6-17.3-6.2c-28.3-7.5-58.1-5.6-87-3.6c-62.3,4.4-124.5,2.6-187,2.4c-16.4,0-32.8,0-49,2.4
34- C29.9,11,13.4,13.8,5.5,24.6c-7.3,10,0.7,18.4,9.8,22.9c11.9,5.8,26.9,10.4,40,7C57.2,53.9,56.4,51,54.5,51.5L54.5,51.5z' />
35- < path fill = 'white' d = 'M446.5,21.4c-9.1-1.6-18.1-3.5-27.4-3.5c-10.2,0-20.4,1.4-30.5,2.8c-1.9,0.3-1.9,3.3,0,3
36- c9.5-1.3,19.1-2.6,28.8-2.7c9.6-0.2,18.9,1.7,28.3,3.4C447.6,24.7,448.4,21.8,446.5,21.4L446.5,21.4z' />
25+ < svg x = '90' width = '500' height = '300' >
26+ < path fill = 'white' d = 'M27.2,6.9c-1.7,3.5-6,4.8-8,8.2c-1.8,3.1-2.1,6.8-1.8,10.2c0.7,7,4.2,16.7,10.3,20.7c0.5,0.4,1.4,0.2,1.8-0.2
27+ c0.1-0.1,0.2-0.2,0.3-0.3c0.6-0.6,0.6-1.5,0-2.1c-0.2-0.2-0.3-0.4-0.5-0.5c-1.3-1.4-3.2,0.7-1.9,2.1c0.2,0.2-0.3,0.4,0.7,0.5
28+ c0-0.7,0-1.4,0-2.1c0,0.1-0.4,0.2-0.5,0.3c0.6-0.1,1.1-0.2,1.7-0.2c-5.7-3.7-9.2-14.5-9-20.9c0.1-4,1.6-6.7,4.8-9.1
29+ c2-1.5,3.6-2.6,4.7-4.9C30.6,6.7,28,5.2,27.2,6.9L27.2,6.9z' />
30+ < path fill = 'white' d = 'M9.5,24.4c2.4-2.7,4.9-5.4,7.3-8c2.5-2.8,5.7-7.6,9.9-7.8c-0.5-0.5-1-1-1.5-1.5c0.1,6.8,1.9,13.1,5.3,18.9
31+ c1,1.7,3.6,0.2,2.6-1.5c-3.2-5.4-4.8-11.1-4.9-17.4c0-0.8-0.7-1.5-1.5-1.5c-3.6,0.2-5.9,2.1-8.3,4.7c-3.7,3.9-7.3,8-11,12
32+ C6.1,23.7,8.2,25.9,9.5,24.4L9.5,24.4z' />
33+ </ svg >
34+ </ svg >
35+ )
36+
37+ const newPostTutorialElement = (
38+ < svg width = '900' height = '900' className = 'tutorial' >
39+ < text x = '470' y = '50' fill = { BRAND_COLOR } fontSize = '24' > Create a new post!!</ text >
40+ < text x = '490' y = '75' fill = { BRAND_COLOR } fontSize = '16' children = { `press \`${ OSX ? '⌘' : '^' } + n\`` } />
41+ < svg x = '415' y = '20' width = '400' height = '400' >
42+ < path fill = 'white' d = 'M11.6,14.7c1,5.5,2.9,10.7,5.7,15.5c1,1.7,3.5,0.2,2.6-1.5c-2.6-4.7-4.4-9.6-5.4-14.8
43+ C14.1,12,11.3,12.8,11.6,14.7L11.6,14.7z' />
44+ < path fill = 'white' d = 'M16.8,17.1c4,0.2,7.6-1.1,10.7-3.6c1.5-1.2-0.6-3.3-2.1-2.1c-2.4,2-5.4,2.9-8.6,2.7C14.9,14,14.9,17,16.8,17.1
45+ L16.8,17.1z' />
46+ < path fill = 'white' d = 'M13.8,17.6c11.9,3.5,24.1,4.9,36.4,3.9c1.9-0.1,1.9-3.1,0-3c-12.1,0.9-24-0.3-35.6-3.8
47+ C12.7,14.1,11.9,17,13.8,17.6L13.8,17.6z' />
3748 </ svg >
3849 </ svg >
3950)
@@ -202,6 +213,7 @@ export default class ArticleTopBar extends React.Component {
202213 < i className = 'fa fa-plus' />
203214 < span className = 'tooltip' > New Post ({ OSX ? '⌘' : '^' } + n)</ span >
204215 </ button >
216+ { status . isTutorialOpen ? newPostTutorialElement : null }
205217 </ div >
206218 </ div >
207219
@@ -232,7 +244,7 @@ export default class ArticleTopBar extends React.Component {
232244 < div onClick = { e => this . handleTutorialButtonClick ( e ) } className = 'clickJammer' />
233245 < svg width = '500' height = '250' className = 'finder' >
234246 < text x = '100' y = '25' fontSize = '32' fill = { BRAND_COLOR } > Also, you can open Finder!!</ text >
235- < text x = '120 ' y = '55' fontSize = '18' fill = { BRAND_COLOR } > with pressing `Control` + `shift` + `tab` </ text >
247+ < text x = '150 ' y = '55' fontSize = '18' fill = { BRAND_COLOR } children = { ' with pressing ' + ( OSX ? '`⌘ + Alt + s`' : '`Win + Shift + s`' ) } / >
236248 </ svg >
237249 < svg width = '450' className = 'global' >
238250 < text x = '100' y = '45' fontSize = '24' fill = { BRAND_COLOR } > Hope you to enjoy our app :D</ text >
0 commit comments