← All projects

Branding Website · 2026

Prototype

SLAB Coffee

A concrete-grey brand site for a fictional Taipei coffee bar, with an online bean shop that takes payments through ECPay and LINE Pay.

Role
Design & development
Team
Just me
1 / 6

Overview

What it is

SLAB Coffee (清水咖啡) is a fictional coffee bar with a raw concrete interior, two signature drinks and its own roasted beans. I built it for two reasons: to push my visual design further, and to learn how to connect Taiwan's two most common payment services, ECPay and LINE Pay, so I can build websites with real checkout for clients. All shop details are made up, and both payment services run in their test environments.

Problem

The problem

Many small shops in Taiwan want to sell online but only have Instagram or a static website. Taking payments means dealing with checksums, server callbacks, order records and test environments, and that is the part most brand sites never reach.

The one-line pain

“Can customers pay on the website?”

Approach

How I built it

I designed the brand first, then built the shop on top of it. The look is industrial and quiet: concrete greys, a rust accent, wavy section edges and big editorial type. The checkout is a small server on Cloudflare Workers that creates orders, sends customers to the payment page and records the result.

  1. 1

    Drink switcher in the hero

    Four drinks rotate in place. Each one brings its own background colour, large scrolling name and floating ingredients such as sesame, orange slices, ice and coffee beans. The cup and ingredient images were generated with AI and cut out so they share the same side angle.

  2. 2

    Bean shop and cart

    Beans come in 250 g and 500 g bags. A cart drawer slides in from the side, and the cart is shared across the page and saved in the browser, with free shipping over NT$1,000.

  3. 3

    ECPay checkout

    The server signs the order with ECPay's SHA-256 CheckMacValue, sends the customer to ECPay's payment page, and checks the signature and amount on ECPay's callback before marking the order paid.

  4. 4

    LINE Pay checkout

    The server requests a payment with an HMAC-signed call to LINE Pay, redirects the customer to LINE Pay, then confirms the transaction when the customer returns.

  5. 5

    Prices checked on the server

    The server recalculates every price from its own product list, so changing the cart in the browser cannot change what the customer pays. Orders are saved in a Cloudflare D1 database.

  1. Storefront

    Astro

  2. Cart & checkout

    React

  3. Order API

    TypeScript

  4. Orders database

    SQL

  5. ECPay · LINE Pay

    RESTful API

Result

How it turned out

Both payment services work end to end in their test environments: an order is created, paid and marked as paid in the database. The site is mostly static Astro with React only for the drink switcher, cart and checkout, and it runs on Cloudflare Workers. I now have a tested checkout setup that I can reuse for clients.

  • 2

    Payment services connected

  • 4

    Drinks in the hero switcher

  • 5

    Products in the bean shop

Tech

What I used

  • Astro
  • React
  • TypeScript
  • Tailwind CSS
  • RESTful API
  • SQL
  • Git

Next project

Keepsake Fair →