Added video
This commit is contained in:
parent
b365c458fd
commit
2feeebae5e
@ -47,6 +47,11 @@ func configureAssets(app *aero.Application) {
|
||||
return ctx.File("images" + ctx.Get("file"))
|
||||
})
|
||||
|
||||
// Videos
|
||||
app.Get("/videos/*file", func(ctx *aero.Context) string {
|
||||
return ctx.File("videos" + ctx.Get("file"))
|
||||
})
|
||||
|
||||
// For benchmarks
|
||||
app.Get("/hello", func(ctx *aero.Context) string {
|
||||
return ctx.Text("Hello World")
|
||||
|
@ -5,6 +5,9 @@ component Charge(user *arn.User)
|
||||
|
||||
p.text-center.mountable You can add balance via PayPal. 1 Japanese Yen equals 1 Gem.
|
||||
|
||||
video.shop-video.mountable(autoplay="autoplay", loop="loop")
|
||||
source(src="/videos/shop/shop.webm", type="video/webm")
|
||||
|
||||
.buttons
|
||||
button.action.mountable(data-trigger="click", data-action="chargeUp", data-amount=1000)
|
||||
Icon("diamond")
|
||||
|
3
pages/charge/charge.scarlet
Normal file
3
pages/charge/charge.scarlet
Normal file
@ -0,0 +1,3 @@
|
||||
.shop-video
|
||||
max-width 100%
|
||||
margin calc(content-padding / 2) auto
|
2
videos/.gitignore
vendored
Normal file
2
videos/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#*
|
||||
!.gitignore
|
BIN
videos/shop/shop.webm
Normal file
BIN
videos/shop/shop.webm
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user