xonecas.io
5745
Sc

sacenox.github.io / commit 1192aeb

feat: initial

xonecas2026-01-30 1192aebf1a7eb89df4b855841d9e967f30ffc9bf

11 files changed

_config.yml+9−0
@@ -0,0 +1,9 @@
1+title: sacenox logs
2+description: terminal notes from the edge
3+url: ""
4+baseurl: ""
5+markdown: kramdown
6+permalink: /posts/:title/
7+sass:
8+ sass_dir: _sass
9+ style: compressed
_includes/head.html+10−0
@@ -0,0 +1,10 @@
1+<head>
2+ <meta charset="utf-8">
3+ <meta name="viewport" content="width=device-width, initial-scale=1">
4+ <title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
5+ <meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
6+ <link rel="preconnect" href="https://fonts.googleapis.com">
7+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8+ <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600&display=swap" rel="stylesheet">
9+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
10+</head>
_layouts/default.html+32−0
@@ -0,0 +1,32 @@
1+---
2+---
3+<!doctype html>
4+<html lang="en">
5+ {% include head.html %}
6+ <body>
7+ <canvas id="galaxy" aria-hidden="true"></canvas>
8+ <div class="page">
9+ <header class="site-header">
10+ <div class="site-title">
11+ <span class="prompt">sacenox@github</span>:~$ <span class="title-text">{{ site.title }}</span><span class="cursor" aria-hidden="true"></span>
12+ </div>
13+ <div class="site-tagline">{{ site.description }}</div>
14+ <nav class="site-nav" aria-label="Primary">
15+ <a class="nav-link" href="{{ '/' | relative_url }}">$ cd /home</a>
16+ <a class="nav-link" href="{{ '/about' | relative_url }}">$ cat /about</a>
17+ </nav>
18+ </header>
19+ <main class="content-frame">
20+ <div class="ascii-line">+--------------------------------------------------------------------------+</div>
21+ <div class="ascii-content">
22+ {{ content }}
23+ </div>
24+ <div class="ascii-line">+--------------------------------------------------------------------------+</div>
25+ </main>
26+ <footer class="site-footer">
27+ <span class="prompt">$</span> last build {{ site.time | date: "%Y-%m-%d" }}
28+ </footer>
29+ </div>
30+ <script src="{{ '/assets/js/galaxy.js' | relative_url }}"></script>
31+ </body>
32+</html>
_layouts/post.html+10−0
@@ -0,0 +1,10 @@
1+---
2+layout: default
3+---
4+<article class="post">
5+ <h1 class="post-title">&gt; reading: {{ page.title }}</h1>
6+ <div class="post-meta"># {{ page.date | date: "%Y-%m-%d" }}</div>
7+ <div class="post-body">
8+ {{ content }}
9+ </div>
10+</article>
_posts/2026-01-30-hello-world.md+7−0
@@ -0,0 +1,7 @@
1+---
2+layout: post
3+title: hello world
4+description: first entry in the terminal log
5+---
6+
7+Booting this log with a simple entry. Expect tweaks to the theme and more notes soon.
_sass/_base.scss+186−0
@@ -0,0 +1,186 @@
1+:root {
2+ --color-bg: #{$base00};
3+ --color-panel: #{$base01};
4+ --color-border: #{$base03};
5+ --color-text: #{$base05};
6+ --color-dim: #{$base04};
7+ --color-accent: #{$base0d};
8+ --color-link: #{$base0c};
9+ --color-warn: #{$base0a};
10+ --color-hot: #{$base08};
11+}
12+
13+* {
14+ box-sizing: border-box;
15+}
16+
17+body {
18+ margin: 0;
19+ font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
20+ background: var(--color-bg);
21+ color: var(--color-text);
22+ min-height: 100vh;
23+ line-height: 1.6;
24+}
25+
26+a {
27+ color: var(--color-link);
28+ text-decoration: none;
29+}
30+
31+a:hover,
32+a:focus {
33+ color: var(--color-accent);
34+}
35+
36+#galaxy {
37+ position: fixed;
38+ inset: 0;
39+ width: 100%;
40+ height: 100%;
41+ z-index: 0;
42+}
43+
44+.page {
45+ position: relative;
46+ z-index: 1;
47+ min-height: 100vh;
48+ padding: 2.5rem 1.25rem 2rem;
49+ display: flex;
50+ flex-direction: column;
51+ gap: 1.5rem;
52+}
53+
54+.site-header {
55+ max-width: 78ch;
56+ margin: 0 auto;
57+ width: 100%;
58+}
59+
60+.site-title {
61+ font-size: 1.25rem;
62+ font-weight: 600;
63+ color: var(--color-text);
64+}
65+
66+.site-tagline {
67+ color: var(--color-dim);
68+ margin-top: 0.25rem;
69+}
70+
71+.prompt {
72+ color: var(--color-warn);
73+}
74+
75+.cursor {
76+ display: inline-block;
77+ width: 0.6ch;
78+ height: 1.1em;
79+ margin-left: 0.2ch;
80+ background: var(--color-text);
81+ animation: blink 1.2s steps(1, end) infinite;
82+ vertical-align: text-bottom;
83+}
84+
85+@keyframes blink {
86+ 0%, 49% { opacity: 1; }
87+ 50%, 100% { opacity: 0; }
88+}
89+
90+.site-nav {
91+ margin-top: 1rem;
92+ display: flex;
93+ flex-wrap: wrap;
94+ gap: 0.75rem 1.5rem;
95+}
96+
97+.nav-link {
98+ color: var(--color-text);
99+ background: var(--color-panel);
100+ padding: 0.25rem 0.5rem;
101+ border: 1px solid var(--color-border);
102+}
103+
104+.nav-link:hover,
105+.nav-link:focus {
106+ color: var(--color-accent);
107+ border-color: var(--color-accent);
108+}
109+
110+.content-frame {
111+ max-width: 78ch;
112+ margin: 0 auto;
113+ width: 100%;
114+ background: rgba(29, 31, 33, 0.9);
115+ padding: 0 1rem 1rem;
116+ border: 1px solid var(--color-border);
117+ box-shadow: 0 0 32px rgba(0, 0, 0, 0.4);
118+}
119+
120+.ascii-line {
121+ color: var(--color-border);
122+ white-space: pre;
123+ text-align: center;
124+ margin: 0.6rem 0;
125+}
126+
127+.ascii-content {
128+ padding: 0 0.5rem 0.25rem;
129+}
130+
131+.site-footer {
132+ max-width: 78ch;
133+ margin: 0 auto;
134+ width: 100%;
135+ color: var(--color-dim);
136+ font-size: 0.9rem;
137+}
138+
139+.page-title {
140+ margin-top: 0;
141+ font-size: 1.2rem;
142+}
143+
144+.post-list {
145+ list-style: none;
146+ padding: 0;
147+ margin: 1rem 0 0;
148+}
149+
150+.post-list li {
151+ margin-bottom: 0.5rem;
152+}
153+
154+.post-list li::before {
155+ content: "* ";
156+ color: var(--color-warn);
157+}
158+
159+.post-date {
160+ color: var(--color-dim);
161+ margin-right: 0.5rem;
162+}
163+
164+.post-title {
165+ margin-top: 0;
166+}
167+
168+.post-meta {
169+ color: var(--color-dim);
170+ margin-bottom: 1.5rem;
171+}
172+
173+.post-body h2,
174+.post-body h3 {
175+ color: var(--color-accent);
176+}
177+
178+@media (max-width: 720px) {
179+ .page {
180+ padding: 2rem 1rem 1.5rem;
181+ }
182+
183+ .ascii-line {
184+ font-size: 0.8rem;
185+ }
186+}
_sass/_colors.scss+16−0
@@ -0,0 +1,16 @@
1+$base00: #1d1f21;
2+$base01: #282a2e;
3+$base02: #373b41;
4+$base03: #969896;
5+$base04: #b4b7b4;
6+$base05: #c5c8c6;
7+$base06: #e0e0e0;
8+$base07: #ffffff;
9+$base08: #cc6666;
10+$base09: #de935f;
11+$base0a: #f0c674;
12+$base0b: #b5bd68;
13+$base0c: #8abeb7;
14+$base0d: #81a2be;
15+$base0e: #b294bb;
16+$base0f: #a3685a;
about.md+11−0
@@ -0,0 +1,11 @@
1+---
2+layout: default
3+title: about
4+description: about this terminal log
5+---
6+
7+<h1 class="page-title">&gt; cat /about</h1>
8+
9+This is a terminal-themed GitHub Pages blog. Expect short notes, experiments, and links I want to remember.
10+
11+<p class="prompt">$</p>
assets/css/main.scss+4−0
@@ -0,0 +1,4 @@
1+---
2+---
3+@import "colors";
4+@import "base";
assets/js/galaxy.js+91−0
@@ -0,0 +1,91 @@
1+(function () {
2+ const canvas = document.getElementById('galaxy');
3+ if (!canvas) return;
4+
5+ const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
6+ const ctx = canvas.getContext('2d');
7+ const colors = [
8+ '#cc6666',
9+ '#de935f',
10+ '#f0c674',
11+ '#b5bd68',
12+ '#8abeb7',
13+ '#81a2be',
14+ '#b294bb'
15+ ];
16+
17+ let width = 0;
18+ let height = 0;
19+ let centerX = 0;
20+ let centerY = 0;
21+ let particles = [];
22+
23+ function resize() {
24+ const ratio = window.devicePixelRatio || 1;
25+ width = window.innerWidth;
26+ height = window.innerHeight;
27+ canvas.width = width * ratio;
28+ canvas.height = height * ratio;
29+ canvas.style.width = width + 'px';
30+ canvas.style.height = height + 'px';
31+ ctx.setTransform(ratio, 0, 0, ratio, 0, 0);
32+ centerX = width * 0.5;
33+ centerY = height * 0.5;
34+ }
35+
36+ function makeParticles() {
37+ const count = Math.min(360, Math.floor((width + height) / 4));
38+ particles = Array.from({ length: count }, () => {
39+ const radius = Math.random() * Math.min(width, height) * 0.45 + 10;
40+ const angle = Math.random() * Math.PI * 2;
41+ const speed = 0.0005 + Math.random() * 0.0012;
42+ return {
43+ radius,
44+ angle,
45+ speed,
46+ size: 0.8 + Math.random() * 1.6,
47+ color: colors[Math.floor(Math.random() * colors.length)],
48+ alpha: 0.2 + Math.random() * 0.25,
49+ drift: (Math.random() - 0.5) * 0.15
50+ };
51+ });
52+ }
53+
54+ function drawParticle(particle) {
55+ const spiral = particle.radius / 90;
56+ const x = centerX + Math.cos(particle.angle + spiral) * particle.radius;
57+ const y = centerY + Math.sin(particle.angle + spiral) * particle.radius;
58+ ctx.globalAlpha = particle.alpha;
59+ ctx.fillStyle = particle.color;
60+ ctx.beginPath();
61+ ctx.arc(x, y, particle.size, 0, Math.PI * 2);
62+ ctx.fill();
63+ }
64+
65+ function frame() {
66+ ctx.clearRect(0, 0, width, height);
67+ ctx.fillStyle = '#1d1f21';
68+ ctx.fillRect(0, 0, width, height);
69+
70+ for (const particle of particles) {
71+ drawParticle(particle);
72+ if (!reduceMotion) {
73+ particle.angle += particle.speed;
74+ particle.radius += particle.drift * 0.1;
75+ }
76+ }
77+
78+ if (!reduceMotion) {
79+ requestAnimationFrame(frame);
80+ }
81+ }
82+
83+ resize();
84+ makeParticles();
85+ frame();
86+ window.addEventListener('resize', () => {
87+ resize();
88+ makeParticles();
89+ if (reduceMotion) frame();
90+ });
91+})();
index.md+16−0
@@ -0,0 +1,16 @@
1+---
2+layout: default
3+title: home
4+description: home directory listing
5+---
6+
7+<h1 class="page-title">&gt; ls /posts</h1>
8+
9+<ul class="post-list">
10+ {% for post in site.posts %}
11+ <li>
12+ <span class="post-date">{{ post.date | date: "%Y-%m-%d" }}</span>
13+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
14+ </li>
15+ {% endfor %}
16+</ul>