diff --git a/assets.go b/assets.go index 9c2ff0e2..dfcd9413 100644 --- a/assets.go +++ b/assets.go @@ -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") diff --git a/pages/charge/charge.pixy b/pages/charge/charge.pixy index 239e84a5..ff331f40 100644 --- a/pages/charge/charge.pixy +++ b/pages/charge/charge.pixy @@ -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. \ No newline at end of file diff --git a/pages/charge/charge.scarlet b/pages/charge/charge.scarlet new file mode 100644 index 00000000..03cd2771 --- /dev/null +++ b/pages/charge/charge.scarlet @@ -0,0 +1,3 @@ +.shop-video + max-width 100% + margin calc(content-padding / 2) auto \ No newline at end of file diff --git a/videos/.gitignore b/videos/.gitignore new file mode 100644 index 00000000..2f1becf6 --- /dev/null +++ b/videos/.gitignore @@ -0,0 +1,2 @@ +#* +!.gitignore \ No newline at end of file diff --git a/videos/shop/shop.webm b/videos/shop/shop.webm new file mode 100644 index 00000000..0e47709f Binary files /dev/null and b/videos/shop/shop.webm differ