Compare commits

...

3 commits

6 changed files with 49 additions and 10 deletions

View file

@ -3,10 +3,11 @@ package main
import ( import (
"net/http" "net/http"
"git.burning.moe/celediel/burning.moe/internal/config"
"git.burning.moe/celediel/burning.moe/internal/handlers"
"github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware" "github.com/go-chi/chi/v5/middleware"
"git.burning.moe/celediel/burning.moe/internal/config"
"git.burning.moe/celediel/burning.moe/internal/handlers"
) )
// routes handles all of the HTTP setup. Middleware is enabled, // routes handles all of the HTTP setup. Middleware is enabled,

View file

@ -5,9 +5,10 @@ import (
"os" "os"
"time" "time"
"git.burning.moe/celediel/burning.moe/internal/models"
"github.com/charmbracelet/log" "github.com/charmbracelet/log"
"github.com/ilyakaznacheev/cleanenv" "github.com/ilyakaznacheev/cleanenv"
"git.burning.moe/celediel/burning.moe/internal/models"
) )
// AppConfig contains data to be accessed across the app. // AppConfig contains data to be accessed across the app.

View file

@ -6,9 +6,9 @@ import (
"strings" "strings"
"time" "time"
"git.burning.moe/celediel/burning.moe/internal/models"
"github.com/ilyakaznacheev/cleanenv" "github.com/ilyakaznacheev/cleanenv"
"git.burning.moe/celediel/burning.moe/internal/models"
) )
const dataDir string = "./templates/data/" const dataDir string = "./templates/data/"

View file

@ -4,8 +4,6 @@
maybe use SASS or something maybe use SASS or something
the real TODO here is finding an image that doesn't require a white background the real TODO here is finding an image that doesn't require a white background
also TODO: proper mobile layout
*/ */
body { body {
@ -82,4 +80,43 @@ h1 {
h2 { h2 {
padding-top: 0px; padding-top: 0px;
font-size: 1.4em; font-size: 1.4em;
}
.logo {
/*max-width: 400px;*/
max-width: 100%;
}
/* width specific settings */
@media screen and (max-width: 1200px) {
#words,
#bigwords {
width: 90%;
}
}
@media screen and (max-width: 800px) {
#words,
#bigwords {
width: 100%;
}
#leftfooter {
position: fixed;
bottom: 10px;
right: 10px;
text-align: right;
}
#rightfooter {
position: fixed;
bottom: 35px;
right: 10px;
}
#stuff {
margin: 15px 50px 25px 50px;
}
} }

View file

@ -1,5 +1,5 @@
StringMap: StringMap:
about: she/her; 1989; queer anarchist; lover of music, games, reading, free software, history, fog, mountains, and forests; self-taught, aspiring developer and sysadmin about: she/her; 1989; queer anarchist; lover of music, games, books, free software, history, fog, mountains, and forests; self-taught, aspiring developer and sysadmin
LinkMap: LinkMap:
Personal: Personal:
- href: https://matrix.to/#/@celediel:burning.moe - href: https://matrix.to/#/@celediel:burning.moe

View file

@ -1,13 +1,13 @@
{{- template "base" . -}} {{- template "base" . -}}
{{- define "content" }} {{- define "content" }}
<img src="static/img/moemoe.png"> <img src="static/img/moemoe.png" class="logo">
<div id="header"> <div id="header">
<!-- <h1>燃え 萌え</h1> --> <!-- <h1>燃え 萌え</h1> -->
<h2>burning.moe</h2> <h2>burning.moe</h2>
</div> </div>
<a href="http://www.pixiv.net/member_illust.php?mode=medium&illust_id=22647957"> <a href="http://www.pixiv.net/member_illust.php?mode=medium&illust_id=22647957">
<img src="static/img/burningmoe.jpg" style="max-width:400px;" /> <img src="static/img/burningmoe.jpg" class="logo" />
</a> </a>
<br /> <br />
<span id="words"> <span id="words">