Fix centered-div class usage in index.templ

There was a redundant <center> tag around a div with centered-div class. Well, not so redundant because a typo in the class attribute caused it to not apply.

Removed another <center> tag and replaced by a div.centered-div for consistency.

Signed-off-by: Jesús Martínez Novo <martineznovo@gmail.com>
This commit is contained in:
Jesús Martínez Novo 2025-07-08 17:36:07 +02:00 committed by GitHub
parent 95768cb70f
commit e2d99fd1fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,12 +65,10 @@ templ base(title string, body templ.Component, impressum *config.Impressum, chal
</head>
<body id="top">
<main>
<center>
<h1 id="title" class=".centered-div">{ title }</h1>
</center>
<h1 id="title" class="centered-div">{ title }</h1>
@body
<footer>
<center>
<div class="centered-div">
<p>
{ localizer.T("protected_by") } <a href="https://github.com/TecharoHQ/anubis">Anubis</a> from <a
href="https://techaro.lol"
@ -83,7 +81,7 @@ templ base(title string, body templ.Component, impressum *config.Impressum, chal
-- <a href={ templ.SafeURL(fmt.Sprintf("%simprint", anubis.APIPrefix)) }>Imprint</a>
</p>
}
</center>
</div>
</footer>
</main>
</body>