Making stuff work better, adding a floppy

This commit is contained in:
Dan 2025-12-09 19:01:17 +00:00
parent 1d9bc87f1b
commit 7917326214
11 changed files with 261 additions and 32 deletions

View file

@ -18,7 +18,7 @@
</div>
</div>
<div class="wide-item">
<div class="wide-item manifesto-container">
<div class="content-screen">
<div class="screen-display crt">
> cat manifesto
@ -48,25 +48,25 @@
what it could become. There was so much hope.
</p>
<p>
Unfortunately what it became was an algorithmic slopshop. I fucking
hate it.
Unfortunately what it has become is an algorithmic slopshop. I
fucking hate it.
</p>
<p>
During my formative years I chatted to people from all over the
world, I found them through mutual interests, friends of friends,
and just spending time exploring. IRC, forums, and MSN messenger
were our tools; building connections was our mission.
world, I found them through mutual interests, friends of friends of
friends, and just spending time exploring. IRC, forums, and MSN
messenger were our tools; building connections was our mission.
</p>
<p>
The internet was so inspiring to me I studied it at college and
university and it eventually become a prosperous career. I still
university and it eventually became a prosperous career. I still
work with the internet daily.
</p>
<p>
Unfortunately, socially the internet become a cesspit. Particularly
in recent years. It's the cyberpunk dystopia of corporations telling
us what to think, billionaires telling us what to feel, and
politicians disregarding everyone.
Unfortunately, socially the internet has become a cesspit.
Particularly in recent years. It's the cyberpunk dystopia of
corporations telling us what to think, billionaires telling us what
to feel, and politicians disregarding everyone.
</p>
<p>
This website is meant to be a giant fuck you to web 2.0, social
@ -84,6 +84,11 @@
<span class="cursor-blink">_</span>
</div>
</div>
<div class="manifesto-floppy">
{{ partial "elements/floppy.html" (dict "title" "They're spying on you"
"lines" (slice "" "" "run truth.exe" "" "") "bgColor" "#1a4d8f"
"bgColorDark" "#0d2747") }}
</div>
</div>
<div class="content-screen">

View file

@ -0,0 +1,6 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} {{ define
"main" }}
<article class="audio-page starfield" id="starfield">
<div class="audio-content">123 123</div>
</article>
{{ end }}

View file

@ -0,0 +1,23 @@
{{ $title := .title | default "" }} {{ $lines := .lines | default (slice "" ""
"" "" "") }} {{ $bgColor := .bgColor | default "#1a1a1a" }} {{ $bgColorDark :=
.bgColorDark | default "#000000" }}
<div
class="floppy-disk"
style="background: linear-gradient(135deg, {{ $bgColor }} 0%, {{ $bgColorDark }} 100%);"
>
<div class="metal-shutter">
<div
class="shutter-opening"
style="background: linear-gradient(135deg, {{ $bgColor }} 0%, {{ $bgColorDark }} 100%);"
></div>
</div>
<div class="label">
<div class="label-header">{{ $title }}</div>
<div class="label-lines">
{{ range $lines }}
<div class="label-line">{{ . }}</div>
{{ end }}
</div>
</div>
</div>

View file

@ -1,18 +1,20 @@
{{ $script := .Site.Data.webpack_assets.app }}
{{ with $script.js }}
<script src="{{ relURL (printf "%s%s" "dist/" .) }}"></script>
{{ end }}
{{/* Terminal Scripts Partial */}}
{{/* This compiles all terminal JS files into a single minified bundle */}}
{{ $terminal := resources.Get "js/terminal.js" }}
{{ $lavalamp := resources.Get "js/lavalamp.js" }}
<!-- prettier-ignore -->
{{ $terminalShell := resources.Get "js/terminal.js" }}
{{ $init := resources.Get "js/init.js" }}
{{ $coreCommands := resources.Get "js/commands/core.js" }}
{{ $utilityCommands := resources.Get "js/commands/utility.js" }}
{{ $navigationCommands := resources.Get "js/commands/navigation.js" }}
{{ $customCommands := resources.Get "js/commands/custom.js" }}
{{ $terminalBundle := slice $terminal $lavalamp $init $coreCommands $utilityCommands $navigationCommands $customCommands | resources.Concat "js/terminal-bundle.js" | resources.Minify | resources.Fingerprint }}
<script src="{{ $terminalBundle.RelPermalink }}" integrity="{{ $terminalBundle.Data.Integrity }}"></script>
{{ $commandFiles := resources.Match "js/commands/*.js" }}
{{ $subfolderFiles := resources.Match "js/*/*.js" }}
{{ $remaining := resources.Match "js/*.js" }}
{{ $filtered := slice }}
{{ range $remaining }}
{{ $path := .RelPermalink }}
{{ if and (not (strings.Contains $path "/terminal.js")) (not (strings.Contains $path "/init.js")) }}
{{ $filtered = $filtered | append . }}
{{ end }}
{{ end }}
{{ $allFiles := slice $terminalShell | append $filtered | append $init | append $commandFiles | append $subfolderFiles }}
{{ $terminalBundle := $allFiles | resources.Concat "js/terminal-bundle.js" | resources.Minify | resources.Fingerprint }}
<!-- prettier-ignore-end -->
<script
src="{{ $terminalBundle.RelPermalink }}"
integrity="{{ $terminalBundle.Data.Integrity }}"
></script>