windspore

My corner of the web. Notes, projects and writing.

Browse

  • Home
  • Blog
  • Projects
  • About
  • Contact

windspore

Student ยท builds small web apps

The person behind windspore. I make learning tools and write down what I learn.

About me

Made by anjani
ยฉ 2026 All Rights Reserved

BlogProjectsAbout
Contact
windspore
All writing
The notebook / 7 min read

Building this site: glass, dither, and the bugs in between

I built this site with AI coding help. These are the parts I spent time on, the things that broke, and what I changed.

Anjani Sharma
November 16, 2026 RSS
Build logDesignWeb
On this page
From the first pageThe glass took a whileSearch was more work than the pillThen the phone keyboard got involvedWhere the texture belongsBlur, not a coloured stripA few smaller thingsSmaller files, then a failed deployWorking with AIReferences

The first version of this site was my name in the middle of a page. I wanted somewhere to put my projects and writing, but I didn't have the whole thing planned out.

I built it with AI coding help. I used it to write and change the code, try components, and work through bugs. I chose the layout and effects, checked the pages on mobile and desktop, and kept changing the bits that looked wrong.

I used designeer.xyz as a reference.

From the first page#

The site uses Next.js and MDX. Next.js handles the pages. MDX lets me put components inside a post instead of being limited to text and images.

I started with the layout: a sidebar on desktop, a smaller header on mobile, a card grid, and light and dark themes. Then came Projects, About, Contact, and the blog.

Having real content made the layout easier to judge. Acentre has a blue cover. Trace has a wide rainbow banner. They don't look right when forced into the same crop. The blog also needs more room for writing than a project card does.

The little mark in the corner uses the Echo artwork with a metallic effect from React Bits. It was hard to see against the light background at first. I kept a static fallback and settled on an appearance that works in both themes.

The glass took a while#

I liked the glass effect, but it was easy to overdo. Too much transparency made the controls blend into the page. Dark rims and heavy shadows made them look bulky.

I started with React Bits GlassSurface and adjusted it from there. The header stayed square. The floating Search pill stayed rounded. The shared glass and faint borders were enough to connect them.

The labels on the artwork needed attention too. A solid white title pill looked stuck on top of some covers. They now share the floating Search pill's material and faint border.

Live demo / Glass
Acentre
Acentre
Search

The name pill and Search pill share one material. The material stays the same as the artwork changes.

Search was more work than the pill#

I wanted Search to find something I'd written, not just a page title.

The results are split into Pages and Content. A page result gets me to Projects or About. A content result shows a matching bit of writing, with the search term highlighted.

I used Raycast as a reference for the grouped results and keyboard hints. I liked how easy its rows were to scan.

Reference: Raycast's official press kit. I used the result hierarchy as a reference for search.

Raycast image source.

On mobile, the bottom pill expands into search. There is one input, with results above it. The rounded shape and slight opening motion also take a little influence from the Dynamic Island. I kept that subtle.

Live demo / Search

Open Search and try "project" or "glass". This contained example uses the site's real search index and glass material. The mobile dock is still at the bottom of this page.

One bug was particularly silly: a result could match "project", but its visible preview wouldn't show that word. The match was there, just clipped out of view. Shorter leading context and two lines for content previews fixed it.

Before: a match without enough visible context.
After: the preview shows why the result matched.

Then the phone keyboard got involved#

Opening the keyboard made the bottom bar jump too high and settle back. That wasn't the search animation. The viewport adjustment and keyboard offset were getting combined.

With AI's help, I worked through the positioning code. The fix was to use one visible-viewport height, calculate the offset once, and stop animating that offset during keyboard changes.

One thing still to check
The simulated viewport tests passed. I still need to confirm the keyboard movement on my phone. A passing test isn't the same as seeing it behave properly there.

Where the texture belongs#

I kept the dither texture, but took it off the project images.

Project artwork stays clean. Selected text areas get the texture. That includes descriptions and a few cards, with a low-opacity backing below the words.

The texture used to make a spreading splash when clicked. I removed that. The hover response stayed, but tapping a card no longer adds that extra movement.

Live demo / Dither
Move across the texture.
A click no longer makes a splash.

The same renderer as the cards, shown at a stronger opacity so the pattern is easier to inspect.

The covers keep their original proportions too. Trace's banner should be visible whole. On desktop, letting the cards stretch to equal height once left an empty strip under the shorter card. Top-aligning them fixed that without adding filler.

Blur, not a coloured strip#

The filter row needed a little separation from the cards scrolling underneath it. I wanted a blur that faded away, without a tint or a hard lower edge.

It uses a mask over backdrop blur. The mask changes where the blur is visible; it doesn't paint a gradient on top of the artwork.

The first full-width version reached too far down the page. The blur strength was fine. Its height wasn't. I shortened the layer to 48px on mobile, clearing just below the chips.

Live demo / Filter fade
AllProjectsWriting
Acentre
serverless discord apps
Writing and notes

8px blur in both positions. Move the slider to see why changing the fade height is different from changing its strength. No coloured overlay is added.

Both ends of the slider use 8px blur. Only the height changes.

A few smaller things#

The introduction now says what I'm interested in: Computer engineering and AI/ML. They're linked badges, with a gear and a brain, rather than a big row of buttons.

The blog supports code blocks, tables, diagrams, image zoom, and these live examples. I don't need every component in every post. It's useful to have them when the explanation needs one.

Some fixes were tiny: a copy button beside its filename, an emoji sitting too low, a chevron staying grey on a selected blue filter. I noticed those while using the pages, not from a plan at the start.

Smaller files, then a failed deploy#

I didn't want performance work to mean removing all the design. Most of the savings came from better image formats, keeping the original Trace JPEG, and deferring the dither code.

38.9%fewer Home resource bytes
39.9%fewer Projects resource bytes
54.9%smaller project image payload

These were cold local mobile-load measurements, not Lighthouse scores or a promise about load time. They compare the earlier resource totals with the smaller assets. The project-artwork dither had already been removed before that baseline.

The deployment had a separate problem. The app compiled and generated its pages, then a postbuild script failed because it couldn't find the rendered HTML it expected for search.

The fix was to generate the search index from the source content as a static Next.js route. No scanning the build's internal HTML folders afterwards.

The failed deployment had left the old version online. A successful local build hadn't caught it.

Working with AI#

Using AI didn't mean I could skip checking the result. It made it easier to try changes, but I still had to decide whether they made the site better.

I got better at describing exactly which part was wrong. Not "the card looks off", but "the image should keep its proportions". Not "less blur", but "keep the strength and shorten the area".

I also started keeping project progress and unpushed work backed up in Notion. Losing a preview is a very boring reason to do the same work twice.

The phone-keyboard check is still on my list. After that, I want to spend more time putting work here and less time adjusting the cards.

References#

  • React Bits GlassSurface
  • Raycast press kit
  • Raycast's design article
  • Apple Developer on the Dynamic Island

The Raycast screenshot belongs to Raycast. The before-and-after captures are from my local versions of this site.

Written byAnjani Sharma
ON THIS PAGEFrom the first pageThe glass took a whileSearch was more work than the pillThen the phone keyboard got involvedWhere the texture belongsBlur, not a coloured stripA few smaller thingsSmaller files, then a failed deployWorking with AIReferencesBack to top โ†‘