site header template; site links to tos, privacy, faq, and this repo
This commit is contained in:
@@ -27,7 +27,7 @@ func main() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
pages, err := template.ParseFiles("templates/home.html")
|
pages, err := template.ParseFiles("templates/home.html", "templates/header.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ goals:
|
|||||||
|
|
||||||
## misc goals
|
## misc goals
|
||||||
|
|
||||||
- [ ] link to this git repo on home page
|
- [x] link to this git repo on home page
|
||||||
- [ ] maybe keep nojs and js on the same page?
|
- [ ] maybe keep nojs and js on the same page?
|
||||||
- just use javascript to enhance the experience, like progress, drag and drop
|
- just use javascript to enhance the experience, like progress, drag and drop
|
||||||
- [ ] shareX config download handlers (automatically create based off of config)
|
- [ ] shareX config download handlers (automatically create based off of config)
|
||||||
+21
-1
@@ -1,6 +1,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--bg: #191919;
|
--bg: #191919;
|
||||||
--surface: #2a2a2a;
|
--surface: #2a2a2a;
|
||||||
|
--surface-hover: #4a4a4a;
|
||||||
--text: #eee;
|
--text: #eee;
|
||||||
--text-muted: #aaa;
|
--text-muted: #aaa;
|
||||||
--border: #4e4e4e;
|
--border: #4e4e4e;
|
||||||
@@ -30,10 +31,22 @@ h1 {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
width: min(100% - 36px, 720px);
|
width: min(100% - 36px, 720px);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 44px 0 64px;
|
padding: 11px 0 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-header {
|
||||||
|
width: min(100% - 36px, 720px);
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 44px 0 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
@@ -101,6 +114,13 @@ input[type="file"] {
|
|||||||
font: inherit;
|
font: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="file"]:hover {
|
||||||
|
background-color: var(--surface);
|
||||||
|
}
|
||||||
|
input[type="file"]:hover::file-selector-button {
|
||||||
|
background-color: var(--surface-hover);
|
||||||
|
}
|
||||||
|
|
||||||
input[type="file"]::file-selector-button {
|
input[type="file"]::file-selector-button {
|
||||||
background-color: var(--surface);
|
background-color: var(--surface);
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{{define "site-header"}}
|
||||||
|
<div class="site-header">
|
||||||
|
<h1>minibin</h1>
|
||||||
|
<div>
|
||||||
|
<a href="/tos">tos</a>
|
||||||
|
<a href="/privacy">privacy</a>
|
||||||
|
<a href="/faq">faq</a>
|
||||||
|
<a href="https://git.whoswhip.dev/whoswhip/minibin">src</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
+1
-1
@@ -7,8 +7,8 @@
|
|||||||
<link rel="stylesheet" href="/css/main.css" />
|
<link rel="stylesheet" href="/css/main.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
{{template "site-header"}}
|
||||||
<main>
|
<main>
|
||||||
<h1>minibin</h1>
|
|
||||||
<p>simple file and paste hosting service</p>
|
<p>simple file and paste hosting service</p>
|
||||||
<div class="upload-tabs">
|
<div class="upload-tabs">
|
||||||
<input type="radio" name="upload-type" id="type-file" checked />
|
<input type="radio" name="upload-type" id="type-file" checked />
|
||||||
|
|||||||
Reference in New Issue
Block a user