Onepage - Tagline Element Editor
Всички проекти

Onepage · 2025

Onepage - Tagline Element Editor

Пуснат
Onepage - Tagline Element Editor logo
ReactTypeScriptMobXViteCSS Modulesdnd-kitnanoid

Общ преглед

Onepage is a no-code website and landing page builder used by 14,000+ customers. The test task required building an interactive editor for the Tagline element, following a Figma design and implementing all unspecified states through independent UI judgment. The result is a split-view editor: a canvas preview renders tag chips in a flex-wrap layout with live style updates, while a floating panel (absolutely positioned next to the element) provides three sub-panels - a tag list with drag-and-drop reordering, a create/edit item form, and a full styles panel (4 variants, 5 sizes, 5 border-radius options, 3 alignment modes). Every mutation simulates a POST to a mock API endpoint. Architecture was designed for extensibility: adding new element types, controls, or style parameters requires no structural changes.

Предизвикателството

The task explicitly evaluated scalable architecture - the code had to be structured so that new element types, panel controls, and style parameters could be added without refactoring. UI decisions for states not covered in the Figma (hover, empty states, edge cases) were left to developer judgment.

Решението

Built with React 19 + TypeScript + MobX (stack required by the task). Domain stores (TaglineStore, UIStore) keep state clean and reactive. @dnd-kit handles drag-and-drop in both the sidebar list and the preview. CSS Modules provide scoped styling. The panel system is component-driven - each sub-panel is an independent slice, making the architecture straightforward to extend.

Моята роля

Sole developer - designed and built the entire application as a technical test assignment for the Front-end Engineer position at Onepage.

Резултати

  • Плаващ панел на настройките с 3 навигируеми подпанела (списък, създаване/редактиране, стилове)
  • Живо предварителен преглед с синхронизация на стилове в реално време за всички 4 варианта, 5 размера, 5 радиуса
  • Прередактиране на етикети чрез влачене в списъка на странична лента и предварителен преглед на платното
  • Имитирана упорност на API - POST активиран при всяка мутация
  • Разширяемо архитектура - нови типове елементи и управления добавят без рефакториране

Технологичен стек

Подобен проект?

Нека обсъдим изискванията ви и изградим нещо страхотно.

Стартирай проект