fix: remove alt from homepage logo, add "logo" alt to question header (#116)
* fix: remove alt from homepage logo, add "logo" alt to question header * fix: set logo alt on question.html to "AnonymousOverflow home"
This commit is contained in:
parent
b568c52999
commit
8174f2ee44
@ -1,27 +1,20 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html data-theme="{{ .theme }}">
|
<html data-theme="{{ .theme }}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>AnonymousOverflow - Private frontend for StackOverflow</title>
|
<title>AnonymousOverflow - Private frontend for StackOverflow</title>
|
||||||
<link rel="stylesheet" href="/static/home.css" />
|
<link rel="stylesheet" href="/static/home.css" />
|
||||||
<meta
|
<meta http-equiv="Content-Security-Policy"
|
||||||
http-equiv="Content-Security-Policy"
|
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src 'self';" />
|
||||||
content="default-src 'none'; style-src 'self'; script-src 'none'; img-src 'self';"
|
|
||||||
/>
|
|
||||||
<link rel="icon" href="/static/codecircles.webp" />
|
<link rel="icon" href="/static/codecircles.webp" />
|
||||||
<meta
|
<meta name="description" content="View StackOverflow threads in privacy and without the clutter." />
|
||||||
name="description"
|
|
||||||
content="View StackOverflow threads in privacy and without the clutter."
|
|
||||||
/>
|
|
||||||
{{ template "sharedHead.html" }}
|
{{ template "sharedHead.html" }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<img
|
<img class="logo" src="/static/codecircles.webp" alt="" />
|
||||||
class="logo"
|
|
||||||
src="/static/codecircles.webp"
|
|
||||||
alt="4 circles with alternating colors between green and white"
|
|
||||||
/>
|
|
||||||
<h1>Anonymous­Overflow</h1>
|
<h1>Anonymous­Overflow</h1>
|
||||||
</div>
|
</div>
|
||||||
<h2>Get programming help without compromising your privacy.</h2>
|
<h2>Get programming help without compromising your privacy.</h2>
|
||||||
@ -42,12 +35,8 @@
|
|||||||
{{end}} {{ end }}
|
{{end}} {{ end }}
|
||||||
<form method="POST" action="/">
|
<form method="POST" action="/">
|
||||||
<div class="view-form">
|
<div class="view-form">
|
||||||
<input
|
<input class="view-input" type="text" name="url"
|
||||||
class="view-input"
|
placeholder="https://stackoverflow.com/questions/123456/example-url" />
|
||||||
type="text"
|
|
||||||
name="url"
|
|
||||||
placeholder="https://stackoverflow.com/questions/123456/example-url"
|
|
||||||
/>
|
|
||||||
<button class="view-button" type="submit">View</button>
|
<button class="view-button" type="submit">View</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -61,21 +50,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="footer">
|
<p class="footer">
|
||||||
Brought to you by
|
Brought to you by
|
||||||
<a
|
<a href="https://github.com/WhateverLabs" target="_blank" rel="noopener noreferrer">Whatever Labs</a>
|
||||||
href="https://github.com/WhateverLabs"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>Whatever Labs</a
|
|
||||||
>
|
|
||||||
•
|
•
|
||||||
<a
|
<a href="https://github.com/httpjamesm/AnonymousOverflow" target="_blank"
|
||||||
href="https://github.com/httpjamesm/AnonymousOverflow"
|
rel="noopener noreferrer">Source</a>
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>Source</a
|
|
||||||
>
|
|
||||||
• Version {{ .version }}
|
• Version {{ .version }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
@ -1,14 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html data-theme="{{ .theme }}">
|
<html data-theme="{{ .theme }}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>{{ .question.Title }} | AnonymousOverflow</title>
|
<title>{{ .question.Title }} | AnonymousOverflow</title>
|
||||||
<link rel="stylesheet" href="/static/question.css" />
|
<link rel="stylesheet" href="/static/question.css" />
|
||||||
<link rel="stylesheet" href="/static/syntax.css" />
|
<link rel="stylesheet" href="/static/syntax.css" />
|
||||||
<link rel="stylesheet" href="/static/comments.css" />
|
<link rel="stylesheet" href="/static/comments.css" />
|
||||||
<meta
|
<meta http-equiv="Content-Security-Policy"
|
||||||
http-equiv="Content-Security-Policy"
|
content="default-src 'none'; style-src 'self'; script-src 'self'; img-src {{ .imagePolicy }}; font-src 'self';" />
|
||||||
content="default-src 'none'; style-src 'self'; script-src 'self'; img-src {{ .imagePolicy }}; font-src 'self';"
|
|
||||||
/>
|
|
||||||
<meta name="description" content="{{ .question.ShortenedBody }}..." />
|
<meta name="description" content="{{ .question.ShortenedBody }}..." />
|
||||||
{{ template "sharedHead.html" }}
|
{{ template "sharedHead.html" }}
|
||||||
<link rel="stylesheet" href="/static/katex/katex.min.css">
|
<link rel="stylesheet" href="/static/katex/katex.min.css">
|
||||||
@ -20,14 +19,11 @@
|
|||||||
<script defer src="/static/katex/contrib/auto-render.min.js"></script>
|
<script defer src="/static/katex/contrib/auto-render.min.js"></script>
|
||||||
<script defer src="/static/question.js" type="text/javascript"></script>
|
<script defer src="/static/question.js" type="text/javascript"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<a href="/" class="logo-link">
|
<a href="/" class="logo-link">
|
||||||
<img
|
<img class="logo" src="/static/codecircles.webp" alt="AnonymousOverflow home" />
|
||||||
class="logo"
|
|
||||||
src="/static/codecircles.webp"
|
|
||||||
alt="4 circles with alternating colors between green and white"
|
|
||||||
/>
|
|
||||||
</a>
|
</a>
|
||||||
{{ template "themeSwitcher.html" . }}
|
{{ template "themeSwitcher.html" . }}
|
||||||
</div>
|
</div>
|
||||||
@ -36,12 +32,8 @@
|
|||||||
<h1>{{ .question.Title }}</h1>
|
<h1>{{ .question.Title }}</h1>
|
||||||
<p class="timestamp">
|
<p class="timestamp">
|
||||||
Asked {{ .question.Timestamp }} by
|
Asked {{ .question.Timestamp }} by
|
||||||
<a
|
<a href="{{ .question.AuthorURL }}" target="_blank" rel="noopener noreferrer">{{ .question.AuthorName
|
||||||
href="{{ .question.AuthorURL }}"
|
}}</a>.
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>{{ .question.AuthorName }}</a
|
|
||||||
>.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">{{ .question.Body }}</div>
|
<div class="card-body">{{ .question.Body }}</div>
|
||||||
@ -62,23 +54,20 @@
|
|||||||
<option disabled value="">Sort answers by...</option>
|
<option disabled value="">Sort answers by...</option>
|
||||||
<option value="votes" {{ if eq .sortValue "votes" }} selected{{ end }}>Votes</option>
|
<option value="votes" {{ if eq .sortValue "votes" }} selected{{ end }}>Votes</option>
|
||||||
<option value="trending" {{ if eq .sortValue "trending" }} selected{{ end }}>Trending</option>
|
<option value="trending" {{ if eq .sortValue "trending" }} selected{{ end }}>Trending</option>
|
||||||
<option value="newest"{{ if eq .sortValue "newest" }} selected{{ end }}>Date modified (newest first)</option>
|
<option value="newest" {{ if eq .sortValue "newest" }} selected{{ end }}>Date modified (newest
|
||||||
<option value="oldest"{{ if eq .sortValue "oldest" }} selected{{ end }}>Date created (oldest first)</option>
|
first)</option>
|
||||||
|
<option value="oldest" {{ if eq .sortValue "oldest" }} selected{{ end }}>Date created (oldest first)
|
||||||
|
</option>
|
||||||
</select>
|
</select>
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
<img
|
<img src="/static/icons/sort.svg" alt="Sieve icon" />
|
||||||
src="/static/icons/sort.svg"
|
|
||||||
alt="Sieve icon"
|
|
||||||
/>
|
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ range $answer := .answers }}
|
{{ range $answer := .answers }}
|
||||||
<div class="answer" id="{{ $answer.ID }}">
|
<div class="answer" id="{{ $answer.ID }}">
|
||||||
<div
|
<div class="answer-meta{{ if $answer.IsAccepted }} accepted{{end}}">
|
||||||
class="answer-meta{{ if $answer.IsAccepted }} accepted{{end}}"
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
{{ if $answer.IsAccepted }} Accepted - {{ end }}
|
{{ if $answer.IsAccepted }} Accepted - {{ end }}
|
||||||
{{$answer.Upvotes}} Votes
|
{{$answer.Upvotes}} Votes
|
||||||
@ -93,12 +82,7 @@
|
|||||||
<div class="answer-author-parent">
|
<div class="answer-author-parent">
|
||||||
<div class="answer-author">
|
<div class="answer-author">
|
||||||
Answered {{ $answer.Timestamp }} by
|
Answered {{ $answer.Timestamp }} by
|
||||||
<a
|
<a href="{{ $answer.AuthorURL }}" target="_blank" rel="noopener noreferrer">{{ $answer.AuthorName }}</a>
|
||||||
href="{{ $answer.AuthorURL }}"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>{{ $answer.AuthorName }}</a
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ if $answer.Comments }} {{ template "comments.html" $answer }}
|
{{ if $answer.Comments }} {{ template "comments.html" $answer }}
|
||||||
@ -106,4 +90,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user