Add notice page.

This commit is contained in:
yukirij 2024-12-29 16:10:22 -08:00
parent 1b07bc685d
commit 56eecdf6f5
6 changed files with 65 additions and 9 deletions

View File

@ -247,6 +247,17 @@ async fn main()
}
}
let notice_path = std::path::Path::new("www/pages/notice");
for doc in [
"main",
] {
if cache.cache("text/html", &format!("/notice/{}.html", doc), &[
WebCache::markdown(notice_path.join(format!("{}.md", doc)))
]).is_err() {
println!("error: failed to load: {}", doc);
}
}
let guide_path = std::path::Path::new("www/pages/guide");
for doc in [
"game",

View File

@ -32,6 +32,7 @@ LANGUAGE.Terms = {
history: new LANGUAGE.Term( "History", "再生" ),
practice: new LANGUAGE.Term( "Practice", "練習" ),
guide: new LANGUAGE.Term( "Guide", "ガイド" ),
notice: new LANGUAGE.Term( "Notice", "掲示" ),
about: new LANGUAGE.Term( "About", "概要" ),
account: new LANGUAGE.Term( "Account", "アカウント" ),

View File

@ -46,6 +46,7 @@ class SceneManager {
case "history": this.load(SCENES.History); return;
case "practice": this.load(SCENES.GamePractice); return;
case "guide": this.load(SCENES.Guide); return;
case "notice": this.load(SCENES.Notice); return;
case "about": this.load(SCENES.About); return;
case "extras": this.load(SCENES.Extras); return;
@ -712,6 +713,35 @@ const SCENES = {
INTERFACE.uninit();
}
},
Notice:class{
constructor() { }
load() {
UI.mainmenu("notice");
UI.mainnav([], []);
let body = document.createElement("article");
body.setAttribute("id", "article");
body.setAttribute("class", "text");
UI.maincontent(body);
this.refresh("main.html");
history.pushState(null, "Dzura - Notice", "/notice/");
return true;
}
refresh(page) {
fetch("/notice/" + page)
.then((response) => {
return response.text();
})
.then((text) => {
let parser = new DOMParser();
let body = parser.parseFromString(text, "text/html");
document.getElementById("article").innerHTML = body.body.innerHTML;
});
}
},
About:class{
constructor() { }

View File

@ -195,6 +195,7 @@ const UI = {
top.push(UI.button(LANG("history"), () => { SCENE.load(SCENES.History); }, page == "history"));
top.push(UI.button(LANG("practice"), () => { SCENE.load(SCENES.GamePractice); }, page == "practice"));
top.push(UI.button(LANG("guide"), () => { SCENE.load(SCENES.Guide); }, page == "guide"));
top.push(UI.button(LANG("notice"), () => { SCENE.load(SCENES.Notice); }, page == "notice"));
top.push(UI.button(LANG("about"), () => { SCENE.load(SCENES.About); }, page == "about"));
if(CONTEXT.Auth !== null) {

View File

@ -16,15 +16,6 @@ Dzura is a work of [Atelier Kirisame](https://kirisame.com).
© 2024 Yukiri Corporation et al.
# Registration
The website is currently in limited beta.
If you would like an invite code, please reach out via one of our listed platforms.
As we are rewriting our back-end systems, note that future updates may require partial data resets.
# User Privacy
This website does not collect any information beyond that used to implement user accounts and gameplay.

22
www/pages/notice/main.md Normal file
View File

@ -0,0 +1,22 @@
# Announcements
## Application Redesign
**Dec 29, 2024**
We are currently working on a major rewrite of the application and server implementations.
These changes will introduce custom games, permit more complex rules, improve server responsiveness, and move account management to another (internal) platform.
We hope these changes will allow the site to transition to a more open beta release.
While we should be able to translate game histories to the new format, we will not be able to do so for user information.
Given the small number of users on the site, we will work with users to link accounts to old games.
# Notices
## Registration
The website is currently in limited beta.
If you would like an invite code, please reach out via one of the platforms listed on the About page.