Added video

This commit is contained in:
Eduard Urbach 2017-11-13 18:07:25 +01:00
parent b365c458fd
commit 2feeebae5e
5 changed files with 14 additions and 1 deletions

View File

@ -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")

View File

@ -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")
@ -25,5 +28,5 @@ component Charge(user *arn.User)
button.action.mountable(data-trigger="click", data-action="chargeUp", data-amount=12000)
Icon("diamond")
span 12000
.footer.text-center.mountable Different currencies will automatically be converted.

View File

@ -0,0 +1,3 @@
.shop-video
max-width 100%
margin calc(content-padding / 2) auto

2
videos/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
#*
!.gitignore

BIN
videos/shop/shop.webm Normal file

Binary file not shown.