Skip to content

Commit

Permalink
refactor: oppdater footer
Browse files Browse the repository at this point in the history
  • Loading branch information
adalinesimonian committed Mar 12, 2024
1 parent 5c6c405 commit e55283e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 26 deletions.
3 changes: 3 additions & 0 deletions site/data/discord.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"joinUrl": "https://discord.gg/mBsKjx7"
}
4 changes: 0 additions & 4 deletions site/data/footer.json

This file was deleted.

25 changes: 9 additions & 16 deletions site/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,35 @@

<div class="measure-narrow center mb4">

<img src="/img/logo.svg" alt="Kaldi logo" class="db w4 center mb4 br0">
<p class="f3 lh-title light-gray b tc mb2">{{ .Site.Data.footer.title }}</p>
<p>{{ .Site.Data.footer.blurb }}</p>

{{ partial "newsletter-form" . }}
<img src="/nll-logo-horizontal.png" alt="NLL logo" class="db w4 center mb4 br0">

</div>

<div class="flex-ns justify-between">

<div>
<h3 class="f4 b lh-title mb1 primary">Kaldi</h3>
<h3 class="f4 b lh-title mb1 primary">NLL</h3>
<ul class="mb3">
<li><a href="/" class="link">Home</a></li>
<li><a href="/products" class="link">Our products</a></li>
<li><a href="/values" class="link">About</a></li>
<li><a href="/post" class="link">Blog</a></li>
<li><a href="/contact" class="link">Contact</a></li>
</ul>
</div>

<div>
<h3 class="f4 b lh-title mb1 primary">Find out more</h3>
<h3 class="f4 b lh-title mb1 primary">Join us</h3>
<ul class="mb3">
<li><a href="/post/jamaica-blue/" class="link">Latest offers</a></li>
<li><a href="/contact" class="link">Schedule an appointment</a></li>
<li><a href="{{ .Site.Data.discord.joinUrl }}" class="link">Discord</a></li>
</ul>
</div>

<div>
<h3 class="f4 b lh-title mb2 primary">Social media</h3>
<ul class="mhn2">
{{ partial "social-icon" (dict "link" "#" "svg" "icons-facebook" "alt" "Kaldi on Facebook") }}
{{ partial "social-icon" (dict "link" "#" "svg" "icons-twitter" "alt" "Kaldi on Twitter") }}
{{ partial "social-icon" (dict "link" "#" "svg" "icons-instagram" "alt" "Kaldi on Instagram") }}
{{ partial "social-icon" (dict "link" "#" "svg" "icons-vimeo" "alt" "Kaldi on Vimeo") }}
<h3 class="f4 b lh-title mb2 primary">Contribute</h3>
<ul class="mb3">
<li><a href="/admin" class="link">Contribute content</a></li>
<li><a href="https://github.com/nllcommunity" class="link">GitHub</a></li>
<li><a href="https://gitlab.com/NorwegianLanguageLearning" class="link">GitLab</a></li>
</ul>
</div>

Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- Logo -->
<a href="/" class="pa3 db mr4 h-100 w3 flex-none">
<img src="/img/logo.svg" alt="Kaldi logo" class="br0 db mb0 w-100"/>
<img src="/nll-logo-horizontal.png" alt="NLL logo" class="br0 db mb0 w-100"/>
</a>

<!-- Primary Nav -->
Expand Down
9 changes: 4 additions & 5 deletions site/static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ collections: # A list of collections the CMS should be able to edit
- name: "site_settings"
label: "Site Settings"
files:
- file: "site/data/footer.json"
label: Footer
name: footer
- file: "site/data/discord.json"
label: Discord
name: discord
fields:
- {label: Title, name: title, widget: string}
- {label: Blurb, name: blurb, widget: text}
- {label: Join Link, name: joinUrl, widget: string}
- file: "site/hugo.toml"
label: Hugo Config
name: config
Expand Down
Binary file added site/static/nll-logo-horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e55283e

Please sign in to comment.