← Portfolio

/ Case study

Salym

A bilingual site for a finance company in Almaty: from the content model and CMS to the client’s server. Built from a designer’s mockups.

developmentNext.jsPayload CMSPostgreSQLCRM

Made together with

SashaSite design

/ 01 The brief

A site that leads to an application.

Salym is a finance company in Almaty: microloans for entrepreneurs secured by property or a car. The site presents the products and leads a visitor along “product → terms → calculator → application”, and the application lands in the CRM. In two languages, Russian and Kazakh.

01 / 09

/ 02 Pages

Twenty blocks instead of a page builder.

Home, products, About, FAQ, documents, contacts — seven pages in two sizes, 1600 and 390 pixels. An editor assembles them from a closed set of blocks: you cannot stray from the design, but the page always looks as intended.

The interface on the screens is in Russian.

Calculator
CalculatorPreliminary terms before applying.

What the “Product cards” block is made of

space48121624324864radius1012162024colorindigoindigo-deepgraphitegreenwhiteНЕДВИЖИМОСТЬsalym-h2ДО 86 млн ₸salym-h3plusUnder a flat as collateralsalym-bodyfrom 2.25% / monthsalym-small 01 · Tokensspacing 4–64, radii 10–24,five colours, four text styles 1 36321818185524grid · 2 × minmax(0, 1fr) · gap 24 02 · Grid and spacingtwo columns, a 24 gap,padding 36/32, an 18 step inside 2 03 · Background and artcard gradients, starsfrom the brand style, photos 3 ProductCardHeading · h2StatStatText · bodyList · smallButtonProductCardHeading · h2StatStatText · bodyList · smallButton 04 · Componentsthe same as in Figma:heading, stat, button 4 REAL ESTATEUP TO ₸86Mloan amountUP TO 60%of the appraised valueAgainst a flat, a house orcommercial premises in Almatyfrom 2.25% / monthAPR does not exceed 46%term up to 60 monthsLearn more ↗CARUP TO ₸30Mloan amountUP TO 80%of the appraised valuePassenger and commercial vehicleswith a right to drive, in Almatyfrom 2.25% / monthAPR does not exceed 46%term up to 60 monthsLearn more ↗ 05 · Content from the admintitle, stats, terms and thebutton — fields of the product 5 06 · The finished blockhow the cards lookon the home page 6
  1. 6The finished blockhow the cards look on the home page
  2. 5Content from the admintitle, stats, terms and the button — fields of the product
  3. 4Componentsthe same as in Figma: heading, stat, button
  4. 3Background and artcard gradients, stars from the brand style, photos
  5. 2Grid and spacingtwo columns, a 24 gap, padding 36/32, an 18 step inside
  6. 1Tokensspacing 4–64, radii 10–24, five colours, four text styles

/ 03 Stack

Under the hood.

What the site stands on: from the page down to the server

A server in Almaty · Docker Composecaddy:80 · :443appNext.js + Payloaddbpostgres:17migrateopsoperatoropsvolumescaddy_datadatabasemediacaddy_config pagesproductsdocumentsfaqmedianavigationuserssite_settings_pages_v_products_vPostgreSQL 17 collection · productstitletext · localizedsummarytextareaimageupload → mediacard.stats[ ]up to 2 · value + labelcard.notes[ ]up to 5 linescard.buttonLabeltexttermsamount, term, rateDrafts and versionsmaxPerDoc: 30Rolesadmin · editorAPIREST · Local API PagesProductsDocumentsFAQMediaProducts / Real estateDraftPublishRUKKTitleREAL ESTATEProduct card · StatsValueUP TO ₸86MLabelloan amountTerms linesfrom 2.25% / monthButton textLearn more app/(frontend)/[locale]/[slug] · page.blocks<Hero />Hero<Advantages />Advantages<ProductCards />Product cards<Calculator />Calculator<Steps />Steps<ApplicationForm />Application

