Skip to content

Latest commit

ย 

History

History
71 lines (54 loc) ยท 2.3 KB

README.md

File metadata and controls

71 lines (54 loc) ยท 2.3 KB

KBber's Blog

Personal blog of KBber โ€” built with Astro + React, deployed to GitHub Pages.

๐ŸŒ Live: https://kbber.github.io

โœจ Features

  • Liquid Glass UI โ€” backdrop-filter based translucent surfaces
  • Light / Dark / System theme switcher
  • Animated hero โ€” live clock + greeting + IP-based weather
  • Draggable magnetic cards on the home page (vanilla pointer events, no GSAP)
  • Reading progress bar on article pages
  • Photo lightbox for albums with keyboard navigation
  • View transitions for smooth page changes
  • Markdown content collections โ€” posts, notes, moments, albums

๐Ÿ—‚ Sections

Section Path Source
้ฆ–้กต Home / โ€”
ๆ–‡็ซ  Posts /posts src/content/posts/*.md
็›ธๅ†Œ Albums /albums src/content/albums/*.json
้š็ฌ” Moments /moments src/content/moments/*.md
็ฌ”่ฎฐ Notes /notes src/content/notes/*.md
ๅ…ณไบŽ About /about โ€”

๐Ÿš€ Local development

npm install
npm run dev        # http://localhost:4321
npm run build      # โ†’ dist/
npm run preview    # preview the built site

โš™๏ธ Configuration

All identity, theme tokens, nav order, and social links live in site.config.ts โ€” edit that file to make it yours.

๐Ÿšข Deploy

Pushing to main triggers .github/workflows/deploy.yml, which builds the site with Astro and publishes the dist/ folder to GitHub Pages.

  • Settings โ†’ Pages โ†’ Source: GitHub Actions
  • Workflow file: .github/workflows/deploy.yml

๐Ÿ“ Project structure

.
โ”œโ”€โ”€ .github/workflows/deploy.yml   # Auto-deploy
โ”œโ”€โ”€ astro.config.mjs               # Astro + sitemap config
โ”œโ”€โ”€ site.config.ts                 # Central config (you!)
โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ assets/                    # Existing images
โ”‚   โ”œโ”€โ”€ bricks.svg
โ”‚   โ””โ”€โ”€ favicon.svg
โ””โ”€โ”€ src/
    โ”œโ”€โ”€ components/                # Astro + React components
    โ”œโ”€โ”€ content.config.ts          # Content collections
    โ”œโ”€โ”€ content/                   # Markdown / JSON for posts, notes, moments, albums
    โ”œโ”€โ”€ layouts/BaseLayout.astro
    โ”œโ”€โ”€ pages/                     # Routes
    โ””โ”€โ”€ styles/global.css

๐Ÿชช License

MIT โ€” feel free to fork, learn, and remix.