Initial commit: Add telonma homepage

This commit is contained in:
2024-12-19 13:52:17 +01:00
commit eabd1921ab
222 changed files with 27012 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{{ with .Site.Params.googleTagManagerID }}
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{.}}"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
{{- end -}}

View File

@@ -0,0 +1,7 @@
{{ with .Site.Params.googleTagManagerID }}
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{.}}');</script>
{{- end -}}

View File

@@ -0,0 +1,21 @@
<section class="col-6 col-12-narrower">
<h3>{{ .header | default "Get In Touch" }}</h3>
<form method="POST" action="{{ .action }}">
<div class="row gtr-50">
<div class="col-6 col-12-mobilep">
<input type="text" name="name" id="name" placeholder="{{ T "contact_name" }}" />
</div>
<div class="col-6 col-12-mobilep">
<input type="email" name="email" id="email" placeholder="{{ T "contact_email" }}" />
</div>
<div class="col-12">
<textarea name="message" id="message" placeholder="{{ T "contact_message" }}" rows="5"></textarea>
</div>
<div class="col-12">
<ul class="actions">
<li><input type="submit" class="button alt" value="{{ T "contact_submit" }}" />
</ul>
</div>
</div>
</form>
</section>

View File

@@ -0,0 +1,47 @@
<div id="footer">
<div class="container">
<div class="row">
{{- if gt (len .Site.Params.footer.links) 0 }}
{{- $link_cols := div (cond .Site.Params.footer.contact_form.enabled 6 12) (len .Site.Params.footer.links) }}
{{- range .Site.Params.footer.links }}
<section class="col-{{ $link_cols }} col-6-narrower col-12-mobilep">
<h3>{{ .header }}</h3>
<ul class="links">
{{- range .links }}
{{- if .pageref -}}
<li><a href="{{ (site.GetPage .pageref).Permalink }}">{{ .title }}</a>
{{- else -}}
<li><a href="{{ .url }}">{{ .title }}</a>
{{- end -}}
{{- end }}
</ul>
</section>
{{- end }}
{{ end }}
{{- if .Site.Params.footer.contact_form.enabled }}
{{- partial "footer/contact.html" .Site.Params.footer.contact_form }}
{{- end }}
</div>
</div>
<ul class="icons">
{{- range .Site.Params.social }}
<li><a href="{{ .url }}" class="{{ if .icon }}icon brands {{ .icon }}{{ end }}">
<span class="label">{{ .title }}</span>
</a>
{{- end }}
</ul>
<div class="copyright">
<ul class="menu">
{{ if .Site.Copyright }}
<li>{{ replace .Site.Copyright "{currentYear}" now.Year }}
{{ end }}
{{- if .Site.Params.attribution | default true }}
<li>Design: <a href="https://html5up.net">HTML5 UP</a>
<li><a href="https://github.com/half-duplex/hugo-arcana">Theme</a>
{{- end }}
</ul>
</div>
</div>

View File

@@ -0,0 +1,4 @@
{{/* This file intentionally left blank.
* Put your custom head template for analytics, etc. into your site's
* (not the theme's) layouts/partials/head/custom.html
*/}}

View File

