Files
website/docs/DESIGN.md
T
Christian ManivongandClaude Sonnet 4.6 efa01b5f41
CI / TypeScript — type-check (push) Successful in 8s
CI / Publish — build & push image (push) Successful in 11s
CI / Deploy — pull & restart on host (push) Failing after 3s
feat: initial website implementation
React 18 + TypeScript + Vite + Tailwind CSS website for netOrk.
Built by a parallel instance based on the product docs.

Pages: Home (landing), Features, Drivers, Getting Started
Components: Nav, Footer
Assets: public/logo.png (1024x1024 RGBA)
Docker: multi-stage Dockerfile (node:20 builder + nginx:alpine)
Compose: netork-website service on proxy-net (Zoraxy integration)

docs/DESIGN.md: Logo Assets section added (PNG only, SVG removed);
wordmark pattern and <head> references documented.
.gitignore: fixed (was literal \n, now proper newlines); excludes
node_modules/, dist/, memory/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 10:19:50 +02:00

7.9 KiB
Raw Blame History

netOrk — Visual Identity & Design System

This document defines the visual identity of netOrk and must be followed exactly when building the website. The goal is zero visual discontinuity between the product UI and the marketing site.


Logo Assets

The logo file is in public/ — use it directly, do not recreate.

File Format Size Use
public/logo.png PNG 1024×1024, RGBA Nav logo, OG image, hero, press kit, favicon fallback

Usage in <img> (nav, hero)

<img src="/logo.png" alt="netOrk" className="h-8 w-8" />

For the nav, pair it with the wordmark:

<a href="/" className="flex items-center gap-2.5">
  <img src="/logo.png" alt="" className="h-7 w-7" aria-hidden="true" />
  <span className="font-semibold text-slate-100 tracking-tight">
    net<span className="text-sky-400">Ork</span>
  </span>
</a>

Use net<span class="text-sky-400">Ork</span> consistently — the Ork part in sky-400 ties the wordmark to the accent color.

<head> references

<link rel="icon" href="/logo.png" />
<meta property="og:image" content="/logo.png" />

Core Principle

The website looks like a dark-mode dev tool, not a SaaS landing page. No gradients, no floating orbs, no animated hero blobs. The aesthetic is deliberate, minimal, and technical — consistent with the product itself.


Color Palette

All colors are Tailwind CSS v3 classes. Do not use hex values directly — always use Tailwind class names to stay consistent.

Backgrounds

Layer Class Usage
Page / outermost bg-slate-950 Body, full-bleed sections
Card / panel bg-slate-900 Content cards, code blocks, feature boxes
Elevated element bg-slate-800 Hover states, dropdowns, table rows on hover
Border border-slate-700 Between sections, card outlines
Subtle border border-slate-800 Inside cards, dividers

Text

Role Class
Primary text-slate-100
Secondary / muted text-slate-400
Tertiary / placeholder text-slate-500
Accent (interactive) text-sky-400
Danger text-red-400

Accent (Interactive / CTA)

State Class
Default button bg-sky-600 text-white
Hover hover:bg-sky-500
Link / inline text-sky-400 hover:text-sky-300
Active indicator text-sky-400
Focus ring focus:ring-sky-500

Semantic Colors

Meaning Color
Success / active text-green-400, bg-green-500/20
Warning / caution text-yellow-400, bg-yellow-500/20
Danger / error text-red-400, bg-red-500/20
Info / neutral text-blue-400, bg-blue-500/20

Status Badge Pattern

// Active / online
<span className="text-xs font-medium px-2 py-0.5 rounded-full bg-green-500/20 text-green-400">
  active
</span>

// Offline
<span className="text-xs font-medium px-2 py-0.5 rounded-full bg-red-500/20 text-red-400">
  offline
</span>

// Warning
<span className="text-xs font-medium px-2 py-0.5 rounded-full bg-yellow-500/20 text-yellow-400">
  warning
</span>

Typography

Font stack: Tailwind default sans-serif (font-sans). No Google Fonts. The product uses system fonts; the website must match.

Element Classes
Hero heading text-4xl md:text-6xl font-bold text-slate-100 leading-tight
Section heading text-2xl md:text-3xl font-bold text-slate-100
Subsection heading text-xl font-semibold text-slate-200
Body text text-base text-slate-400 leading-relaxed
Small / label text-sm text-slate-400
Tiny / tag text-xs font-medium text-slate-500
Code / monospace font-mono text-sky-400
Accent text text-sky-400

