site/web/pages/about/about.go

72 lines
1.1 KiB
Go

package about
import (
"net/http"
"dofdev/tem"
)
type Project struct {
Name string
Url string
Icon string
}
type Profile struct {
Name string
Url string
Pfp string
}
type Peer struct {
Project Project
Profile Profile ``
}
var Peers = []Peer{
{
Project{
Name: "StereoKit",
Url: "https://stereokit.net",
Icon: "https://stereokit.net/img/StereoKitLogoLight.svg",
},
Profile{},
},
{
Project{
Name: "Stardust XR",
Url: "https://stardustxr.org",
Icon: "https://stardustxr.org/img/icon.gif",
},
Profile{},
},
{
Project{
Name: "Project Northstar",
Url: "https://www.projectnorthstar.org/",
Icon: "/public/img/icons/northstar.svg",
},
Profile{},
},
{
Project{
Name: "Daemon XR",
Url: "https://daemonxr.com",
Icon: "/public/img/icons/daemonxr.png",
},
Profile{},
},
}
func Handler(w http.ResponseWriter, r *http.Request) {
data := struct {
Peers []Peer
}{
Peers: Peers,
}
tem.Render(
w, r,
"about.html",
"dofdev",
"an effort to open higher degrees of spatial interaction free to the world.",
data,
)
}