renamed some files
This commit is contained in:
parent
b190bcc21a
commit
224cf5bb0c
@ -39,7 +39,7 @@ type TemplateData struct {
|
||||
}
|
||||
|
||||
func favicon(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "favicon.ico")
|
||||
http.ServeFile(w, r, "ui/static/favicon.ico")
|
||||
}
|
||||
|
||||
func authenticatedUser(w http.ResponseWriter, r *http.Request) int32 {
|
||||
@ -84,7 +84,7 @@ func home(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
active_subscription := subscriptions.HasActiveSubscription(id)
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/index.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/index.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@ -113,7 +113,7 @@ func news(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
active_subscription := subscriptions.HasActiveSubscription(id)
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/news.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/news.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@ -137,7 +137,7 @@ func news(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func login(w http.ResponseWriter, r *http.Request) {
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/login.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/login.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Fatal(err)
|
||||
@ -203,7 +203,7 @@ func login(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func logout(w http.ResponseWriter, r *http.Request) {
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/logout.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/logout.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@ -238,7 +238,7 @@ func logout(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func register(w http.ResponseWriter, r *http.Request) {
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/register.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/register.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@ -320,7 +320,7 @@ func account(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
//log.Println(id, account)
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/account.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/account.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@ -392,7 +392,7 @@ func subscribe(w http.ResponseWriter, r *http.Request) {
|
||||
},
|
||||
}
|
||||
|
||||
text, err := template.New("base.html").Funcs(fm).ParseFiles("ui/html/base.html", "ui/html/subscribe.html")
|
||||
text, err := template.New("base.html").Funcs(fm).ParseFiles("ui/html/base.layout.html", "ui/html/subscribe.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@ -428,7 +428,7 @@ func subscribeStripe(w http.ResponseWriter, r *http.Request) {
|
||||
log.Println(err)
|
||||
}
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/subscribe_stripe.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/subscribe_stripe.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
|
||||
BIN
ui/.DS_Store
vendored
Normal file
BIN
ui/.DS_Store
vendored
Normal file
Binary file not shown.
@ -1,9 +1,9 @@
|
||||
{{define "body"}}
|
||||
<p>Alfheim is a game about humanity: our own will, and our place in the world at large.</p>
|
||||
<p>Alfheim is a game about humanity: our own will, and our place in the world.</p>
|
||||
<p>Alfheim is an MMO where you—the player—administer a medieval settlement of elves.
|
||||
In an infinite world, and with thousands of other players, you will have to design an efficient command economy, if you wish to be able to compete with your enemies... Or your friends?</p>
|
||||
In an infinite world, and with thousands of other players, you will have to design an efficient command economy. Do you want to claim victory over your enemies... Or forge alliances with your friends?</p>
|
||||
<br \>
|
||||
<video playsinline loop autoplay muted><source src="/static/video.mp4" type="video/mp4">Your browser does not support the video tag.</video>
|
||||
<video playsinline loop autoplay muted><source src="/static/video.mp4" type="video/mp4" style="display: block; width: 100%; margin-bottom: 8px;">Your browser does not support the video tag.</video>
|
||||
<br \>
|
||||
<img src="/static/image.png" alt="Alfheim" style="height: 100%; width: 100%; object-fit: contain">
|
||||
<img src="/static/image.png" alt="Alfheim" style="height: 100%; width: 100%; object-fit: contain; margin-top: 8px;">
|
||||
{{end}}
|
||||
BIN
ui/static/.DS_Store
vendored
Normal file
BIN
ui/static/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
ui/static/noise-texture.png
Normal file
BIN
ui/static/noise-texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@ -3,7 +3,7 @@ html {
|
||||
background-size: cover;
|
||||
background-position: center;*/
|
||||
height: 100vh;
|
||||
background-color: black;
|
||||
background-color: #000000;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@ -56,10 +56,10 @@ nav {
|
||||
border: 12px solid;
|
||||
border-image-source: url("/static/panel-000.png");
|
||||
border-image-slice: 12 fill;
|
||||
padding-top: 15px;
|
||||
padding-right: 20px;
|
||||
padding-bottom: 15px;
|
||||
padding-left: 20px;
|
||||
padding-top: 10px;
|
||||
padding-right: 15px;
|
||||
padding-bottom: 10px;
|
||||
padding-left: 15px;
|
||||
color: black;
|
||||
/*box-shadow: 10px 10px 5px lightblue;*/
|
||||
}
|
||||
@ -75,6 +75,9 @@ main {
|
||||
max-height: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
background-image: url('noise-texture.png');
|
||||
background-repeat: repeat;
|
||||
background-size: auto;
|
||||
}
|
||||
|
||||
p {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user