iamnbutler/iamnbutler.github.ioPublic

Personal Site

refactor: extract tile variants into Astro components

Move each tile variant (posts: cassette/circuit/blast, shots:
viewfinder/evidence/hud/hero, bsky: text/media, links: relay/dispatch,
lists) into individual components under src/components/tiles/.

Extract variant picker logic and helpers (excerpt, relTime,
extractListItems) into src/lib/variants.ts.

index.astro now imports components and delegates to them, reducing from
750+ lines of inline markup to a clean dispatch loop.
IAiamnbutler authored
4efe144Patch
Parent746b1b0
14 files changed+566-450
StackedSplit
src/components/tiles/BskyMedia.astro+55 −0
src/components/tiles/BskyText.astro+36 −0
src/components/tiles/LinkDispatch.astro+35 −0
src/components/tiles/LinkRelay.astro+40 −0
src/components/tiles/ListTile.astro+36 −0
src/components/tiles/PostBlast.astro+34 −0
src/components/tiles/PostCassette.astro+33 −0
src/components/tiles/PostCircuit.astro+29 −0
src/components/tiles/ShotEvidence.astro+24 −0
src/components/tiles/ShotHero.astro+38 −0
src/components/tiles/ShotHud.astro+24 −0
src/components/tiles/ShotViewfinder.astro+26 −0
src/lib/variants.ts+108 −0
src/pages/index.astro+48 −450