Compare commits

..

No commits in common. "7b10cad2394f113d0f1116f997915f30ef39b170" and "fe66f0e9299f908463a82771f4a6c341bfde54c6" have entirely different histories.

4 changed files with 8 additions and 54 deletions

View file

@ -24,7 +24,6 @@ func New() *mux.Router {
r.HandleFunc("/move/{hash}", moves.MoveHandler)
r.HandleFunc("/games", games.Handler)
r.HandleFunc("/game/{hash}", games.GameHandler)
r.HandleFunc("/game/{hash}/privacy", games.PrivacyHandler)
r.HandleFunc("/projects", projects.Handler)
r.HandleFunc("/project/{hash}", projects.ProjectHandler)

View file

@ -111,7 +111,7 @@
background: var(--col-06);
"
></div>
<a href="https://discord.gg/65jZCW9">
<a href="https://discord.com/invite/v9UF3TsX?utm_source=Discord%20Widget&amp;utm_medium=Connect">
<img src="/public/img/icons/discord.svg?v1" height="32" width="auto" />
<div>discord</div>
</a>

View file

@ -1,16 +0,0 @@
{{ template "head.html" .}}
<div style="height: 48px;"></div>
<!-- <h1 style='width: 100%; word-wrap: break-word; hyphens: auto;'>
{{ .Title }}
<p>
{{ .Desc }}
</p>
</h1> -->
{{ template "title_desc.html" .}}
<h2>policy</h2>
<pre>{{ .Data.Game.PrivacyPolicy }}</pre>
<div style='height: 44px; width: 100%;'></div>

View file

@ -12,15 +12,13 @@ type Game struct {
Name string
Desc string
PrivacyPolicy string
Notes string
Notes string
}
var Games = map[string]Game{
"silo": {
Name: "stretch silo",
Desc: "a stretch cursor 360 missile defense game",
PrivacyPolicy: "we do not collect store or distribute any user data",
Name: "stretch silo",
Desc: "a stretch cursor 360 missile defense game",
Notes: `start with air raid sirens
and shouted commands
shilouttes in the night
@ -37,18 +35,16 @@ missiles fly in
*ref typhon missile system`,
},
"snake": {
Name: "snake in a box",
Desc: "vr snake zencore",
PrivacyPolicy: "we do not collect store or distribute any user data",
Name: "snake in a box",
Desc: "vr snake zencore",
Notes: `cute happy go lucky eating stuff
older and bigger
and have to deal with your past choices`,
},
"vien": {
Name: "vien",
Desc: "hordiculture",
PrivacyPolicy: "we do not collect store or distribute any user data",
Name: "vien",
Desc: "hordiculture",
},
}
@ -91,28 +87,3 @@ func GameHandler(w http.ResponseWriter, r *http.Request) {
data,
)
}
func PrivacyHandler(w http.ResponseWriter, r *http.Request) {
hash := mux.Vars(r)["hash"]
game, ok := Games[hash]
if !ok {
w.WriteHeader(http.StatusNotFound)
return
}
data := struct {
Hash string
Game Game
}{
Hash: hash,
Game: game,
}
tem.Render(
w, r,
"privacy.html",
"privacy",
game.Name,
data,
)
}