File tree Expand file tree Collapse file tree 14 files changed +1567
-190
lines changed Expand file tree Collapse file tree 14 files changed +1567
-190
lines changed Original file line number Diff line number Diff line change 1
- .root {
1
+ .App {
2
+ text-align : center ;
3
+ display : flex ;
4
+ flex-direction : column ;
5
+ align-items : center ;
2
6
position : absolute ;
3
7
top : 0 ;
4
8
left : 0 ;
5
9
right : 0 ;
6
10
bottom : 0 ;
7
11
background-color : #ffffff ;
8
-
9
- }
10
- .App {
11
- text-align : center ;
12
- display : flex ;
13
- flex-direction : column ;
14
- align-items : center ;
15
- justify-content : center ;
16
-
17
12
}
18
-
Original file line number Diff line number Diff line change 4
4
*/
5
5
display : inline-block ;
6
6
justify-content : space-around ;
7
- width : 30% ;
8
7
padding : 20px ;
9
8
}
10
9
11
10
.buttonBox {
11
+ padding : 20px ;
12
+ display : flex ;
13
+ justify-content : center ;
14
+ }
15
+
16
+ .btnBoxVFG {
12
17
padding : 20px ;
13
18
display : flex ;
14
19
justify-content : space-around ;
18
23
/*
19
24
background: #fff;
20
25
*/
26
+ position : relative ;
21
27
display : flex ;
28
+ flex-direction : column ;
29
+ align-content : space-around ;
22
30
justify-content : space-around ;
23
- }
24
31
32
+ }
25
33
.container {
26
34
width : 100% ;
27
- height : 100% , ;
35
+ height : calc ( 100% - 65 px ) ;
28
36
background-color : #FFFFFF ;
37
+ overflow : auto ;
29
38
}
30
39
31
40
.header {
32
41
width : 100% ;
33
42
height : 50px ;
34
- background-color : " #20477A" ;
43
+ background-color : #20477A ;
35
44
}
36
45
37
46
.subtitle {
@@ -48,14 +57,12 @@ background: #fff;
48
57
49
58
.text {
50
59
text-align : left ;
51
- margin-top : 2% ;
52
- margin-left : 25% ;
53
- margin-right : 25% ;
60
+ margin : 10px 25% ;
54
61
}
55
62
56
63
.wrapper {
57
64
position : relative ;
58
-
65
+ margin-left : 10 % ;
59
66
}
60
67
.loading {
61
68
position : absolute ;
@@ -69,4 +76,16 @@ background: #fff;
69
76
right : 0 ;
70
77
bottom : 0 ;
71
78
z-index : 999 ;
79
+ }
80
+ .dropzoneAreaBox {
81
+ width : 320px ;
82
+ height : 200px ;
83
+ background-color : red ;
84
+ }
85
+ .fileTitle {
86
+ font-size : 22px ;
87
+ }
88
+ .fileDesc {
89
+ font-size : 20px ;
90
+ line-height : 30px ;
72
91
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const nav = {
39
39
problem : '/problem' ,
40
40
vfg : '/vfg' ,
41
41
manual : 'https://planimation.github.io/documentation/ ' ,
42
- demo : '/demo ' ,
42
+ demo : 'https://www.youtube.com/watch?v=Cj2rWdt1YQU ' ,
43
43
home : '/'
44
44
} ;
45
45
@@ -51,8 +51,11 @@ function NavigationBar() {
51
51
const handleClick = ( url ) => {
52
52
setUrl ( url ) ;
53
53
if ( url === 'manual' ) {
54
- window . location . href ( nav [ url ] )
55
- } else {
54
+ // window.location.href(nav[url])
55
+ } else if ( url === 'demo' ) {
56
+ // window.location.href(nav[url])
57
+ }
58
+ else {
56
59
history . push ( nav [ url ] ) ;
57
60
58
61
}
@@ -75,7 +78,7 @@ function NavigationBar() {
75
78
< a href = { 'https://planimation.github.io/documentation/' } target = '_blank' rel = "noreferrer" className = { classes . alink } > User Manual</ a >
76
79
</ Link >
77
80
< Link variant = "button" color = "inherit" onClick = { ( ) => handleClick ( 'demo' ) } className = { classes . link } >
78
- Demo
81
+ < a href = { 'https://www.youtube.com/watch?v=Cj2rWdt1YQU' } target = '_blank' rel = "noreferrer" className = { classes . alink } > Demo</ a >
79
82
</ Link >
80
83
</ nav >
81
84
< Button color = "inherit" variant = "outlined" onClick = { ( ) => handleClick ( 'home' ) } className = { classes . link } >
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ const tiers = [
93
93
{
94
94
title : 'VFG' ,
95
95
pageNo : 2 ,
96
- description : [ 'Build visualisation from \nVFG ' ] ,
96
+ description : [ 'Build visualisation from VFG ' ] ,
97
97
buttonText : 'Sign up for free' ,
98
98
buttonVariant : 'outlined' ,
99
99
} ,
@@ -150,7 +150,7 @@ export default function Home() {
150
150
window . open ( 'https://planimation.github.io/documentation/' )
151
151
break ;
152
152
case 4 :
153
- history . push ( '/demo' ) ;
153
+ window . open ( 'https://www.youtube.com/watch?v=Cj2rWdt1YQU' )
154
154
break ;
155
155
default : return ;
156
156
}
@@ -199,7 +199,7 @@ export default function Home() {
199
199
</div> */ }
200
200
< ul className = { classes . itemTitle } >
201
201
{ tier . description . map ( ( line ) => (
202
- < Typography component = "li" variant = "subtitle1" align = "center" key = { line } >
202
+ < Typography variant = "subtitle1" align = "center" key = { line } >
203
203
{ line }
204
204
</ Typography >
205
205
) ) }
Original file line number Diff line number Diff line change @@ -5,24 +5,24 @@ if(content) {
5
5
contentObject = JSON . parse ( content ) ;
6
6
}
7
7
8
- function getAllStages ( ) {
8
+ export function getAllStages ( ) {
9
9
const visualStages = contentObject . visualStages || [ ] ;
10
10
const stages = visualStages . map ( stage => {
11
11
return stage . visualSprites ;
12
12
} )
13
13
return stages ;
14
14
}
15
15
16
- function getSteps ( ) {
16
+ export function getSteps ( ) {
17
17
return contentObject . visualStages ? contentObject . visualStages . map ( ( s => s . stageName ) ) : [ ] ;
18
18
}
19
19
20
- function getStepInfo ( ) {
20
+ export function getStepInfo ( ) {
21
21
return contentObject . visualStages ? contentObject . visualStages . map ( ( s => s . stageInfo ) ) : [ ] ;
22
22
}
23
23
24
24
25
- function getSubGoal ( ) {
25
+ export function getSubGoal ( ) {
26
26
if ( ! contentObject . subgoalMap ) {
27
27
return { } ;
28
28
}
@@ -46,7 +46,7 @@ function getSubGoal() {
46
46
return map ;
47
47
}
48
48
49
- function getStepSubgoalMap ( ) {
49
+ export function getStepSubgoalMap ( ) {
50
50
if ( ! contentObject . subgoalMap ) {
51
51
return { } ;
52
52
}
You can’t perform that action at this time.
0 commit comments