@@ -27,7 +27,12 @@ export default class VueBuildIntro {
27
27
this . all . positionYStart = - 200
28
28
this . all . positionYEnd = 200
29
29
this . slogan = this . slogan ( )
30
- this . gettingStarted = this . getStarted ( )
30
+ this . gettingStarted = this . linkText ( 'Getting Started' , 'getting-started' )
31
+ this . gettingStarted . x = ( this . width / 2 ) - 100
32
+ this . gettingStarted . y = ( this . height ) - 75
33
+ this . features = this . linkText ( 'Features' , 'features' )
34
+ this . features . x = ( this . width / 2 ) + 100
35
+ this . features . y = ( this . height ) - 75
31
36
32
37
// Make a container to hold all v's
33
38
this . app . stage . addChild ( this . all ) // Add to state
@@ -150,7 +155,7 @@ export default class VueBuildIntro {
150
155
dropShadowBlur : 50
151
156
} )
152
157
153
- var text = new PIXI . Text ( 'Super Simple Cli' , style )
158
+ var text = new PIXI . Text ( 'Ultra Simple Cli' , style )
154
159
text . pivot . x = text . width / 2
155
160
text . pivot . y = text . height
156
161
text . x = this . width / 2
@@ -161,40 +166,41 @@ export default class VueBuildIntro {
161
166
return text
162
167
}
163
168
164
- getStarted ( ) {
169
+ linkText ( textStr , link ) {
165
170
var box = new PIXI . Container ( )
166
171
var style = new PIXI . TextStyle ( {
167
172
fontFamily : 'Helvetica' ,
168
- fontSize : 35 ,
173
+ fontSize : 28 ,
169
174
fontWeight : 'bold' ,
170
- fill : this . primaryColor
175
+ fill : this . secondaryColor
171
176
} )
172
177
173
- var text = new PIXI . Text ( 'Getting Started' , style )
178
+ var text = new PIXI . Text ( textStr , style )
174
179
text . pivot . x = text . width / 2
175
180
text . pivot . y = text . height
176
181
text . x = this . width / 2
177
182
text . y = this . height / 2
178
183
179
- var rect = new PIXI . Graphics ( )
180
- rect . beginFill ( this . secondaryColor , 1 )
181
- rect . drawRect ( 0 , 0 , 300 , 75 )
182
- rect . endFill ( )
183
- rect . pivot . x = rect . width / 2
184
- rect . pivot . y = rect . height
185
- rect . x = this . width / 2
186
- rect . y = this . height / 2
184
+ var arrow = new PIXI . Graphics ( )
185
+ arrow . lineStyle ( 4 , this . secondaryColor , 1 )
186
+ arrow . moveTo ( 0 , 0 )
187
+ arrow . lineTo ( 50 , 25 )
188
+ arrow . lineTo ( 100 , 0 )
189
+ arrow . pivot . x = arrow . width / 2
190
+ arrow . pivot . y = arrow . height
191
+ arrow . x = this . width / 2
192
+ arrow . y = ( this . height / 2 ) + 40
187
193
188
194
box . interactive = true
189
195
box . on ( 'click' , ( ) => {
190
- this . callback ( 'getting-started' )
196
+ this . callback ( link )
191
197
} )
192
198
193
199
// Set box
194
- box . addChild ( rect )
200
+ box . addChild ( arrow )
195
201
box . addChild ( text )
196
- box . pivot . x = box . width / 2
197
- box . pivot . y = box . height
202
+ box . pivot . x = this . width / 2
203
+ box . pivot . y = this . height / 2
198
204
box . x = this . width / 2
199
205
box . y = this . height / 2
200
206
@@ -232,7 +238,6 @@ export default class VueBuildIntro {
232
238
. then ( ( ) => {
233
239
this . slideAllUp ( )
234
240
this . slideSloganUp ( )
235
- this . slideGettingStartedUp ( )
236
241
} )
237
242
}
238
243
@@ -486,19 +491,6 @@ export default class VueBuildIntro {
486
491
} )
487
492
}
488
493
489
- slideGettingStartedUp ( timing = 2 , delay = 0.5 ) {
490
- return new Promise ( ( resolve , reject ) => {
491
- TweenMax . to ( this . gettingStarted , timing , {
492
- delay : delay ,
493
- y : 600 ,
494
- ease : Power3 . easeInOut ,
495
- onComplete : ( ) => {
496
- resolve ( )
497
- }
498
- } )
499
- } )
500
- }
501
-
502
494
getRandomNum ( min , max ) {
503
495
return Math . random ( ) * ( max - min ) + min
504
496
}
0 commit comments