@@ -17,22 +17,15 @@ import Miso hiding (at, view)
17
17
18
18
mainWidget :: Model -> View Action
19
19
mainWidget st =
20
- Grid. grid mempty
21
- $ [ div_
22
- [ class_ " container"
23
- ]
24
- ( Menu. menu st
25
- <> screenWidget st
26
- <> [ -- LayoutGrid.cell [LayoutGrid.span12]
27
- -- . (: mempty)
28
- -- $ div_
29
- -- mempty
30
- -- [ text . inspect $ st ^. #modelFavMap
31
- -- ],
32
- tosWidget
33
- ]
34
- )
20
+ section_
21
+ [ class_ " main-widget"
22
+ ]
23
+ $ [ header_ mempty $ Menu. menu st
35
24
]
25
+ <> [ main_ [class_ " main-widget-middle" ] $ screenWidget st
26
+ ]
27
+ <> [ footer_ mempty tosWidget
28
+ ]
36
29
<> ( if st ^. # modelLoading
37
30
then
38
31
[ div_
@@ -217,20 +210,19 @@ foldFieldPair :: Rational -> FieldPair DynamicField f -> Rational
217
210
foldFieldPair acc =
218
211
foldField acc . fieldPairValue
219
212
220
- tosWidget :: View Action
213
+ tosWidget :: [ View Action ]
221
214
tosWidget =
222
- Grid. cell
223
- [ Miso. text " \169 2024 " ,
224
- BrowserLink. browserLink
225
- BrowserLink. Args
226
- { BrowserLink. argsLink = functoraLink,
227
- BrowserLink. argsLabel = " Functora" ,
228
- BrowserLink. argsAction = PushUpdate . Instant
229
- },
230
- Miso. text " . All rights reserved. " ,
231
- Miso. text " By continuing to use this software, you agree to the " ,
232
- a_ [href_ " license.html" ] [Miso. text " Terms of Service" ],
233
- Miso. text " and " ,
234
- a_ [href_ " privacy.html" ] [Miso. text " Privacy Policy" ],
235
- Miso. text $ " . Version " <> vsn <> " ."
236
- ]
215
+ [ Miso. text " \169 2024 " ,
216
+ BrowserLink. browserLink
217
+ BrowserLink. Args
218
+ { BrowserLink. argsLink = functoraLink,
219
+ BrowserLink. argsLabel = " Functora" ,
220
+ BrowserLink. argsAction = PushUpdate . Instant
221
+ },
222
+ Miso. text " . All rights reserved. " ,
223
+ Miso. text " By continuing to use this software, you agree to the " ,
224
+ a_ [href_ " license.html" ] [Miso. text " Terms of Service" ],
225
+ Miso. text " and " ,
226
+ a_ [href_ " privacy.html" ] [Miso. text " Privacy Policy" ],
227
+ Miso. text $ " . Version " <> vsn <> " ."
228
+ ]
0 commit comments