git-svn-id: svn://losandesgames.com/alfheim-website@42 15359d88-9307-4e75-a9c1-e5686e5897df

This commit is contained in:
Vicente Ferrari Smith 2025-03-26 21:34:26 +00:00
parent afef6f5678
commit 66dbdc5f79
7 changed files with 28 additions and 17 deletions

6
.vscode/launch.json vendored
View File

@ -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",

View File

@ -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

View File

@ -172,7 +172,7 @@ input {
}
footer {
margin-top: auto;
/*margin-top: auto;*/
width: 100%;
background-color: #132123;
color: white;

View File

@ -172,7 +172,7 @@ input {
}
footer {
margin-top: auto;
/*margin-top: auto;*/
width: 100%;
background-color: #132123;
color: white;

2
go.mod
View File

@ -1,4 +1,4 @@
module alfheimgame
module alfheimgame.com/alfheim
go 1.22.2

View File

@ -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:

View File

@ -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;