2019-02-18 17:36:29 -07:00
|
|
|
package views.html
|
|
|
|
package base
|
|
|
|
|
|
|
|
import lila.api.Context
|
|
|
|
import lila.app.templating.Environment._
|
|
|
|
import lila.app.ui.ScalatagsTemplate._
|
|
|
|
|
|
|
|
import controllers.routes
|
|
|
|
|
|
|
|
object notFound {
|
|
|
|
|
2019-12-13 07:30:20 -07:00
|
|
|
def apply()(implicit ctx: Context) =
|
|
|
|
layout(
|
|
|
|
title = "Page not found",
|
|
|
|
moreJs = prismicJs,
|
|
|
|
moreCss = cssTag("not-found"),
|
|
|
|
csp = isGranted(_.Prismic) option defaultCsp.withPrismic(true)
|
|
|
|
) {
|
2019-02-18 17:36:29 -07:00
|
|
|
main(cls := "not-found page-small box box-pad")(
|
|
|
|
header(
|
|
|
|
h1("404"),
|
|
|
|
div(
|
|
|
|
strong("Page not found!"),
|
|
|
|
p(
|
|
|
|
"Return to ",
|
2021-02-08 07:25:21 -07:00
|
|
|
a(href := routes.Lobby.home)("the homepage"),
|
2019-05-01 06:38:59 -06:00
|
|
|
span(cls := "or-play")(" or play this mini-game")
|
2019-02-18 17:36:29 -07:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
div(cls := "game")(
|
|
|
|
iframe(
|
2020-09-04 04:08:24 -06:00
|
|
|
src := assetUrl(s"vendor/ChessPursuit/bin-release/index.html"),
|
2019-04-18 03:55:57 -06:00
|
|
|
st.frameborder := 0,
|
2021-12-07 14:57:03 -07:00
|
|
|
widthA := 400,
|
|
|
|
heightA := 500
|
2019-02-18 17:36:29 -07:00
|
|
|
),
|
|
|
|
p(cls := "credits")(
|
|
|
|
a(href := "https://github.com/Saturnyn/ChessPursuit")("ChessPursuit"),
|
|
|
|
" courtesy of ",
|
|
|
|
a(href := "https://github.com/Saturnyn")("Saturnyn")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|