feat: initial skeleton + landing styling done

This commit is contained in:
ae 2024-12-09 20:10:02 +02:00
parent 11522f7fbf
commit 35c4ca5eb4
Signed by: ae
GPG Key ID: 995EFD5C1B532B3E
16 changed files with 303 additions and 6 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@ hugo.linux
# Temporary lock file while building # Temporary lock file while building
/.hugo_build.lock /.hugo_build.lock
# Configs (testing)
hugo.yaml

20
LICENSE
View File

@ -1,9 +1,21 @@
MIT License MIT License
Copyright (c) 2024 ae Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,3 +1,7 @@
# thunderball # Theme Name
Ultra-minimalistic Hugo theme for golfed.xyz ## Features
## Installation
## Configuration

5
archetypes/default.md Normal file
View File

@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

65
assets/css/style.css Normal file
View File

@ -0,0 +1,65 @@
:root {
--background: #0a0a0a;
--highlight: #fdc500;
--text: #a9d6e5;
}
body {
margin: 0;
padding: 0;
font-family: 'Courier New', monospace;
background-color: var(--background);
color: var(--text);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.main-content {
max-width: 1000px;
padding: 20px;
}
.ascii-art {
white-space: pre;
font-size: 14px;
line-height: 1.2;
text-align: center;
color: var(--highlight);
margin-bottom: 20px;
}
.links {
text-align: center;
margin-top: 20px;
}
.links a {
color: var(--text);
text-decoration: none;
margin: 0 10px;
transition: color 0.3s ease;
display: inline-block;
}
.links a:hover {
color: var(--highlight);
}
.separator {
content: "•";
display: block;
text-align: center;
margin: 15px auto;
color: var(--highlight);
}
h1 {
color: var(--highlight);
}
.date {
font-style: italic;
color: var(--highlight);
margin-bottom: 20px;
}
.error-message {
text-align: center;
color: var(--text);
margin-top: 20px;
font-size: 1.2em;
}

35
layouts/404.html Normal file
View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<div class="main-content">
<p class="ascii-art">
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⣶⣶⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣿⡟⠋⠉⣴⠟⠁⠉⠙⣻⣶⣬⣽⣿⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣤⡿⠋⣤⣾⠿⢛⡿⠻⣷⣶⠿⠛⠉⠁⢻⣆⠀⠈⠙⣿⣷⣀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣿⠋⣿⢿⣥⢸⣧⣿⣾⢛⣁⣻⣤⣤⣤⣤⣤⣿⣀⠀⠀⠈⣷⠙⣷⡀⠀⠀⠀⠀
⠀⠀⠀⠀⣾⣟⣤⣾⣷⣶⣾⣿⣿⣿⣟⣉⡉⢸⡇⠀⠀⠀⠀⢸⡏⠛⠻⢷⣾⣇⠀⢿⣄⠀⠀⠀
⠀⠀⠀⣾⡿⠋⢰⣇⣶⢟⣿⣿⣿⠻⣦⠉⢙⣿⢷⣦⣄⠀⠀⣼⠃⠀⠀⠀⠀⣿⠿⣦⣿⣆⠀⠀
⠀⠀⣾⣿⠀⣤⡿⣯⣠⡟⢰⡏⢻⡄⠈⣿⣿⠁⠀⠀⠈⠛⢿⣿⡀⠀⠀⠀⢠⡟⠀⠈⢻⣿⡆⠀
⠀⢰⡏⣿⡿⠉⠀⣼⢿⣦⣿⣤⣼⣿⠟⠁⠙⣷⡀⠀⠀⢀⡿⠀⠙⢿⣦⠀⣾⠃⠀⠀⢈⡟⣿⠀
⠀⣿⣰⣿⠀⠀⣼⠏⠀⢠⡟⠀⠀⣿⡀⠀⠀⠀⢻⣆⣴⠟⠀⠀⠀⠀⠈⢻⣿⡀⠀⠀⢸⡇⠹⣇
⢀⣿⡟⠹⣦⣰⠏⠀⠀⢸⡇⠀⠀⠘⣧⠀⠀⠀⣤⡿⣿⡀⠀⠀⠀⠀⢠⡿⠀⠻⣦⠀⣿⠁⠀⣿
⢸⣿⠀⠀⢙⣿⣤⡀⠀⣿⠀⠀⠀⠀⣿⣤⣾⠟⠁⠀⠀⢿⣄⠀⠀⣰⠟⠀⠀⠀⠈⣿⣟⠀⢀⣿
⢸⣿⡀⠀⣾⠁⠈⠙⠛⣿⠿⠿⠟⠛⠉⣷⠀⠀⠀⠀⠀⠀⠹⣧⣾⠋⠀⠀⠀⠀⢠⡿⢻⣆⣸⣿
⠈⣏⣿⡀⣿⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⢻⡄⠀⠀⠀⠀⣠⣾⠛⣷⡀⠀⠀⠀⣠⡟⠀⠀⢻⡿⣿
⠀⣿⠀⢻⣧⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⣿⠀⣠⣶⠿⠉⠀⠀⠈⢿⡄⢀⣾⠋⠀⠀⠀⣿⣿⡏
⠀⠸⣧⢸⡇⠛⠿⣶⣤⣿⣀⣀⣤⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⠀⠀⣿⡟⠀⠀⠀⢀⣿⠁⣿⠀
⠀⠀⢿⣦⣷⠀⠀⠀⠀⢸⡇⠉⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⣀⣶⠟⠁⢿⡄⠀⣠⡿⠀⣼⠏⠀
⠀⠀⠀⢿⣿⣤⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⢿⡀⣀⣴⠿⠋⠀⠀⠀⠀⣿⣾⠋⠀⣴⠏⠀⠀
⠀⠀⠀⠀⢻⣿⠛⢿⣶⣤⣽⣄⣀⣀⣠⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⣠⣾⠋⣿⠀⣾⠋⠀⠀⠀
⠀⠀⠀⠀⠀⠙⣿⣄⠀⠀⠀⣿⠉⠉⠁⠀⠀⠀⠀⠈⣿⠀⠀⣠⣶⠟⠉⠀⠀⣽⡿⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠙⣿⣶⣤⣈⣿⡀⠀⠀⢀⣀⣀⣤⣾⣿⡛⠉⠀⠀⢀⣴⠿⠉⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⢿⣭⣿⣟⡛⠋⠉⠉⠀⠀⠀⢿⣦⣶⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠛⠻⠿⠿⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
</p>
<p class="error-message">404 Page Not Found</p>
</div>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
{{ partial "footer.html" . }}
</footer>
</body>
</html>

View File

@ -0,0 +1,12 @@
{{ define "main" }}
<div class="main-content">
<h1>{{ .Title }}</h1>
{{ range .Pages }}
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="date">{{ .Date.Format "January 02, 2006" }}</p>
<p>{{ .Summary }}</p>
</article>
{{ end }}
</div>
{{ end }}

View File

@ -0,0 +1,14 @@
{{ define "main" }}
<div class="main-content">
<h1>{{ .Title }}</h1>
<p class="date">{{ .Date.Format "January 02, 2006" }}</p>
{{ with .Params.originalPost }}
<p><em>Originally posted on <a href="{{ .url }}">{{ .source }}</a></em></p>
{{ end }}
<div class="content">
{{ .Content }}
</div>
</div>
{{ end }}

51
layouts/index.html Normal file
View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<div class="main-content">
<p class="ascii-art">
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⣶⣶⣶⣶⣦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣿⡟⠋⠉⣴⠟⠁⠉⠙⣻⣶⣬⣽⣿⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⣤⡿⠋⣤⣾⠿⢛⡿⠻⣷⣶⠿⠛⠉⠁⢻⣆⠀⠈⠙⣿⣷⣀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⣠⣿⠋⣿⢿⣥⢸⣧⣿⣾⢛⣁⣻⣤⣤⣤⣤⣤⣿⣀⠀⠀⠈⣷⠙⣷⡀⠀⠀⠀⠀
⠀⠀⠀⠀⣾⣟⣤⣾⣷⣶⣾⣿⣿⣿⣟⣉⡉⢸⡇⠀⠀⠀⠀⢸⡏⠛⠻⢷⣾⣇⠀⢿⣄⠀⠀⠀
⠀⠀⠀⣾⡿⠋⢰⣇⣶⢟⣿⣿⣿⠻⣦⠉⢙⣿⢷⣦⣄⠀⠀⣼⠃⠀⠀⠀⠀⣿⠿⣦⣿⣆⠀⠀
⠀⠀⣾⣿⠀⣤⡿⣯⣠⡟⢰⡏⢻⡄⠈⣿⣿⠁⠀⠀⠈⠛⢿⣿⡀⠀⠀⠀⢠⡟⠀⠈⢻⣿⡆⠀
⠀⢰⡏⣿⡿⠉⠀⣼⢿⣦⣿⣤⣼⣿⠟⠁⠙⣷⡀⠀⠀⢀⡿⠀⠙⢿⣦⠀⣾⠃⠀⠀⢈⡟⣿⠀
⠀⣿⣰⣿⠀⠀⣼⠏⠀⢠⡟⠀⠀⣿⡀⠀⠀⠀⢻⣆⣴⠟⠀⠀⠀⠀⠈⢻⣿⡀⠀⠀⢸⡇⠹⣇
⢀⣿⡟⠹⣦⣰⠏⠀⠀⢸⡇⠀⠀⠘⣧⠀⠀⠀⣤⡿⣿⡀⠀⠀⠀⠀⢠⡿⠀⠻⣦⠀⣿⠁⠀⣿
⢸⣿⠀⠀⢙⣿⣤⡀⠀⣿⠀⠀⠀⠀⣿⣤⣾⠟⠁⠀⠀⢿⣄⠀⠀⣰⠟⠀⠀⠀⠈⣿⣟⠀⢀⣿
⢸⣿⡀⠀⣾⠁⠈⠙⠛⣿⠿⠿⠟⠛⠉⣷⠀⠀⠀⠀⠀⠀⠹⣧⣾⠋⠀⠀⠀⠀⢠⡿⢻⣆⣸⣿
⠈⣏⣿⡀⣿⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⢻⡄⠀⠀⠀⠀⣠⣾⠛⣷⡀⠀⠀⠀⣠⡟⠀⠀⢻⡿⣿
⠀⣿⠀⢻⣧⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⣿⠀⣠⣶⠿⠉⠀⠀⠈⢿⡄⢀⣾⠋⠀⠀⠀⣿⣿⡏
⠀⠸⣧⢸⡇⠛⠿⣶⣤⣿⣀⣀⣤⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⠀⠀⣿⡟⠀⠀⠀⢀⣿⠁⣿⠀
⠀⠀⢿⣦⣷⠀⠀⠀⠀⢸⡇⠉⠀⠀⠀⠀⠀⢻⡆⠀⠀⠀⠀⣀⣶⠟⠁⢿⡄⠀⣠⡿⠀⣼⠏⠀
⠀⠀⠀⢿⣿⣤⡀⠀⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⢿⡀⣀⣴⠿⠋⠀⠀⠀⠀⣿⣾⠋⠀⣴⠏⠀⠀
⠀⠀⠀⠀⢻⣿⠛⢿⣶⣤⣽⣄⣀⣀⣠⣤⣴⣶⠿⣿⠉⠀⠀⠀⠀⠀⣠⣾⠋⣿⠀⣾⠋⠀⠀⠀
⠀⠀⠀⠀⠀⠙⣿⣄⠀⠀⠀⣿⠉⠉⠁⠀⠀⠀⠀⠈⣿⠀⠀⣠⣶⠟⠉⠀⠀⣽⡿⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠙⣿⣶⣤⣈⣿⡀⠀⠀⢀⣀⣀⣤⣾⣿⡛⠉⠀⠀⢀⣴⠿⠉⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⢿⣭⣿⣟⡛⠋⠉⠉⠀⠀⠀⢿⣦⣶⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠙⠛⠻⠿⠿⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
</p>
<div class="links">
{{ range .Site.Params.services }}
<a href="{{ .url }}" title="{{ .name }}">{{ .name }}</a>
{{ end }}
</div>
<div class="separator">•••</div>
<div class="links">
{{ range .Site.Params.contacts }}
<a href="{{ .url }}" title="{{ .display }}">{{ .name }}</a>
{{ end }}
</div>
<div class="separator">•••</div>
<div class="links">
{{ range .Site.Params.others }}
<a href="{{ .url }}" title="{{ .display }}">{{ .name }}</a>
{{ end }}
</div>
</div>
</body>
</html>

View File

@ -0,0 +1 @@
<p>Copyright {{ now.Year }}. All rights reserved.</p>

View File

@ -0,0 +1,57 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Assets (cache busting applied )-->
{{ partialCached "head/css.html" . }}
<!-- Title -->
<title>{{ if eq .RelPermalink "/404.html" }}404 | {{ .Site.Title }}{{ else if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<!-- Metadata -->
<meta name="description" content="{{ site.Params.description }}" />
<meta name="robots" content="index, follow" />
<meta name="canonical" href="{{ .Permalink }}" />
<!-- Icons -->
<link
rel="apple-touch-icon"
sizes="180x180"
href="{{ site.Params.assets.appleTouchIcon | default "apple-touch-icon.png" | absURL }}"
/>
<link
rel="icon"
href="{{ site.Params.assets.favicon | default "favicon.ico" |absURL }}"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="{{ site.Params.assets.favicon32 | default "favicon-32x32.png" | absURL }}"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="{{ site.Params.assets.favicon16 | default "favicon-16x16.png" | absURL }}"
/>
<link
rel="manifest"
href="{{ site.Params.assets.manifest | default "manifest.json" }}"
/>
<link
rel="mask-icon"
href="{{ site.Params.assets.safariPinnedTabIcon | default "safari-pinned-tab.svg" | absURL }}"
color="{{ site.Params.assets.safariPinnedTabColor | default "#030303" }}"
/>
<meta
name="msapplication-TileColor"
content="{{ site.Params.assets.msTileColor | default "#2b5797" }}"
/>
<meta
name="msapplication-TileImage"
content="{{ site.Params.assets.msTileIcon | default "mstile-150x150.png" }}"
/>
<meta
name="theme-color"
content="{{ site.Params.assets.themeColor | default "#030303" }}"
/>

View File

@ -0,0 +1,9 @@
{{- with resources.Get "css/style.css" }}
{{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{- else }}
{{- with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
{{- end }}

7
layouts/robots.txt Normal file
View File

@ -0,0 +1,7 @@
User-agent: *
{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
Allow: /
{{- else }}
Disallow: /
{{- end }}
Sitemap: {{ "sitemap.xml" | absURL }}

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

9
theme.toml Normal file
View File

@ -0,0 +1,9 @@
name = "Thunderball"
license = "MIT"
licenselink = "https://git.umbrella.haus/ae/thunderball/LICENSE"
homepage = "https://git.umbrella.haus/ae/thunderball"
[author]
name = "ae"
homepage = "https://golfed.xyz"