Skip to content

Website metrics dashboard

A client area page for a small business website: sidebar, four metrics (visits, requests, reply rate and reply time) with their change, an SVG line chart per period and a filterable table of the latest messages, with no chart library.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

To show a client what their website brings in, this dashboard page gathers the essentials on one screen. On the left, a sidebar with the site name, the client area navigation (current page marked with aria-current, number of messages to handle) and the signed-in account; below 56 rem wide it folds behind a “Menu” button (aria-expanded, closed with Escape and focus returned). In the centre, a period selector (7 days, 30 days, 12 months, aria-pressed buttons) updates four cards: visits, contact requests, reply rate (“27 replies to 31 requests”) and average reply time. Each card compares with the previous period in words (“+9 % compared with the previous 30 days”) with an arrow and a colour that takes the direction into account: a reply time going down is good news. The visits curve is an SVG drawn by the script (area and line, computed gridlines, peak and average written under the title); its figures are also available in a collapsible table for screen readers and for anyone who prefers reading. At the bottom, the latest messages table (date, contact, subject, New, In progress or Replied status) can be filtered to “To handle” and turns into cards on mobile. The figures come from a single DATA constant at the top of the script, to fill with the export of your analytics tool or your form; a tbi:period event reports each period change. Without JavaScript, the page shows the last 30 days. Announcements through a role="status" region, AA contrast in light and dark mode, layout based on container queries (it adapts to the column it sits in), transitions removed with prefers-reduced-motion, no horizontal scrolling from 360 px, no dependency. Example: the client area of a joinery workshop. The texts of the example are in French.

Code

Loading the code…

The code of this component in

Archive contents

tableau-de-bord-indicateurs-site-html-tailwind.zip3 files · 13 Ko

  • index.html56 Ko
  • README.md6 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • Three semicircle gauges whose needle swings to the value, with figure, label and source readable as text, in pure CSS.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A row of guarantees (ten-year insurance, free quote, call-out within 24 hours, RGE and Qualibat labels) that reassures visitors right below the call to action.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Four key figures in cards that count up from zero to their value when the section scrolls into view, with icon, unit and label.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The amount raised, a progress bar toward the goal, the number of backers and days left.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component