@@ -71,8 +71,8 @@ export function FastTrackProgress({doc, search}: {doc: IsaacFastTrackQuestionPag
71
71
} , [ search ] ) ;
72
72
73
73
const deviceSize = useDeviceSize ( ) ;
74
- const hexagonUnitLength = { xl : 28 , lg : 26 , md : 22 , sm : 22 , xs : 12.5 } [ deviceSize ] ;
75
- const hexagonPadding = { xl : 4 , lg : 4 , md : 3 , sm : 3 , xs : 2 } [ deviceSize ] ;
74
+ const hexagonUnitLength = { xxl : 28 , xl : 28 , lg : 26 , md : 22 , sm : 22 , xs : 12.5 } [ deviceSize ] ;
75
+ const hexagonPadding = { xxl : 4 , xl : 4 , lg : 4 , md : 3 , sm : 3 , xs : 2 } [ deviceSize ] ;
76
76
const hexagonHalfWidth = hexagonUnitLength ;
77
77
const hexagonQuarterHeight = hexagonUnitLength / Math . sqrt ( 3 ) ;
78
78
const progressBarPadding = [ "xs" ] . includes ( deviceSize ) ? 1 : 5 ;
@@ -115,7 +115,7 @@ export function FastTrackProgress({doc, search}: {doc: IsaacFastTrackQuestionPag
115
115
quarterHeight : hexagonQuarterHeight ,
116
116
base : {
117
117
stroke : {
118
- width : { xl : 3 , lg : 3 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] ,
118
+ width : { xxl : 3 , xl : 3 , lg : 3 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] ,
119
119
colour : '#ddd'
120
120
} ,
121
121
fill : {
@@ -127,7 +127,7 @@ export function FastTrackProgress({doc, search}: {doc: IsaacFastTrackQuestionPag
127
127
} ,
128
128
questionPartProgress : {
129
129
stroke : {
130
- width : { xl : 3 , lg : 3 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] ,
130
+ width : { xxl : 3 , xl : 3 , lg : 3 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] ,
131
131
colour : '#009acd'
132
132
} ,
133
133
fill : { colour : 'none' } ,
@@ -137,7 +137,7 @@ export function FastTrackProgress({doc, search}: {doc: IsaacFastTrackQuestionPag
137
137
const conceptConnectionProperties = {
138
138
fill : 'none' ,
139
139
stroke : '#fea100' ,
140
- strokeWidth : { xl : 3 , lg : 3 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] ,
140
+ strokeWidth : { xxl : 3 , xl : 3 , lg : 3 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] ,
141
141
strokeDasharray : 4
142
142
} ;
143
143
@@ -289,12 +289,12 @@ export function FastTrackProgress({doc, search}: {doc: IsaacFastTrackQuestionPag
289
289
290
290
function generateHexagonTitle ( title : string , isCurrentQuestion : boolean ) {
291
291
const isTwoCharLength = ( "" + title ) . length > 1 ;
292
- const xSingleCharPosition = hexagon . halfWidth - { xl : 8 , lg : 8 , md : 6 , sm : 6 , xs : 5 } [ deviceSize ] ;
293
- const xTwoCharPosition = hexagon . halfWidth - { xl : 14 , lg : 14 , md : 11 , sm : 11 , xs : 10 } [ deviceSize ] ;
294
- const yPosition = hexagon . quarterHeight * 2 + { xl : 9 , lg : 9 , md : 7 , sm : 7 , xs : 6 } [ deviceSize ] ;
292
+ const xSingleCharPosition = hexagon . halfWidth - { xxl : 8 , xl : 8 , lg : 8 , md : 6 , sm : 6 , xs : 5 } [ deviceSize ] ;
293
+ const xTwoCharPosition = hexagon . halfWidth - { xxl : 14 , xl : 14 , lg : 14 , md : 11 , sm : 11 , xs : 10 } [ deviceSize ] ;
294
+ const yPosition = hexagon . quarterHeight * 2 + { xxl : 9 , xl : 9 , lg : 9 , md : 7 , sm : 7 , xs : 6 } [ deviceSize ] ;
295
295
return < text
296
296
fontFamily = "Exo 2"
297
- fontSize = { { xl : 26 , lg : 26 , md : 18 , sm : 18 , xs : 18 } [ deviceSize ] }
297
+ fontSize = { { xxl : 26 , xl : 26 , lg : 26 , md : 18 , sm : 18 , xs : 18 } [ deviceSize ] }
298
298
fontStyle = "italic"
299
299
fontWeight = { [ "xs" ] . includes ( deviceSize ) ? 500 : 600 }
300
300
fill = { isCurrentQuestion ? '#333' : '#ccc' }
@@ -310,10 +310,10 @@ export function FastTrackProgress({doc, search}: {doc: IsaacFastTrackQuestionPag
310
310
function generateCompletionTick ( isCurrentQuestion : boolean ) {
311
311
return < image
312
312
href = "/assets/common/icons/tick-bg.png"
313
- height = { { xl : 36 , lg : 34 , md : 29 , sm : 29 , xs : 18 } [ deviceSize ] }
314
- width = { { xl : 36 , lg : 34 , md : 29 , sm : 29 , xs : 18 } [ deviceSize ] }
315
- x = { hexagon . halfWidth - { xl : 18 , lg : 17 , md : 15 , sm : 15 , xs : 9 } [ deviceSize ] }
316
- y = { hexagon . quarterHeight - { xl : 2 , lg : 2 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] }
313
+ height = { { xxl : 36 , xl : 36 , lg : 34 , md : 29 , sm : 29 , xs : 18 } [ deviceSize ] }
314
+ width = { { xxl : 36 , xl : 36 , lg : 34 , md : 29 , sm : 29 , xs : 18 } [ deviceSize ] }
315
+ x = { hexagon . halfWidth - { xxl : 18 , xl : 18 , lg : 17 , md : 15 , sm : 15 , xs : 9 } [ deviceSize ] }
316
+ y = { hexagon . quarterHeight - { xxl : 2 , xl : 2 , lg : 2 , md : 2 , sm : 2 , xs : 2 } [ deviceSize ] }
317
317
opacity = { isCurrentQuestion ? 1 : 0.3 }
318
318
/> ;
319
319
}
0 commit comments