commit 5671f376d5c80b2f125c17af373665f417aebd85 Author: Emilia Date: Wed Jul 19 15:33:57 2023 -0400 Initial diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 YOUR_NAME_HERE + +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 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. diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..ea607a2 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,8 @@ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +lastmod: {{ .Date }} +date: {{ .Date }} +author: "Emilia" +tags: [] +draft: true +--- diff --git a/assets/scss/index.scss b/assets/scss/index.scss new file mode 100644 index 0000000..0623a95 --- /dev/null +++ b/assets/scss/index.scss @@ -0,0 +1,16 @@ +@use "waltuh/waltuh"; +@use "waltuh/variables" as *; + +#pgp_a { + position: fixed; + display: none; + + font-size: $fs-200; + margin-top: 0.6rem; +} + +footer { + width: 100%; + font-size: clamp(2rem, $fs-800, 15vw); + justify-content: center !important; +} diff --git a/assets/scss/waltuh/_variables.scss b/assets/scss/waltuh/_variables.scss new file mode 100644 index 0000000..1028ca3 --- /dev/null +++ b/assets/scss/waltuh/_variables.scss @@ -0,0 +1,33 @@ +@use "sass:color"; +@use "sass:math"; + +$-color-white: hsl(280 30% 80%); +$-color-dark: color.adjust($-color-white, $lightness: -50%); +$-color-light: hsl(190 80% 30%); +$-ff-serif: "Inconsolata", monospace; +$-ff-sans: "Jost", sans-serif; +$-fs-900: math.div(100rem, 16); + +@forward "base" with ( + $color-white: $-color-white, + $color-dark: $-color-dark, + $color-light: $-color-light, + $ff-serif: $-ff-serif, + $ff-sans: $-ff-sans, + $fs-900: $-fs-900 +); + +@font-face { + font-family: "Inconsolata"; + src: url("/fonts/Inconsolata.ttf"); + + font-display: swap; + font-variation-settings: "wdth" 85; +} + +@font-face { + font-family: "Jost"; + src: url("/fonts/Jost.ttf"); + + font-display: swap; +} diff --git a/assets/scss/waltuh/base.scss b/assets/scss/waltuh/base.scss new file mode 100644 index 0000000..4c9b0c4 --- /dev/null +++ b/assets/scss/waltuh/base.scss @@ -0,0 +1,214 @@ +// +// +// Do Not Change This File! +// +// +@use "sass:math"; +/* ----------------- */ +/* Custom Properties */ +/* ----------------- */ +/* + This values are to be overridden + after being injected into + the global scope. +*/ + + /* colors */ + +$color-dark: hsl(0 0% 0%) !default; /* Black */ +$color-light: hsl(0 0% 50%) !default; /* Gray */ +$color-white: hsl(0 0% 100%) !default;/* White */ + + /* font */ + + /* Sizes divided by 16 so values given in px */ +$fs-900: math.div(125rem, 16) !default; +$fs-800: math.div(75rem, 16) !default; +$fs-700: math.div(56rem, 16) !default; +$fs-600: math.div(32rem, 16) !default; +$fs-500: math.div(28rem, 16) !default; +$fs-400: math.div(24rem, 16) !default; +$fs-300: math.div(18rem, 16) !default; +$fs-200: math.div(16rem, 16) !default; + +$ff-serif: serif !default; +$ff-sans-cond: sans-serif !default; +$ff-sans: sans-serif !default; + +/* --------------- */ +/* Utility Classes */ +/* --------------- */ + +/* Layouts */ + +.container { + padding-inline: clamp(0.5rem, 4rem, 5rem); + margin-inline: auto; + max-width: 80rem; +} + +.flex { + display: flex; + gap: 2rem; +} + +.column { + justify-content: center; + align-items: center; + flex-direction: column; + align-content: center; +} + +.row { + flex-direction: row; + flex-wrap: wrap; + justify-content: space-evenly; + align-content: baseline; + max-width: 100%; +} + +.two-columns { + display: grid; + /* Will shrink to one column, never exceed two! + * The `max` in `minmax` asks that the columns + * be no smaller */ + grid-template-columns: repeat(auto-fit, minmax(max(30rem, 40%), 1fr)); + column-gap: 1rem; + justify-content: space-evenly; +} + +.lock-bottom { + position: fixed; + bottom: 0%; +} + +/* Other */ + +.hr::after { /* Add fake hr after header */ + content: ''; + + position: absolute; + display: block; + clear: both; + width: 100%; + height: 0.15rem; + + background-color: black; +} + +/* Color Classes */ + +.bg-dark { background-color: $color-dark; } +.bg-light { background-color: $color-light; } +.bg-white { background-color: $color-white; } + +.text-dark { color: $color-dark; } +.text-light { color: $color-light; } +.text-white { color: $color-white; } + +/* Font Classes */ + +.fs-900 { font-size: $fs-900; } +.fs-800 { font-size: $fs-800; } +.fs-700 { font-size: $fs-700; } +.fs-600 { font-size: $fs-600; } +.fs-500 { font-size: $fs-500; } +.fs-400 { font-size: $fs-400; } +.fs-300 { font-size: $fs-300; } +.fs-200 { font-size: $fs-200; } + +.ff-serif { font-family: $ff-serif; } +.ff-sans-cond { font-family: $ff-sans-cond; } +.ff-sans { font-family: $ff-sans; } + +.uppercase { text-transform: uppercase; } +.lowercase { text-transform: lowercase; } + +/* Semantic Tags and Their Classes */ + +header { + margin-bottom: 3vh; +} + +section:not(:last-of-type) { + margin-bottom: 3vh; +} + +footer { + margin-top: 3vh; +} + +/* ----- */ +/* Reset */ +/* ----- */ + +*, +*::before, +*::after { + box-sizing: border-box; +} + +body, h1, h2, h3, h4, h5, h6, p { + margin: 0; +} + +h1, h2, h3, h4, h5, h6, p { + font-weight: 400; +} + +h1, h2, h3 { + line-height: 1.1; +} + +body { + font-family: $ff-sans; + font-size: $fs-400; + color: $color-dark; + background-color: $color-white; + line-height: 1.5; + min-height: 100vh; +} + +main { + margin-left: 1vw; + margin-top: 1vh; + * { + z-index: 2; + } +} + +footer { + z-index: 2; +} + +img, picture { + max-width: 100%; + display: block; +} + +input, button, textarea, select { + font: inherit; +} + +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behaviour: auto !important; + } +} + +/* -------------------- */ +/* Non-Reusable Classes */ +/* -------------------- */ +/* meant for these pages + * only, not to be used + * in practice */ + +.colors--block { + padding: 3rem 1rem 1rem; + border: 1px solid black; +} diff --git a/assets/scss/waltuh/components/_header.scss b/assets/scss/waltuh/components/_header.scss new file mode 100644 index 0000000..e69de29 diff --git a/assets/scss/waltuh/components/_index.scss b/assets/scss/waltuh/components/_index.scss new file mode 100644 index 0000000..c2faa97 --- /dev/null +++ b/assets/scss/waltuh/components/_index.scss @@ -0,0 +1,3 @@ +@forward "header"; +@forward "overlay"; +@forward "marks"; diff --git a/assets/scss/waltuh/components/_marks.scss b/assets/scss/waltuh/components/_marks.scss new file mode 100644 index 0000000..d259d67 --- /dev/null +++ b/assets/scss/waltuh/components/_marks.scss @@ -0,0 +1,56 @@ +@use "sass:math"; +@use "sass:color"; +@use "../variables" as *; + + +@keyframes waltuh-gradient-anim { + $r: 6em; + $pd: math.div(2*math.$pi,10); + from { + background-position: 6em 0em; + } + @for $i from 1 through 9 { + #{$i*10}% { + background-position: $r*math.cos($i*$pd) $r*math.sin($i*$pd); + } + } + to { + background-position: 6em 0em; + } +} +@keyframes wipeIn { + from { clip-path: inset(0 100% 0 0); } + to { clip-path: inset(0 0 0 0); } +} + +span.waltuh-gradient { + font-weight: 600; + + color: transparent; + $grad1: color.adjust($color-dark, $saturation: +80%, $lightness: +20%); + $grad2: color.adjust($grad1, $lightness: +30%); + background: repeating-radial-gradient($color-dark, $grad1, $grad2 80%, white); + background-size: 30vmin 30vmin; + background-clip: text; + + animation: waltuh-gradient-anim 12s linear infinite, + wipeIn 0.25s ease-in; + +} + +span.waltuh-gradient-underline { + position: relative; + + &::after { + @extend span, .waltuh-gradient; + background-clip: unset; + border-radius: 2rem; + + content: ""; + position: absolute; + bottom: 0.2rem; + left: 10%; + height: 0.4rem; + width: 80%; + } +} diff --git a/assets/scss/waltuh/components/_overlay.scss b/assets/scss/waltuh/components/_overlay.scss new file mode 100644 index 0000000..95e1589 --- /dev/null +++ b/assets/scss/waltuh/components/_overlay.scss @@ -0,0 +1,18 @@ +@keyframes overlay-breathe { + from {opacity: 0.04;} + to {opacity: 0.10;} +} +#overlay { + width: 100%; + height: 100vh; + top: 0; + left: 0; + position: fixed; + + opacity: 0.10; + z-index: 1; + background-image: url('https://ilia.moe/img/noise.gif'); + background-size: 20vmin; + + animation: overlay-breathe 3s ease-in infinite alternate; +} diff --git a/assets/scss/waltuh/layouts/_grid.scss b/assets/scss/waltuh/layouts/_grid.scss new file mode 100644 index 0000000..b7ccd56 --- /dev/null +++ b/assets/scss/waltuh/layouts/_grid.scss @@ -0,0 +1,92 @@ +@use "sass:list"; +@use "../variables" as *; + +%grid { + display: grid; +} + +@mixin grid-3x3-offset($top: 1fr, $bottom: 1fr, $left: 1fr, $right: 1fr) { + //@debug "mixin top: #{$top}"; + @extend %grid; + grid-template-rows: $top 1fr $bottom; + grid-template-columns: $left 1fr $right; + grid-template-areas: + "nw n ne" + "w center e" + "sw s se"; +} + +/* Classes */ +%offset-grid { + margin: 0; + height: 100vh; + width: 100%; + + div { + justify-self: center; + grid-area: center; + + display: flex; + flex-direction: column; + flex-wrap: wrap; + justify-content: center; + align-items: center; + + z-index: 10; + + h1, h2, h3 { + display: inline-block; + //width: min-content; // Looks terrible in practice + } + } +} + +// Grid Offset Hell +$offset-amt: 0.33fr; +@each $dir in [top, bottom, left, right] { + $dir_adj: ""; + @if $dir { + $dir_adj: "--#{$dir}"; + } + + @each $size, $size_val in (null: 1fr, wide: 20vw, narrow: 1.2fr) { + $size_adj: ""; + @if $size { + $size_adj: "--#{$size}"; + } + .offset-grid#{$dir_adj}#{$size_adj} { + $-l: [1fr, 1fr, 1fr, 1fr]; + @if $dir == top { + $-l: [$offset-amt, 1fr, $size_val, $size_val]; + } @else if $dir == bottom { + $-l: [1fr, $offset-amt, $size_val, $size_val]; + } @else if $dir == left { + $-l: [$size_val, $size_val, $offset-amt, 1fr]; + } @else if $dir == right { + $-l: [$size_val, $size_val, 1fr, $offset-amt]; + } + //@debug "list: #{$-l}"; + //@debug list.nth($-l, 1); + @include grid-3x3-offset($top: list.nth($-l,1), $bottom: list.nth($-l,2), + $left: list.nth($-l,3), $right: list.nth($-l,4)); + + @extend %offset-grid; + } + } +} + +.side-a { + a { + grid-area: nw / nw / se / se; + z-index: 2; + } + .side-a__main-content-cover { + grid-area: n / n / s / s; + width: 110%; + height: 100%; + z-index: 3; + background: rgba(1,1,1,0.05); + box-shadow: 0px 0px 10px 10px rgba(1,1,1,0.05); + backdrop-filter: blur(1px); + } +} diff --git a/assets/scss/waltuh/layouts/_index.scss b/assets/scss/waltuh/layouts/_index.scss new file mode 100644 index 0000000..c24967b --- /dev/null +++ b/assets/scss/waltuh/layouts/_index.scss @@ -0,0 +1,2 @@ +@forward "grid"; +@forward "modifiers"; diff --git a/assets/scss/waltuh/layouts/_modifiers.scss b/assets/scss/waltuh/layouts/_modifiers.scss new file mode 100644 index 0000000..a984431 --- /dev/null +++ b/assets/scss/waltuh/layouts/_modifiers.scss @@ -0,0 +1,20 @@ +.fullsize { + position: absolute; + top: 0; + left: 0; + margin: 0; + padding: 0; + + height: 100vh !important; + width: 100vw !important; +} + +$gap-sizes: ("small": 1vmin, "mid": 3vmin, "large": 5vmin); + +@each $size, $dist in $gap-sizes { + @each $dir in [top, bottom, left, right] { + .gap-#{$size}-#{$dir} { + margin-#{$dir}: $dist; + } + } +} diff --git a/assets/scss/waltuh/waltuh.scss b/assets/scss/waltuh/waltuh.scss new file mode 100644 index 0000000..4559ba1 --- /dev/null +++ b/assets/scss/waltuh/waltuh.scss @@ -0,0 +1,17 @@ +/* ------ */ +/* */ +/* Waltuh */ +/* */ +/* ------ */ + +// Global Variables +@use "variables" as *; +@use "components/index" as components; +@use "layouts/index" as layouts; + +.fs-900 { font-size: $fs-900; font-weight: 400;} +.fs-800 { font-size: $fs-800; font-weight: 300;} +.fs-700 { font-size: $fs-700; font-weight: 250;} +.fs-600 { font-size: $fs-600; font-weight: 300;} +.fs-500 { font-size: $fs-500; font-weight: 200;} +.fs-400 { font-size: $fs-400; font-weight: 200;} diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..1dc5230 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,8 @@ +{{- partial "header.html" . -}} +
+ {{- block "main" . -}}{{- end -}} + + +
+
+{{- partial "footer.html" . -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..5b4310c --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ define "main" }} +
+

{{ .Title }}

+
+i love shrimp +{{ .Content }} + +
+
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..ee78b04 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+

Last Modified: {{ .Lastmod | time.Format ":date_long"}}

+
+
+{{ .Content }} +
+
+{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..0034257 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,12 @@ +{{ define "main" }} +
+ {{ .Content }} + +
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..fc7ae53 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,14 @@ + + + {{ .Title }} + + {{ $options := dict + "transpiler" "dartsass" + "targetPath" "css/style.css" + "sourceMapIncludeSources" true + }} + {{ with resources.Get "scss/index.scss" | toCSS $options | minify }} + + {{ end }} + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..a9e6d0e --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,6 @@ + + +{{ partial "head.html" . }} + + +
diff --git a/static/img/noise.gif b/static/img/noise.gif new file mode 100644 index 0000000..1f13d22 Binary files /dev/null and b/static/img/noise.gif differ diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..bbe7704 --- /dev/null +++ b/theme.toml @@ -0,0 +1,19 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Waltuh Hugo Theme" +license = "MIT" +description = "" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "Emilia Allison" + homepage = "https://ilia.moe/" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""