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)
|
||||
}
|
||||
|
||||
pages, err := template.ParseFiles("templates/home.html")
|
||||
pages, err := template.ParseFiles("templates/home.html", "templates/header.html")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ 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?
|
||||
- just use javascript to enhance the experience, like progress, drag and drop
|
||||
- [ ] shareX config download handlers (automatically create based off of config)
|
||||
+21
-1
@@ -1,6 +1,7 @@
|
||||
:root {
|
||||
--bg: #191919;
|
||||
--surface: #2a2a2a;
|
||||
--surface-hover: #4a4a4a;
|
||||
--text: #eee;
|
||||
--text-muted: #aaa;
|
||||
--border: #4e4e4e;
|
||||
@@ -30,10 +31,22 @@ h1 {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
main {
|
||||
width: min(100% - 36px, 720px);
|
||||
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 {
|
||||
@@ -101,6 +114,13 @@ input[type="file"] {
|
||||
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 {
|
||||
background-color: var(--surface);
|
||||
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" />
|
||||
</head>
|
||||
<body>
|
||||
{{template "site-header"}}
|
||||
<main>
|
||||
<h1>minibin</h1>
|
||||
<p>simple file and paste hosting service</p>
|
||||
<div class="upload-tabs">
|
||||
<input type="radio" name="upload-type" id="type-file" checked />
|
||||
|
||||
Reference in New Issue
Block a user