HatPhones
A storefront for a local shop that buys, sells and repairs phones, replacing its generic Google listing with a site built around those three services.
Overview
One site for buying, selling and repairing phones.
HatPhones is a phone shop in Medicine Hat, Alberta. Online, it had only a generic Google listing. The client wanted a site that turns visitors into leads through three funnels: buying a certified pre-owned device, selling an old phone, and booking a repair. I built a fast Next.js site with a Shopify storefront, an 8-step device intake wizard, and form submissions emailed straight to the shop owner. The client's brief asked for something simple and minimal, and the design follows it.
Sell & Value Check Flow
- 018-Step Guided Wizard
Walks sellers through brand → model → storage → condition → battery health → device checks → photos → submission, collecting structured details for the owner instead of guessing a price.
- 02The Owner Sets the Price
The wizard doesn't produce an automated estimate. It emails the full device profile to the shop owner through Resend, and the owner replies with a quote.
- 03Photo Upload Support
Sellers can attach up to 5 photos (5 MB each) within the flow, so the owner can see the device before replying.
- 04IP-Based Rate Limiting
A custom rate limiter on the API route blocks form spam without a CAPTCHA in the way.
Screenshots
The live site — across Device Intake Wizard, Storefront, Local SEO & Performance. Drag to explore.
Live Site
The best decision on this project was realising the value-check form's real user was the shop owner. So I stopped trying to automate pricing and designed for the conversation that comes after.
After launch, with the site connected to Google Business, Search Console and AEO/SEO profiles, the client reported more inbound enquiries and wider reach than the old listing brought in.
www.hatphones.caTech Stack
Architecture Decisions
Rather than build an inventory system and payment flow, I used the Shopify Storefront API. The client needed product management anyway, and Shopify already covers PCI compliance, payment gateways and order management. A custom build would have tripled the scope with nothing extra for buyers.
The sell and contact flows send structured form data to the shop owner's Gmail through Resend. A single-location shop gets few submissions, so a database would only add upkeep. The owner's inbox is the CRM.
The hero animates with CSS @keyframes instead of Framer Motion, so no animation JS has to be parsed on the critical path. Framer Motion loads only for below-the-fold sections, through dynamic import. This is the main reason the site scores 100 for Performance on PageSpeed.
An early version tried automated pricing. I replaced it with the 8-step wizard, which collects the device details and sends them to the owner. That removes the risk of a wrong automated estimate and leaves the owner room to negotiate, which suits a local business that runs on relationships.
The visual direction (dark background, indigo/violet accents per page, the Space Grotesk typeface, generous whitespace) came from the client: simple, clean and informative, without marketing noise. Design choices followed that brief rather than trends.
Challenges
Hitting 100 Performance with Framer Motion on the page
Framer Motion adds a lot of JS and hurts LCP if it loads eagerly. I split every below-the-fold section into its own dynamically imported component (next/dynamic with ssr: false), so the first load parses only the hero's JS, and the hero itself is pure CSS @keyframes. The site scores 100 for Performance on desktop PageSpeed and keeps its animations.
Designing the wizard for the owner, not just the seller
The original value check tried to output a price, which meant keeping market data accurate for 70+ models. The form's real user turned out to be the shop owner, not the seller. Designing it to collect the best lead data, rather than to compute a price, made it simpler to build and maintain, and more useful day to day.
Shopify Storefront API image handling
Shopify's CDN domain (cdn.shopify.com) had to be allowed in Next.js remotePatterns and in the CSP headers. Getting the Content Security Policy right without breaking Google Analytics, Google Maps or Shopify images took careful header work in next.config.ts, because one policy touches security, performance and every third-party integration.
By the Numbers
AKSHAT KUMAR
Full-Stack + AI Developer