Compare commits
No commits in common. "7b10cad2394f113d0f1116f997915f30ef39b170" and "fe66f0e9299f908463a82771f4a6c341bfde54c6" have entirely different histories.
7b10cad239
...
fe66f0e929
4 changed files with 8 additions and 54 deletions
|
@ -24,7 +24,6 @@ func New() *mux.Router {
|
||||||
r.HandleFunc("/move/{hash}", moves.MoveHandler)
|
r.HandleFunc("/move/{hash}", moves.MoveHandler)
|
||||||
r.HandleFunc("/games", games.Handler)
|
r.HandleFunc("/games", games.Handler)
|
||||||
r.HandleFunc("/game/{hash}", games.GameHandler)
|
r.HandleFunc("/game/{hash}", games.GameHandler)
|
||||||
r.HandleFunc("/game/{hash}/privacy", games.PrivacyHandler)
|
|
||||||
r.HandleFunc("/projects", projects.Handler)
|
r.HandleFunc("/projects", projects.Handler)
|
||||||
r.HandleFunc("/project/{hash}", projects.ProjectHandler)
|
r.HandleFunc("/project/{hash}", projects.ProjectHandler)
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
background: var(--col-06);
|
background: var(--col-06);
|
||||||
"
|
"
|
||||||
></div>
|
></div>
|
||||||
<a href="https://discord.gg/65jZCW9">
|
<a href="https://discord.com/invite/v9UF3TsX?utm_source=Discord%20Widget&utm_medium=Connect">
|
||||||
<img src="/public/img/icons/discord.svg?v1" height="32" width="auto" />
|
<img src="/public/img/icons/discord.svg?v1" height="32" width="auto" />
|
||||||
<div>discord</div>
|
<div>discord</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -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>
|
|
|
@ -12,15 +12,13 @@ type Game struct {
|
||||||
Name string
|
Name string
|
||||||
Desc string
|
Desc string
|
||||||
|
|
||||||
PrivacyPolicy string
|
Notes string
|
||||||
Notes string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var Games = map[string]Game{
|
var Games = map[string]Game{
|
||||||
"silo": {
|
"silo": {
|
||||||
Name: "stretch silo",
|
Name: "stretch silo",
|
||||||
Desc: "a stretch cursor 360 missile defense game",
|
Desc: "a stretch cursor 360 missile defense game",
|
||||||
PrivacyPolicy: "we do not collect store or distribute any user data",
|
|
||||||
Notes: `start with air raid sirens
|
Notes: `start with air raid sirens
|
||||||
and shouted commands
|
and shouted commands
|
||||||
shilouttes in the night
|
shilouttes in the night
|
||||||
|
@ -37,18 +35,16 @@ missiles fly in
|
||||||
*ref typhon missile system`,
|
*ref typhon missile system`,
|
||||||
},
|
},
|
||||||
"snake": {
|
"snake": {
|
||||||
Name: "snake in a box",
|
Name: "snake in a box",
|
||||||
Desc: "vr snake zencore",
|
Desc: "vr snake zencore",
|
||||||
PrivacyPolicy: "we do not collect store or distribute any user data",
|
|
||||||
Notes: `cute happy go lucky eating stuff
|
Notes: `cute happy go lucky eating stuff
|
||||||
|
|
||||||
older and bigger
|
older and bigger
|
||||||
and have to deal with your past choices`,
|
and have to deal with your past choices`,
|
||||||
},
|
},
|
||||||
"vien": {
|
"vien": {
|
||||||
Name: "vien",
|
Name: "vien",
|
||||||
Desc: "hordiculture",
|
Desc: "hordiculture",
|
||||||
PrivacyPolicy: "we do not collect store or distribute any user data",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,28 +87,3 @@ func GameHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
data,
|
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,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue