Business website · Timwhite, a print shop and advertising agency from Bielsko-Biała · 2026 · 2 weeks

Timwhite - a print shop's site in Astro instead of WordPress

The old addresses keep working, eight outdated subpages redirect to the new ones, and the switched-off WordPress waits on the server in case of a return.

  • Astro
  • TypeScript
  • GSAP
  • Lenis
  • Node.js
  • Nodemailer
  • Docker
  • Nginx
  • GitHub Actions
Visit the live site ↗
Timwhite - a print shop's site in Astro instead of WordPress

The challenge

The print shop had a WordPress site with subpages that had accumulated over the years: sewing promotional bags, copying and printing CDs and DVDs, marketing support, graphic design projects, with mugs separate and printing services separate. The new site was to show the four services the print shop sells today, collect quote requests together with the print file, and not lose any old address, because each of them could be bringing in customers from search.

Our solution

A site in Astro with four service subpages at the same addresses as in WordPress. Eight old addresses redirect with a 301 to the nearest new subpage, and WordPress paths such as /wp-json/ and /wp-admin/ return a 410, so the search engine removes them from its index faster. The quote form asks about the product, the run, the deadline, the finishing, and the file. The print shop gets the request by email and replies with an ordinary "Reply", because the reply address is the client's address. The switched-off WordPress with its database stayed on the server and can be restored with one command.

6

Subpages at addresses from the old site

8

301 redirects from old subpages

13

Tests run before every deployment

What we built

  • 01 A homepage, four service subpages, contact with a quote, and a privacy policy
  • 02 Subpage addresses identical to the addresses in the old WordPress
  • 03 Eight 301 redirects from the old subpages, for example /szycie-toreb-reklamowych/ to promotional clothing, /kubki/ to /kubki-reklamowe/
  • 04 A 410 code for /wp-json/, /wp-admin/, /xmlrpc.php, and the WordPress directories
  • 05 A quote form in four steps: product, parameters (run, deadline, finishing, description), file, contact details
  • 06 A file of up to 20 MB in PDF, AI, CDR, EPS, ZIP, PNG, JPG, TIFF, and SVG formats
  • 07 File signature checking: PDF, ZIP, PNG, and JPG must have contents matching the extension
  • 08 A bot trap: a hidden field, and when it is filled the server answers with success and sends nothing
  • 09 Rejecting a form sent faster than 3 seconds after the page loaded, and a limit of one request per minute from an IP address
  • 10 Stripping newline characters from the fields that go into the email headers (protection against header injection)
  • 11 An email to the print shop with the client's reply address; a confirmation for the client switched on with one variable
  • 12 A Google map loaded only after a click
  • 13 A preloader with a logo pawn shown once per visit, a curtain between subpages, and smooth scrolling (Lenis)
  • 14 With reduced motion in the system, smooth scrolling, pinned sections, the curtain, and the sliding tapes are switched off; the content is readable without JavaScript too
  • 15 LocalBusiness structured data, Open Graph images, and the sitemap given in robots.txt
  • 16 Deployment from GitHub Actions on a runner on the server: build, tests, container swap, and a smoke test with a return to the previous version
Contents +

Starting point

Timwhite is a print shop and advertising agency from Bielsko-Biała: digital and offset printing, clothing with printing, pens with engraving, mugs. The old site stood on WordPress and had service subpages that had accumulated over the years, including sewing bags, copying CDs and DVDs, and marketing support.

The task had two parts. The first: show the four services the print shop sells today and collect quote requests with a print file. The second: move the site so that no link from Google or from old materials ends in a 404 error.

Decisions that shaped the project

Addresses moved over to the character

The subpages of the new site have exactly the same addresses as in WordPress: /druk-cyfrowy-i-offsetowy/, /odziez-reklamowa-z-nadrukiem/, /kubki-reklamowe/, /kontakt/. Eight addresses that no longer exist redirect with a 301 to the nearest equivalent. Graphic projects go to printing, sewing bags to clothing, and copying discs and marketing support to contact. The paths of WordPress itself (/wp-json/, /wp-admin/, /xmlrpc.php) return a 410 instead of a 404, because that code tells the search engine the page is gone for good.

Switching with a way back

The new site runs in a separate container on the same server as the old WordPress. WordPress and its database stayed in the same docker-compose file under the legacy profile: switched off, with the data untouched. The switching script swaps the nginx configuration and then queries every subpage, the redirects, and /wp-json/. If any address returns a different code from the expected one, the script restores WordPress by itself.

A quote form with a print file

The quote goes in four steps: product, parameters (run, deadline, finishing, description), file, and contact details. The file can be up to 20 MB and in PDF, AI, CDR, EPS, ZIP, PNG, JPG, TIFF, or SVG format. The server checks more than the extension. PDF, ZIP, PNG, and JPG must begin with the right signature, so an .exe file renamed to .pdf won’t pass.

The email to the print shop has the client’s address as its reply address, so the answer with the price is an ordinary “Reply” in the inbox. After the form is sent, a “RECEIVED” stamp with the date appears on the page.

Protection without a captcha

The form has no captcha. It has a hidden field that only a bot fills in, and the server answers it with success and sends nothing, so the bot doesn’t know it was dropped. The server also rejects a form sent faster than 3 seconds after the page loaded and accepts one request per minute from an IP address. The fields that go into the email headers are stripped of newline characters, because through them you could add your own headers and send spam through the form.

A look from the print-shop floor

The edges of the sections are perforated like paper from a pad, there are registration marks in the corners of the tables, the sections are numbered like sheets, and a halftone drawn on a canvas lies in the background of the hero. The palette is the colour of paper, black, and one coral accent.

The preloader with the logo pawn shows once per visit, not at every transition. When someone has reduced motion switched on in the system, the site switches off smooth scrolling, pinned sections, the curtain between subpages, and the sliding tapes. The short appearance of text stays. The content is readable without JavaScript too.

What came out of it

On the new site, six subpages have the addresses from the old site, eight old addresses redirect to the new ones, and WordPress waits switched off on the server.

Every change after launch goes the same way. A pull request builds the site, and the merge starts a build on the server, 13 tests, a container swap, and a smoke test. If the new version doesn’t respond, the previous one returns.

Technically

Astro 7 generates static pages, and the only server-side endpoint, /api/wycena, is handled by the Node adapter. There is no React and no Tailwind, and the styles stand on the CSS tokens --tw-*. The animations are GSAP with ScrollTrigger and SplitText, and scrolling is handled by Lenis. Fonts: Bricolage Grotesque in headings and text, JetBrains Mono in labels and numbering.

The validation, the request limit, and the email templates are in one module with no dependency on Astro, so the node --test tests check it without starting the site: the bot trap, sending too fast, an .exe file, a PDF with a wrong signature, an exceeded 20 MB limit, and newline characters in the name.

One bug came out only in production. Behind nginx, the request-origin check built into Astro rejected the form with a 403, because the application server saw a different host from the browser. The fix is a list of trusted domains in the Astro configuration and passing the X-Forwarded-Host header in the Nginx configuration.

If your company site stands on WordPress and you want to move it without losing addresses, see how we make websites.

Screenshots

The first screen: the slogan "Print that gets the job done.", a halftone in the background, and a tape with the names of the services.
The first screen: the slogan "Print that gets the job done.", a halftone in the background, and a tape with the names of the services. (phone)

The first screen: the slogan "Print that gets the job done.", a halftone in the background, and a tape with the names of the services.

A similar problem to solve?

Tell us briefly what it is about. We will send a quote within 24 hours.

Ask for a quote →