nav ba
Anirudh Oppiliappan x@icyphox.sh
Tue, 08 Nov 2022 12:07:06 +0530
3 files changed,
84 insertions(+),
75 deletions(-)
M
views/header.html
→
views/header.html
@@ -1,75 +1,78 @@
<!doctype html> <html> -<head> -<title>honk</title> -<link href="/style.css{{ .StyleParam }}" rel="stylesheet"> -{{ if .LocalStyleParam }} -<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet"> -{{ end }} -{{ .APAltLink }} -{{ .Honkology }} -<link href="/icon.png" rel="icon"> -<meta name="theme-color" content="#305"> -<meta name="viewport" content="width=device-width"> -</head> -<body{{ if .UserStyle}} {{ .UserStyle }}{{ end }}> -<header> -{{ if .UserInfo }} -<details id="topmenu"> -<summary>menu<span> {{ .UserInfo.Name }}</span></summary> -<ul> -<li><a id="homelink" href="/">home</a> -<li><a id="atmelink" href="/atme">@me<span id=mecount>{{ if .UserInfo.Options.MeCount }}({{ .UserInfo.Options.MeCount }}){{ end }}</span></a> -<li><a id="firstlink" href="/first">first</a> -<li class="details"> -<details> -<summary>combos</summary> -<ul> -{{ range .Combos }} -<li><a class="combolink" href="/c/{{ . }}">{{ . }}</a> -{{ end }} -</ul> -</details> -<li><a href="/chatter">chatter<span id=chatcount>{{ if .UserInfo.Options.ChatCount }}({{ .UserInfo.Options.ChatCount }}){{ end }}</span></a> -<li><a href="/o">tags</a> -<li><a href="/events">events</a> -<li><a id="longagolink" href="/longago">long ago</a> -<li><a id="savedlink" href="/saved">saved</a> -<li><a href="/honkers">honkers</a> -<li><a href="/hfcs">filters</a> -<li><a href="/account">account</a> -<li class="details"> -<details> -<summary>more stuff</summary> -<ul> -<li><a href="/{{ .UserSep }}/{{ .UserInfo.Name }}">my honks</a> -<li><a href="/about">about</a> -<li><a href="/front">front</a> -<li><a href="/funzone">funzone</a> -<li><a href="/xzone">xzone</a> -</ul> -</details> -<li><a href="/help/honk.1.html">help</a> -<li> -<form action="/q" method="GET"> -<input type="text" name="q" autocomplete=off size=10 placeholder="search"> -</form> -</ul> -</details> -<div id="topspacer"> -<p> -<p class="nophone">top -</div> -{{ else }} -<div id="topmenu"> -<span><a id="homelink" href="/">home</a></span> -<span><a href="/o">tags</a></span> -<span><a href="/events">events</a></span> -<span><a href="/about">about</a></span> -{{ if .ShowRSS }} -<span><a href="/rss">rss</a></span> -{{ end }} -<span><a href="/login">login</a></span> -</div> -{{ end }} -</header> + <head> + <title>honk</title> + <link href="/style.css{{ .StyleParam }}" rel="stylesheet"> + {{ if .LocalStyleParam }} + <link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet"> + {{ end }} + <style> + {{ .UserStyle }} + </style> + <link href="/icon.png" rel="icon"> + <meta name="theme-color" media="(prefers-color-scheme: light) "content="#f4f4f4"> + <meta name="theme-color" media="(prefers-color-scheme: dark) "content="#111111"> + <meta name="viewport" content="width=device-width"> + </head> + <body> + <header> + {{ if .UserInfo }} + <nav> + <ul class="easylinks"> + <li><a id="homelink" href="/">home</a> + <li><a id="atmelink" href="/atme">@me{{ if .UserInfo.Options.MeCount }}<span id=mecount>({{ .UserInfo.Options.MeCount }})</span>{{ end }}</a> + <li><a href="/account">account</a> + <li><a href="/honkers">honkers</a> + <li><a href="/{{ .UserSep }}/{{ .UserInfo.Name }}">{{ .UserInfo.Name }}</a> + </ul> + </nav> + + <details id="topmenu"> + <summary>menu</summary> + <ul> + <li><a id="firstlink" href="/first">first</a> + <li style="list-style-type:none; margin-left:-1em"> + <details> + <summary>combos</summary> + <ul> + {{ range .Combos }} + <li><a class="combolink" href="/c/{{ . }}">{{ . }}</a> + {{ end }} + </ul> + </details> + <li><a href="/chatter">chatter<span id=chatcount>{{ if .UserInfo.Options.ChatCount }}({{ .UserInfo.Options.ChatCount }}){{ end }}</span></a> + <li><a href="/o">tags</a> + <li><a href="/events">events</a> + <li><a id="longagolink" href="/longago">long ago</a> + <li><a id="savedlink" href="/saved">saved</a> + <li><a href="/hfcs">filters</a> + <li style="list-style-type:none; margin-left:-1em"> + <details> + <summary>more stuff</summary> + <ul> + <li><a href="/about">about</a> + <li><a href="/front">front</a> + <li><a href="/funzone">funzone</a> + <li><a href="/xzone">xzone</a> + </ul> + </details> + <li><a href="/help/honk.1.html">help</a> + </ul> + </details> + <div id="topspacer"> + <p> + </div> + {{ else }} + <div id="topmenu"> + <span><a id="homelink" href="/">home</a></span> + <span><a href="/o">tags</a></span> + <span><a href="/events">events</a></span> + <span><a href="/about">about</a></span> + {{ if .ShowRSS }} + <span><a href="/rss">rss</a></span> + {{ end }} + <span><a href="/login">login</a></span> + </div> + {{ end }} + </header> +
M
views/honkform.html
→
views/honkform.html
@@ -1,10 +1,10 @@
<p id="honkformhost"> -<button id="honkingtime" {{ if .IsPreview }}class="hide"{{ end }}><a href="/newhonk">it's honking time</a></button> +<button id="honkingtime" {{ if .IsPreview }}class="hide"{{ end }}><a href="/newhonk">new post</a></button> <form id="honkform" action="/honk" method="POST" enctype="multipart/form-data" {{ if not .IsPreview }}class="hide"{{ end }}> <input type="hidden" name="CSRF" value="{{ .HonkCSRF }}"> <input type="hidden" name="updatexid" id="updatexidinput" value = "{{ .UpdateXID }}"> <input type="hidden" name="rid" id="ridinput" value="{{ .InReplyTo }}"> -<h3>let's make some noise</h3> +<h3>new post</h3> <p> <details> <summary>more options</summary>
M
views/local.css
→
views/local.css
@@ -71,6 +71,7 @@ #honkform input {
font-size: 0.8em; } body > header { + max-width: 700px; margin: 1em auto; font-size: 1.5em; }@@ -307,6 +308,11 @@ font-size: 1.2em;
} h3, h4 { font-size: 1.1em; +} + +#topmenu ul { + list-style: none; + padding-left: 1em; } nav {