aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/Product.elm
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/Product.elm')
-rw-r--r--frontend/src/Product.elm24
1 files changed, 16 insertions, 8 deletions
diff --git a/frontend/src/Product.elm b/frontend/src/Product.elm
index 964538b..bedb22d 100644
--- a/frontend/src/Product.elm
+++ b/frontend/src/Product.elm
@@ -257,7 +257,7 @@ viewProduct p =
257 div 257 div
258 [ css 258 [ css
259 [ marginBottom (px 20) 259 [ marginBottom (px 20)
260 , padding (px 20) 260 , paddingTop (px 20)
261 , Css.width (pct 100) 261 , Css.width (pct 100)
262 ] 262 ]
263 ] 263 ]
@@ -265,6 +265,7 @@ viewProduct p =
265 [ css 265 [ css
266 [ float left 266 [ float left
267 , Css.width (pct 50) 267 , Css.width (pct 50)
268 , Css.height (px 400)
268 ] 269 ]
269 ] 270 ]
270 [ modelViewer 271 [ modelViewer
@@ -274,6 +275,7 @@ viewProduct p =
274 , arIosSrc p.iosSrc 275 , arIosSrc p.iosSrc
275 , loading "eager" 276 , loading "eager"
276 , arModes "webxr" 277 , arModes "webxr"
278 , css [ Css.height (pct 100), Css.width (pct 100) ]
277 ] 279 ]
278 [] 280 []
279 ] 281 ]
@@ -312,12 +314,11 @@ viewProduct p =
312 , money 314 , money
313 ] 315 ]
314 ] 316 ]
315 [ text <| String.fromFloat p.price 317 [ text <| String.fromFloat p.price ]
316 , div []
317 [ furbyButton [ onClick AddToCartPressed ] [ text "Add To Cart" ]
318 ]
319 ]
320 ] 318 ]
319 , div
320 [ css [ textAlign center, float bottom ] ]
321 [ furbyButton [ onClick AddToCartPressed, style "width" "100%" ] [ text "Add To Cart" ] ]
321 , div [ style "clear" "both" ] [] 322 , div [ style "clear" "both" ] []
322 ] 323 ]
323 324
@@ -377,7 +378,7 @@ viewInput t p v toMsg =
377 , placeholder p 378 , placeholder p
378 , value v 379 , value v
379 , onInput toMsg 380 , onInput toMsg
380 , css [ Css.width (pct 100), Css.height (px 100) ] 381 , css [ Css.width (pct 100) ]
381 ] 382 ]
382 [] 383 []
383 384
@@ -457,7 +458,14 @@ view model =
457 [ viewStars model 458 [ viewStars model
458 , div 459 , div
459 [] 460 []
460 [ viewInput "textarea" "Enter Comment Text" model.ratingText AddRatingComment ] 461 [ textarea
462 [ onInput AddRatingComment
463 , rows 5
464 , placeholder "Enter comment text"
465 , css [ Css.width (pct 100) ]
466 ]
467 [ text model.ratingText ]
468 ]
461 , div 469 , div
462 [ css 470 [ css
463 [ textAlign center ] 471 [ textAlign center ]