Spacing & Layout

  • Max content width: max-w-7xl mx-auto px-6
  • Section padding: py-24 (desktop), py-16 (mobile)
  • Card padding: p-6
  • Gap between grid items: gap-6 or gap-8
  • All layouts are mobile-first; use md: and lg: breakpoints.

Components

Primary CTA Button

<a
  href="/docs/getting-started"
  className="inline-flex items-center gap-2 px-6 py-3 rounded-lg
             bg-sky-600 hover:bg-sky-500 text-white font-medium
             transition-colors"
>
  Get started
</a>

Secondary / Ghost Button

<a
  href="/features"
  className="inline-flex items-center gap-2 px-6 py-3 rounded-lg
             border border-slate-700 hover:border-slate-500
             text-slate-300 hover:text-slate-100
             transition-colors"
>
  See all features
</a>

Feature Card

<div className="rounded-xl border border-slate-800 bg-slate-900 p-6">
  <div className="mb-4 flex h-10 w-10 items-center justify-center
                  rounded-lg bg-sky-600/10">
    {/* Heroicon SVG, className="h-5 w-5 text-sky-400" */}
  </div>
  <h3 className="mb-2 text-lg font-semibold text-slate-100">Feature name</h3>
  <p className="text-sm text-slate-400 leading-relaxed">
    Description of the feature in one to three sentences.
  </p>
</div>

Screenshot Frame

App screenshots must be wrapped in this frame to integrate naturally against the dark background:

<div className="rounded-xl border border-slate-700 overflow-hidden shadow-2xl">
  <img src="/screenshots/device-list.png" alt="Device inventory" className="w-full" />
</div>

Optionally add a browser chrome header above the image:

<div className="flex items-center gap-1.5 border-b border-slate-700 bg-slate-800 px-4 py-2.5">
  <span className="h-2.5 w-2.5 rounded-full bg-red-500/70" />
  <span className="h-2.5 w-2.5 rounded-full bg-yellow-500/70" />
  <span className="h-2.5 w-2.5 rounded-full bg-green-500/70" />
  <span className="ml-4 text-xs text-slate-500 font-mono">netork.local</span>
</div>

Code Block

<pre className="rounded-xl border border-slate-800 bg-slate-900 p-6
               font-mono text-sm text-slate-300 overflow-x-auto">
  <code>{`bash scripts/deploy.sh 192.168.1.1`}</code>
</pre>

Driver / Integration Badge

<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full
                 border border-slate-700 bg-slate-900
                 text-xs font-medium text-slate-300">
  OpenWRT
</span>

Section Divider

<div className="border-t border-slate-800" />

Navigation

  • Sticky top nav: sticky top-0 z-10 bg-slate-900/80 backdrop-blur border-b border-slate-800
  • Logo: left-aligned. Product name in font-semibold text-slate-100, optionally prefixed with a small icon.
  • Nav links: text-sm text-slate-400 hover:text-slate-100 transition-colors
  • Active link: text-slate-100
  • CTA in nav: small primary button px-4 py-1.5 text-sm

Animations & Transitions

  • Hover states: always transition-colors (not transition-all).
  • No JavaScript animations on initial page load — no entrance animations, no scroll-triggered reveals via IntersectionObserver.
  • Scroll behavior: scroll-smooth on <html> for anchor links.
  • No parallax, no floating elements, no auto-playing videos.

Logo / Wordmark

The netOrk wordmark uses the following convention in the product:

  • Lowercase n, uppercase O: netOrk
  • Monospace context: font-mono text-sky-400
  • Heading context: font-bold text-slate-100 with Ork potentially in text-sky-400 if desired for emphasis

Iconography

Use Heroicons (inline SVG). Sizes:

  • Feature card icons: h-5 w-5
  • Nav / button icons: h-4 w-4
  • Hero / large decorative: h-8 w-8 or h-10 w-10

All icons: text-sky-400 in feature contexts, text-slate-400 in secondary/muted contexts.


tailwind.config.js

No custom theme extensions needed. The default Tailwind v3 slate + sky palette covers everything. The config only needs content paths:

/** @type {import('tailwindcss').Config} */
export default {
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {
    extend: {},
  },
  plugins: [],
}