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 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"program": "${workspaceFolder}"
},
{ {
"name": "Attach to Remote", "name": "Attach to Remote",
"type": "go", "type": "go",

View File

@ -9,6 +9,10 @@ build:
cp -r static bin/linux_amd64 cp -r static bin/linux_amd64
cp favicon.ico bin/linux_amd64 cp favicon.ico bin/linux_amd64
run:
@echo "Running the website..."
go run ./*.go
.PHONY: deploy .PHONY: deploy
deploy: deploy:
rsync -rP --delete bin/linux_amd64 alfheim@alfheimgame.com:/home/alfheim rsync -rP --delete bin/linux_amd64 alfheim@alfheimgame.com:/home/alfheim

View File

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

View File

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

2
go.mod
View File

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

View File

@ -214,12 +214,12 @@ func register(w http.ResponseWriter, r *http.Request) {
} }
id := authenticated_user(w, r) id := authenticated_user(w, r)
account, err := users.GetAccount(id) account, _ := users.GetAccount(id)
if err != nil { // if err != nil {
http.Error(w, "Internal Server Error", 500) // http.Error(w, "Internal Server Error", 500)
log.Println(err) // log.Println(err)
} // }
switch r.Method { switch r.Method {
case http.MethodGet: case http.MethodGet:

View File

@ -1,29 +1,29 @@
html { html {
height: 100%;
padding: 8px;
/*background: no-repeat url(/static/image.png); /*background: no-repeat url(/static/image.png);
background-size: cover; background-size: cover;
background-position: center;*/ background-position: center;*/
height: 100vh;
background-color: black; background-color: black;
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: #3475CB; background-color: #3475CB;
font-family: "Vollkorn"; font-family: "Vollkorn";
color: white; color: white;
margin-top: 0px; margin-top: 0px;
margin-bottom: 0px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
margin-bottom: 0px;
display: flex;
flex-direction: column;
min-height: 100%;
max-width: 900px; max-width: 900px;
min-height: 100%;
} }
header { header {
max-width: 100%;
} }
nav { nav {
@ -65,7 +65,8 @@ nav {
} }
main { main {
padding: 5px; padding: 8px;
flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@ -172,7 +173,7 @@ input {
} }
footer { footer {
margin-top: auto; /*margin-top: auto;*/
width: 100%; width: 100%;
background-color: #132123; background-color: #132123;
color: white; color: white;