1
0

In Index template removed one tab level to save horizontal space.

This commit is contained in:
Alexander Andreev 2024-12-27 16:35:03 +04:00
parent c63d59f0a4
commit 2c8a9e3e61
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -8,9 +8,9 @@ import "strconv"
templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.DirEntry, r *http.Request) {
<!doctype html>
<html lang={ i18n.GetLocale(ctx).Code().String() }>
<head>
<!doctype html>
<html lang={ i18n.GetLocale(ctx).Code().String() }>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@ -25,9 +25,9 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<link rel="icon" href="/assets/img/favicon.svg" sizes="any" type="image/svg+xml"/>
<link rel="stylesheet" href="/assets/css/main.css" />
<script src="/assets/js/main.js" defer></script>
</head>
<body>
<header>
</head>
<body>
<header>
<svg width="360" viewBox="0 -36 360 66">
<text y="7" textLength="360" lengthAdjust="spacingAndGlyphs">Arav's dwelling</text>
<text y="25" textLength="360" lengthAdjust="spacingAndGlyphs">Welcome to my sacred place, wanderer</text>
@ -36,8 +36,8 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<a href={ templ.SafeURL(utils.MainSite(r.Host)) }>{ i18n.T(ctx, "back-home") }</a>
<h1>{ i18n.T(ctx, "title") }</h1>
</nav>
</header>
<main>
</header>
<main>
<section>
<span><a href="/">{ i18n.T(ctx, "curpath-root") }</a>@templ.Raw(currentPath)</span>
<p>{ i18n.T(ctx, "stats.files") }: { strconv.FormatInt(stat.Files, 10) } ({ stat.FilesSize }); { i18n.T(ctx, "stats.directories") }: { strconv.FormatInt(stat.Directories, 10) }.</p>
@ -77,14 +77,14 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<section id="instruction" class="hidden">
<p>{ i18n.T(ctx, "instruction") }</p>
</section>
</main>
<footer>
</main>
<footer>
<a href="?lang=ru">рус</a>
<a href="?lang=en">eng</a>
<br/>
v{ progVer } 2017&mdash;2024 { i18n.T(ctx, "footer.author") } &lt;<a href="mailto:me@arav.su">me@arav.su</a>&gt; <a href={ templ.SafeURL(utils.MainSite(r.Host) + "/privacy") }>{ i18n.T(ctx, "footer.privacy") }</a>
</footer>
<div id="overlay">
</footer>
<div id="overlay">
<button name="prev">&#10096;</button>
<div></div>
<span></span>
@ -93,7 +93,7 @@ templ Index(currentPath, progVer string, stat *files.DirStat, entries *[]files.D
<label for="c-autoplay">{ i18n.T(ctx, "autoplay") }</label>
</span>
<button name="next">&#10097;</button>
</div>
</body>
</html>
</div>
</body>
</html>
}