One Photo, Everything Else in Code: How We Built This Website
Websites, UX, and Digital Discovery | Case study
In brief: Apart from one photograph on the Home page, every visual on this website is drawn in code: the logo, the guide robot, a 72-second opening film and the moving objects that explain each topic. The result is a rich experience that stays light, sharp on every screen and accessible.
A website for an engineering company is also a sample of its work. We wanted ours to show what careful engineering can do for a brand: memorable motion and a character with personality, without slow pages or heavy downloads.
What Is Drawn in Code
- The logo is text styled with CSS, not an image file.
- The robot that greets visitors, points at the right place on a page and, on a computer, can be dragged aside, is vector art (SVG). Its poses, gestures and moods are defined in code and animated in the browser.
- The opening film runs about 72 seconds: a projector, a factory floor, a robotic arm, a drone and a tablet. It is one vector drawing moved by a small script, not a video. Most of its sound is synthesized in the browser.
- The Home topics use objects built from layers that rise, turn and open into their parts as the visitor scrolls. Scrolling back reverses them.
- Each inner page opens with a related code-drawn object, so a page and its Home topic look connected.
The only photograph is the image at the top of the Home page. It is served in a modern format and in several sizes, so each screen downloads only the size it needs.
What It Means for Speed
Drawings in code are tiny compared with pictures and video, and they stay sharp at any screen size. We measured the live site in November 2026:
- An inner page loads about 80 KB in total, compressed, in 12 requests, with no image files.
- The opening film's artwork is about 44 KB compressed, plus a 13 KB script. A 72-second video at common web quality (2 to 5 Mbit/s) would weigh about 18 to 45 MB.
- The site uses each device's own system font, so there are no font files to download and no text jumping when a font arrives.
- Layout shift measured on the Home page was zero.
Heavier parts load only when they are needed. The film loads on a first visit on a wide screen, or when a visitor asks to watch it. Its two short recorded sound clips (about 57 KB) load only when sound is on. The robot's back and side views load only the first time it turns, and on phones the robot loads only when the chat opens.
Motion That Respects People
Animation can delight one visitor and bother another. Every animation follows the device's reduced-motion setting and the site's own accessibility menu, which can stop it entirely. On phones and small windows, the Home topics use a lighter version that moves with ordinary scrolling.
The animated objects are decorative. The text beside them carries the meaning, so screen-reader users miss nothing. We tested the site against WCAG 2.2 AA with automated checks (axe-core) and keyboard-only tests on phone, tablet and desktop widths.
The Engineering Behind It
- Pages are built in advance (Astro) and served from Cloudflare's global network, so no page is assembled on each visit.
- One design system: colors, sizes and motion timings live in a single set of shared values that every component uses. A change in one place applies everywhere, in both languages.
- The AI assistant's knowledge of every page and article is prepared when the site is built, so it answers from the site's own content and can point at the right place on the page.
Try this: If you build websites, check these claims yourself. Open your browser's developer tools, reload a page and filter the Network panel by images. Turn on reduced motion in your device settings and scroll the Home page. Then move through a page with the Tab key only.
When Does This Approach Fit?
Code-drawn graphics suit brands with a clear visual idea that should feel alive: products, processes and technical concepts. Real photography is still the better choice when the subject is a real place, person or physical product. The right mix depends on what the visitor needs to understand. C-Tech designs that balance together with the engineering that keeps it fast.
Sources and further reading
- Google Search Central - Understanding Core Web Vitals
- web.dev - Cumulative Layout Shift (CLS)
- MDN - SVG: Scalable Vector Graphics
- MDN - prefers-reduced-motion
- W3C - Web Content Accessibility Guidelines (WCAG) 2.2
These references provide professional context, not independent verification of every claim in this article.
Share