@@ -0,0 +1,9 @@
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" .Site.Params.enableSourceMaps) }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "main.scss" . | css.Sass $options }}
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{- partial "analytics/google-tag-manager/head.html" . -}}
{{- partial "head/custom.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}

View File

@@ -0,0 +1,37 @@
<div id="header">
{{ if hugo.IsMultilingual }}
{{- partial "languages.html" . }}
{{- end -}}
<div id="logo-wrapper"><h1><a href="{{ .Site.BaseURL }}" id="logo">
{{- if .Site.Data.globalheader.image }}
<img src="{{ .Site.Data.globalheader.image | relURL }}" alt="{{ .Site.Data.globalheader.image_alt }}" />
{{- end }}
{{ with .Site.Data.globalheader.title }}{{ . | markdownify }}{{ else }}{{ .Site.Title }}{{ end }}
</a></h1></div>
<nav id="nav">
<ul>
{{- range .Site.Menus.main }}
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
{{- if .HasChildren -}}
<ul>
{{- range .Children }}
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
{{- if .HasChildren -}}
<ul>
{{- range .Children }}
<li class="{{ if or ($.Page.IsMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .) }}current{{ end }}">
{{/* aoeu fix 'current' thing */}}
<a href="{{ .URL | default "#" }}">{{ .Name }}</a>
{{- end }}
</ul>
{{- end -}}
{{- end }}
</ul>
{{- end -}}
{{- end }}
</ul>
</nav>
</div>

View File

@@ -0,0 +1,8 @@
<section id="banner">
<header>
<h2>{{ .contents | markdownify }}</h2>
{{- if .button }}
<a href="{{ .button.url }}" class="button">{{ .button.contents }}</a>
{{- end }}
</header>
</section>

View File

@@ -0,0 +1,10 @@
<section id="cta" class="wrapper style3">
<div class="container">
<header>
<h2>{{ .item.contents | markdownify }}</h2>
{{- with .item.button }}
<a href="{{ .url }}" class="button">{{ .contents }}</a>
{{- end }}
</header>
</div>
</section>

View File

@@ -0,0 +1,13 @@
<section class="wrapper style2">
<div class="container">
<header class="major">
<h2>{{ .item.heading }}</h2>
{{- $html := .item.contents | markdownify }}
{{- if (findRE "<p(?: [^>]*)?>" $html) }}
{{ $html }}
{{- else -}}
<p>{{ $html }}</p>
{{- end }}
</header>
</div>
</section>

View File

@@ -0,0 +1,16 @@
<section class="wrapper style1">
<div class="container">
<div class="row gtr-200">
{{- $item_cols := (div 12 (.item.items_per_row | default 3)) }}
{{- range .item.items }}
<section class="col-{{ $item_cols }} col-12-narrower">
<div class="box highlight">
<i class="icon solid major {{ .icon }}"></i>
<h3>{{ .title }}</h3>
<p>{{ .content | markdownify }}</p>
</div>
</section>
{{- end }}
</div>
</div>
</section>

View File

@@ -0,0 +1,18 @@
<section class="wrapper style1">
<div class="container">
{{ with .item.heading }}<h2>{{ . }}</h2>{{ end }}
{{- $pages := (.ctx.Site.GetPage .item.content_type).RegularPagesRecursive }}
{{- range $idx, $itm := first (.item.max | default 4) $pages }}
{{- $rowpos := mod $idx 2 }}
{{- if eq $rowpos 0 }}
<div class="row">
{{ end }}
{{- .Render "shortblock" -}}
{{ if or (eq $rowpos 1) (eq $idx (len $pages)) -}}
</div>
{{- end }}
{{- end }}
</div>
</section>

View File

@@ -0,0 +1,26 @@
<div class="dropdown" id="multilingual">
<a class="dropbtn language link depth-0" href="#" title="{{ T "language_select" }}" id="languageDropdown" role="button" data-toggle="dropdown" aria-expanded="false">
<i class="fas fa-fw fa-globe"></i>
<span class="d-lg-none">{{.Site.Language.Lang}}</span>
</a>
<ul id="languageContent" class="dropdown-content" aria-labelledby="languageDropdown">
<!-- Use the link of the translation of the current page if exists
else use the link of the translated website (e.g. /en/) -->
{{ $current_page := . }}
{{- range $.Site.Home.AllTranslations }}
{{- $translation_link := .RelPermalink }}
{{- $lang := .Language.Lang }}
{{- range $current_page.AllTranslations }}
<!-- Overwrite if language code is equal -->
{{- if eq .Language.Lang $lang -}}
{{- $translation_link = .RelPermalink -}}
{{- end -}}
{{- end }}
<li>
<a class="dropdown-item link depth-1{{ if eq $.Lang .Language.Lang }} selected{{ end }}" href="{{ $translation_link }}">
{{ .Language.LanguageName }}
</a>
</li>
{{- end -}}
</ul>
</div>

View File

@@ -0,0 +1,20 @@
<div class="row">
{{ range . }}
<section class="col-6 col-12-narrower">
<div class="box post">
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></a>
<div class="inner">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ with .Date }}<p class="date">{{ . | time.Format ":date_medium" }}</p>{{ end }}
<p>
{{ with .Description }}
{{ . }}
{{ else }}
{{ .Summary }}
{{ end }}
</p>
</div>
</div>
</section>
{{ end }}
</div>

View File

@@ -0,0 +1,6 @@
<script src="{{ (resources.Get "js/jquery.min.js").RelPermalink }}"></script>
<script src="{{ (resources.Get "js/jquery.dropotron.min.js").RelPermalink }}"></script>
<script src="{{ (resources.Get "js/browser.min.js").RelPermalink }}"></script>
<script src="{{ (resources.Get "js/breakpoints.min.js").RelPermalink }}"></script>
<script src="{{ (resources.Get "js/util.js").RelPermalink }}"></script>
<script src="{{ (resources.Get "js/main.js").RelPermalink }}"></script>

View File

@@ -0,0 +1,7 @@
<ul class="tags">
{{- with .GetTerms "tags" }}
{{- range . -}}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end }}
{{- end }}
</ul>