01 / 06

  1. 01SiteCaddy serves it over HTTPS with a Let’s Encrypt certificate
  2. 02Next.jsa page is a list of blocks, each block is a component
  3. 03Adminthe same fields as a form, in Russian and Kazakh
  4. 04Payload 3the content model: fields, drafts, roles, API
  5. 05PostgreSQL 17pages, products, documents, FAQ, media and their versions
  6. 06ServerDocker Compose: Caddy, the app, the database, volumes
scroll or tap
Front endNext.js 16 · React 19 · TypeScriptApp Router and strict typing. Styles are CSS Modules and tokens, no UI libraries.
CMSPayload 3Embedded in the same app: block-based pages, drafts, versions, roles, an admin in Russian.
DatabasePostgreSQL 17Payload migrations; restoring from a backup is tested automatically.
ApplicationsBitrix24A deal and a contact are created via webhook. The site itself stores no applications.
ServerDocker · Caddy · Let’s EncryptA server in Almaty, encrypted backups, updates with a few seconds of downtime.
QualityESLint · node:test · GitHub ActionsChecks on Ubuntu and Windows, plus a separate run for the image build and migrations.
SEOGA4 · Yandex Metrica · schema.orgForm and calculator events, hreflang for both languages, a sitemap.

How a request travels through the server

VisitorBrowserOpens a page or submits an application.
CaddyHTTPSA Let’s Encrypt certificate, serving to the outside.
DockerNext.js + PayloadOne app: the site, the admin and the API.
DatabasePostgreSQLPages, products, documents, versions.
application → Bitrix24: a deal and a contactbackups → encrypted storageevents → GA4 and Yandex Metrica

How a code update reaches the server

GitTask branchGitHub Actions checks on two systems.
SSHSource archiveThe server needs no access to the private repository.
DockerImage buildAbout six minutes, with the site still running.
DatabaseMigrationsA separate step, before the switch.
SiteRestartA few seconds of downtime.

/ 04 Admin

The client edits the site on their own.

Copy, products, questions, documents and the menu are edited in an admin in Russian — no developer and no deploy. Every block has a “hide on the site” switch, blocks can be dragged, and any version of a page can be restored.

PagesProductsFAQDocumentsMediaNavigationSite settingsSEO fieldsRussian and Kazakh

How an edit reaches the site

EditorAn edit in the adminAdmin and editor roles.
DraftAutosaveVisitors do not see it.
CheckPreviewThe page as on the site, before publishing.
PublishA new versionEarlier versions stay; compare and restore.
SiteThe page is updatedIn both languages.

The twenty blocks any page is built from — as they appear in the “Add block” dialog

Hero
Advantages
Product cards
Calculator
Terms
Steps
Audience
Tasks
Approach
About teaser
History
Digital
Team
FAQ
Documents
Requisites
Contacts
Application form
Callback form
Call to action

/ 05 Process

CMS and server first, mockups second.

While the design was in progress, everything that did not depend on it was built: the content model, the admin, applications and a reproducible setup. When the mockups arrived, the layout landed on a ready foundation.

The work ran on task cards, each with its own branch, checkpoints and handoff. AI agents wrote the code; framing, architecture and acceptance were mine.

  1. SeptemberFoundationEnvironment, Payload, content models, API and preview.
  2. 10 NovemberLayout from FigmaSeven pages, desktop and phone, 20 CMS blocks.
  3. NovemberApplications, SEO, serverCRM, the client’s server, the Kazakh translation, admin polish.
  4. NowTest versionThe site is with the client for review.
  5. NextLaunchAcceptance and the domain switch.

/ 06 In numbers

A small site built like a product.

20CMS blocks
7pages
2languages

/ 07 Along the way

Four problems that were not in the mockup.

  1. 15 MB → 0.3 MBHome page images: WebP copies at the right widths and srcset.
  2. Kazakh copy runs longer than RussianA flexible first screen and a “hide the illustration in this language” switch.
  3. The client’s CRM has no leadsAn application creates a deal together with a contact.
  4. Documents open in the browserLicences and reports as PDFs — no download needed.