Add footer menu

This commit is contained in:
Rafael Mardojai CM 2023-12-17 11:12:09 -05:00
parent 1ad0cc88b3
commit 5ba633d209
No known key found for this signature in database
GPG key ID: 2B2DAB2A58566C84
5 changed files with 33 additions and 5 deletions

View file

@ -63,8 +63,6 @@
li { li {
a { a {
font-size: 1.2em;
font-weight: 700;
text-decoration: none; text-decoration: none;
&:hover { &:hover {

View file

@ -1,5 +1,4 @@
.footer { .footer {
text-align: center;
.container { .container {
align-items: center; align-items: center;
@ -11,6 +10,21 @@
} }
} }
.menu {
margin-bottom: 1em;
@media (max-width: 768px) {
ul {
align-items: center;
flex-direction: column;
}
}
a:hover {
text-decoration: underline;
}
}
.circle img { .circle img {
width: 200px; width: 200px;
} }

View file

@ -48,7 +48,8 @@
} }
a { a {
color: white; font-size: 1.2em;
font-weight: 700;
} }
} }
} }

View file

@ -20,6 +20,9 @@ disableKinds = ['taxonomy', 'term']
[[menus.main]] [[menus.main]]
name = 'Github' name = 'Github'
url = 'https://github.com/dialect-app' url = 'https://github.com/dialect-app'
[[menus.footer]]
name = 'Website Stats'
url = 'https://analytics.odka.org/dialectapp.org'
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe= true unsafe= true

View file

@ -1,6 +1,18 @@
<footer class="section section-page footer"> <footer class="section section-page footer">
<div class="container"> <div class="container">
<p class="copy">© 2020{{ dateFormat "2006" now }} The Dialect Authors</p> <div>
<nav class="menu">
<ul>
{{- range site.Menus.footer }}
<li>
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
</nav>
<p class="copy">© 2020{{ dateFormat "2006" now }} The Dialect Authors</p>
</div>
<a href="https://circle.gnome.org" class="circle"> <a href="https://circle.gnome.org" class="circle">
<img src="https://circle.gnome.org/assets/button/circle-button-fullcolor.svg" alt="GNOME Circle"> <img src="https://circle.gnome.org/assets/button/circle-button-fullcolor.svg" alt="GNOME Circle">
</a> </a>