styling WIP
This commit is contained in:
parent
4139a8f3a5
commit
895d93c1c1
BIN
assets/cutive.ttf
Normal file
BIN
assets/cutive.ttf
Normal file
Binary file not shown.
@ -157,6 +157,9 @@ class LineAdder extends Button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class PoemRegenner extends Button {
|
class PoemRegenner extends Button {
|
||||||
|
connectedCallback() {
|
||||||
|
this.setAttribute("title", "regenerate unpinnned lines");
|
||||||
|
}
|
||||||
click() {
|
click() {
|
||||||
$("div[is=poem-lines]").regenerate();
|
$("div[is=poem-lines]").regenerate();
|
||||||
}
|
}
|
||||||
|
1
main.go
1
main.go
@ -46,6 +46,7 @@ func main() {
|
|||||||
"upper": strings.ToUpper,
|
"upper": strings.ToUpper,
|
||||||
})
|
})
|
||||||
r.LoadHTMLFiles("templates/index.tmpl")
|
r.LoadHTMLFiles("templates/index.tmpl")
|
||||||
|
r.StaticFile("/cutive.ttf", "./assets/cutive.ttf")
|
||||||
r.StaticFile("/favicon.ico", "./assets/favicon.ico")
|
r.StaticFile("/favicon.ico", "./assets/favicon.ico")
|
||||||
r.StaticFile("/main.js", "./assets/main.js")
|
r.StaticFile("/main.js", "./assets/main.js")
|
||||||
|
|
||||||
|
@ -3,6 +3,20 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Trunkless</title>
|
<title>Trunkless</title>
|
||||||
<style>
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: "cutive";
|
||||||
|
src: url("/cutive.ttf");
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "cutive", monospace;
|
||||||
|
font-size:125%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
div.line:not(.unpinned) > .linetext {
|
div.line:not(.unpinned) > .linetext {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@ -39,7 +53,7 @@ div.line:not(.unpinned) > .linetext {
|
|||||||
<button>save as image</button>
|
<button>save as image</button>
|
||||||
</p>
|
</p>
|
||||||
<div style="margin-bottom: 5px">
|
<div style="margin-bottom: 5px">
|
||||||
<button is="poem-regenner">regenerate unpinned lines</button>
|
<button is="poem-regenner">↺</button>
|
||||||
</div>
|
</div>
|
||||||
<div is="poem-lines"></div>
|
<div is="poem-lines"></div>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user