-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Not found page and better default page determination
- Loading branch information
Showing
11 changed files
with
89 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package dev.triumphteam.backend.website.pages | ||
|
||
import kotlinx.css.h1 | ||
import kotlinx.html.HTML | ||
import kotlinx.html.body | ||
import kotlinx.html.classes | ||
import kotlinx.html.div | ||
import kotlinx.html.h1 | ||
import kotlinx.html.meta | ||
import kotlinx.html.title | ||
|
||
public fun HTML.respondNotFound(developmentMode: Boolean) { | ||
setupHead(developmentMode) { | ||
meta { | ||
name = "og:type" | ||
content = "article" | ||
} | ||
|
||
meta { | ||
name = "og:title" | ||
content = "TriumphTeam" | ||
} | ||
|
||
meta { | ||
name = "og:image" | ||
// TODO: Replace with final URL, sucks that it can't be relative | ||
content = "https://new.triumphteam.dev/static/images/banner_not_found.png" | ||
} | ||
|
||
title("TriumphTeam") | ||
} | ||
|
||
body { | ||
|
||
classes = setOf( | ||
"w-screen h-screen", | ||
"bg-docs-bg", | ||
"text-[20em] text-white/50", | ||
"flex justify-center items-center", | ||
) | ||
|
||
h1 { | ||
+"404" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters