Skip to content

Repository files navigation

Sreekar Scribbles

Personal blog at sreekarscribbles.com.

Stack

  • Plain HTML, CSS, and vanilla JavaScript — no frameworks, no build tools
  • Self-hosted on a Raspberry Pi, served via Nginx + Cloudflare Tunnel
  • GitHub as the middleman between local edits and the Pi

Design

  • Font: Kalam (Google Fonts) — handwritten but legible, weights 300, 400, and 700
  • Theme: Journal paper — cream page (#f4ecce) on a dark wood desk (#1a0e06)
  • The html element is the desk; body is the paper page elevated above it
  • Paper has ruled lines, a red margin line, grain texture, and age-darkening effects
  • Single stylesheet: styles.css, manually cache-busted with ?v=N (current: v47)

Scrapbook elements

  • Photos appear as tilted prints with a cream border, sepia tint, and tape strips at the top-left and bottom-right corners
  • Blockquotes render as sticky notes — warm aged-yellow, slight tilt, warm drop shadow

BGM (Background Music)

  • Selected posts can have an optional background music button (bottom-right, fixed)
  • Button is always visible; click to play, click again to stop
  • While music is playing: button auto-hides after 2s, reappears on scroll up, hides again on scroll down
  • Audio files live in audio/ — use yt-dlp to download and ffmpeg to trim
  • Optimised for iOS Safari and Android Chrome (safe-area insets, no tap delay, no system button styling)

Pages

Page Description
Home Introduction
Blog All published posts
Flow GitHub-style yearly writing tracker
Cooking Upcoming post titles

Navigation

On mobile, the inline nav is replaced by a hamburger button (top-right) that slides in a sidebar. Handled by nav.js, cache-busted with ?v=N (current: v3). All HTML files must include it before </body>.

Publishing a Post

  1. Create a new HTML file in blog/ using the template in AGENTS.md
  2. Add it to the top of the list in blog.html
  3. Commit and push to main
  4. GitHub Action auto-regenerates feed.xml and dates.json
  5. sudo git pull on the Pi — done

RSS

Feed available at /feed.xml, auto-generated from blog.html on every push via GitHub Actions. The Source and RSS footer links appear only on the home page (index.html).

Flow Tracker

flow.html tracks writing with a GitHub-style contribution graph (full year view, week columns × 7 rows).

  • Post dates stored in dates.json, synced via GitHub API
  • Admin panel hidden behind a secret key combo (l pressed three times), SHA-256 password protected
  • Year navigation: prev/next buttons to browse past years

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages