git-svn-id: svn://losandesgames.com/alfheim-website@42 15359d88-9307-4e75-a9c1-e5686e5897df
This commit is contained in:
parent
afef6f5678
commit
66dbdc5f79
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
@ -4,6 +4,12 @@
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "Attach to Remote",
|
||||
"type": "go",
|
||||
|
||||
4
Makefile
4
Makefile
@ -9,6 +9,10 @@ build:
|
||||
cp -r static bin/linux_amd64
|
||||
cp favicon.ico bin/linux_amd64
|
||||
|
||||
run:
|
||||
@echo "Running the website..."
|
||||
go run ./*.go
|
||||
|
||||
.PHONY: deploy
|
||||
deploy:
|
||||
rsync -rP --delete bin/linux_amd64 alfheim@alfheimgame.com:/home/alfheim
|
||||
|
||||
@ -172,7 +172,7 @@ input {
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
/*margin-top: auto;*/
|
||||
width: 100%;
|
||||
background-color: #132123;
|
||||
color: white;
|
||||
|
||||
@ -172,7 +172,7 @@ input {
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
/*margin-top: auto;*/
|
||||
width: 100%;
|
||||
background-color: #132123;
|
||||
color: white;
|
||||
|
||||
10
handlers.go
10
handlers.go
@ -214,12 +214,12 @@ func register(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
id := authenticated_user(w, r)
|
||||
account, err := users.GetAccount(id)
|
||||
account, _ := users.GetAccount(id)
|
||||
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
}
|
||||
// if err != nil {
|
||||
// http.Error(w, "Internal Server Error", 500)
|
||||
// log.Println(err)
|
||||
// }
|
||||
|
||||
switch r.Method {
|
||||
case http.MethodGet:
|
||||
|
||||
@ -1,29 +1,29 @@
|
||||
html {
|
||||
height: 100%;
|
||||
padding: 8px;
|
||||
/*background: no-repeat url(/static/image.png);
|
||||
background-size: cover;
|
||||
background-position: center;*/
|
||||
height: 100vh;
|
||||
background-color: black;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background-color: #3475CB;
|
||||
font-family: "Vollkorn";
|
||||
color: white;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 0px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
max-width: 900px;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
header {
|
||||
max-width: 100%;
|
||||
|
||||
}
|
||||
|
||||
nav {
|
||||
@ -65,7 +65,8 @@ nav {
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 5px;
|
||||
padding: 8px;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
@ -172,7 +173,7 @@ input {
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
/*margin-top: auto;*/
|
||||
width: 100%;
|
||||
background-color: #132123;
|
||||
color: white;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user