Web Development
A working website instead of a proposal PDF: a builder that knows your industry
The question I heard most when proposing company websites was "what will my site look like?". Instead of answering with a PDF, I built a website builder that knows 16 industries and their rules, and shows each company its own site.
Working freelance, I learned that the hardest part of a job is often not writing the code but getting started. Almost every business owner I talked to about a company website asked the same question: "What will my site look like?" Answering it with a PDF of a few screenshots and a price table satisfied neither side.
So I decided to turn the proposal into an experience. My first attempt was for private preschools: the owner browsed a sample school, built their own site in seven steps and sent me the result with a single link. It worked. Then dentists, lawyers, accountants and hotel managers started asking the same question. That's how the Corporate Website Builder was born.
Every industry's website is different
My first idea was to vary one template with colors and logos. But as I researched industries one by one, I saw that wouldn't be enough. A dental clinic's pages, the way people search for it on Google and, most importantly, what it's not allowed to say on its site are completely different from a law firm's.
- Healthcare providers have advertising rules; phrases like "the best" or "guaranteed results" can cause trouble.
- Lawyers in Turkey face an advertising ban; the site must be informative and can't use language aimed at attracting clients.
- Businesses that show prices are subject to price-labeling rules.
I researched these rules and encoded them into industry files. Every industry page includes target search queries, a sample search result title and a "limits of this industry" note. I think when you sell a company a website, you should give it not just a nice design but a content framework that won't get it into trouble.
"Don't make them all look the same"
The second question was about design. A hotel should look refined, a preschool warm, a consultant calm. So I added a layer that draws the same content in five different design languages: Professional, Graceful, Innovative, Sweet and Elegant. Three of them come from sites I built myself: a marble company, a preschool and this website.
Architecturally, this is the decision I like most: design languages aren't copies of components. Each part of the sample site carries only its layout and gets a part name (demo-kicker, demo-faq, demo-band and so on). Each language's look and motion live in its own CSS files. Adding a new language doesn't mean copying components; it means writing a few CSS files and a small configuration.
Why Vue and vite-ssg?
A company website's job is to load fast, look right on Google and keep working for years. That requires content to arrive as plain HTML without waiting for JavaScript. vite-ssg generates every Turkish and English URL, including industry pages and full-screen sample sites, as a separate HTML file at build time; Vue takes over only for interaction in the browser. I wrote about why I mostly use Vue for these sites in a separate post.
The result on the live site: 280 ms LCP and a CLS of 0. Even scroll-driven effects are written with CSS animation-timeline, without adding JavaScript; in browsers that don't support it, the content simply stays in place.
Separate layers, rules in one place
The reason the project grew without falling apart is strict layer separation:
content/holds only rules: packages, page limits, industry structures, design languages.i18n/messages/holds only text.lib/holds Vue-independent business logic: the versioned schema of a site's structure, share links, menus, package pricing.
Price, FAQ, PDF and llms.txt all read from the same configuration. When a package price changes, there aren't four places to update. The share link is compressed with the browser's own CompressionStream; when I open it, the site the company built opens full screen.
For those who want WordPress
Some companies want WordPress so they can manage the site themselves. So I wrote a kit that brings the same structure to WordPress: a full-site-editing block theme and a core plugin. Industry structures, sample text and color sets are read from the Vue project's files by a sync script, so both products are fed from one source. Each client site is generated with WP-CLI as a separate, independent WordPress project.
Code discipline
File, function and line-length limits are lint rules, and code that breaks them doesn't build. The build also won't ship without passing type checks, 49 unit tests and a translation check. The reason I'm this strict: this is a sales tool, and a bug in a sales tool is a direct loss of trust.
When I look at this project, I see a sales process solved with engineering. Every choice the business owner makes answers a question from the proposal meeting: where does the price come from, how many pages will there be, how will it look on a phone? When people decide by seeing, the conversation gets much easier.