HTML后台企业官网

mesa-lite — HTML 后台模板

作者 Anatolii198

Mesa Lite 是一个零依赖的餐厅数据仪表板模板,包含概览和销售两个页面,图表用原生 SVG 手写,数据集中在 js/data.js 中。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-18查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

零依赖:无需 npm install、打包器或 CDN,直接打开 index.html 即可运行

02

包含概览和销售两个完整页面,以及登录和 404 页面

03

八种手写 SVG 图表:折线/面积、垂直柱状(分组和堆叠)、水平堆叠条、环形图、迷你图、排名条列表、趋势行、星期×小时热力图

04

所有图表支持悬停提示,并在窗口缩放和主题切换时重绘

05

数据集中在 js/data.js 的单一 DATA 对象中,替换数值即可更新页面

06

深色和浅色主题,切换选择保存在 localStorage 中

模板详细介绍

Mesa Lite 是面向餐厅、咖啡馆和酒吧的仪表板模板,仓库提供免费版本。它包含 index.html(概览:KPI 卡片、营收、星期×小时热力图、热门菜品、渠道拆分、平均客单价、实时订单流)和 sales.html(销售:营收、支付构成、毛利润、品类利润率、渠道×支付、环比)两个完整页面,以及 login.html 和 404.html。所有图表均为手写 SVG,共八种类型,支持悬停提示、窗口缩放重绘和主题切换重绘。

使用方式简单:克隆仓库后直接用浏览器打开 index.html,或用 python -m http.server 8000 通过 HTTP 访问。所有数据集中在 js/data.js 的 DATA 对象中,替换数值并保持结构即可更新两个页面。图表通过 Mesa.line、Mesa.bars、Mesa.donut 等 API 绘制,颜色使用 CSS 自定义属性(--s1 至 --s4),主题令牌位于 css/style.css 顶部,支持深色和浅色模式,选择会保存在 localStorage 中。

README 明确说明日期范围按钮和登录表单是占位符,需要自行连接后端;商业版本提供更多页面和图表类型。浏览器支持当前 Chrome、Edge、Firefox 和 Safari,响应式从 360px 起。README 未提供关于性能、生产就绪程度或具体框架版本的信息。

HTML后台企业官网

适合你的项目吗?

适用场景

  • 为餐厅、咖啡馆或酒吧快速搭建数据概览仪表板原型
  • 需要离线运行且不引入外部依赖的静态仪表板项目
  • 作为学习手写 SVG 图表和主题切换实现的参考模板
  • 在免费版本基础上评估是否升级到包含更多页面和图表类型的商业版本

适合人群

  • 需要零依赖静态仪表板模板的餐厅、咖啡馆或酒吧经营者
  • 希望直接修改 data.js 来展示自有演示数据的前端开发者
  • 寻找手写 SVG 图表实现示例的学习者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    克隆仓库后直接用浏览器打开 index.html,无需安装依赖

  2. 2

    如果浏览器阻止本地文件,可在项目目录运行 python -m http.server 8000 后通过 HTTP 访问

  3. 3

    替换 js/data.js 中 DATA 对象的数值并保持结构,两个页面会同步更新

  4. 4

    日期范围按钮和登录表单是占位符,需要自行连接后端

  5. 5

    主题令牌位于 css/style.css 顶部,图表颜色使用 CSS 自定义属性 --s1 至 --s4

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 仓库是免费精简版;商业版 Mesa 提供额外 10 个页面和 3 种图表类型,需另行购买。
  • 完整版 Mesa 需付费 29 美元购买,免费版不包含其全部页面与图表。
  • 数据导入、POS/表格转换或对接带 API 的系统属于按次报价的付费服务,不在免费代码范围内。
  • 页面中的数字为虚构餐厅的演示数据,不含真实业务数据。
  • 日期范围按钮和登录表单是刻意设置的占位符,需自行连接后端才能生效。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

This repository is the free cut. The commercial version adds ten more pages and three more chart types:

README 原文

**[Get Mesa — $29](https://payhip.com/b/C8O71)** · [full demo, all 12 pages](https://mesa-dashboard-demo.netlify.app)

README 原文

Need it filled with your own numbers? Swapping `data.js` is straightforward, but a one-off load of your data, a converter from your POS or spreadsheet exports, or a live connection to a system with an API is a paid service, quoted per job — ask through the store.

README 原文

The figures here are realistic demo data for a fictional restaurant; no real business numbers are included. The date-range buttons and the sign-in form are deliberate placeholders — point them at your own backend and the rest of the page already works.

README 原文

The figures here are realistic demo data for a fictional restaurant; no real business numbers are included. The date-range buttons and the sign-in form are deliberate placeholders — point them at your own backend and the rest of the page already works.

README 原文
https://github.com/Anatolii198/mesa-lite/blob/main/LICENSEhttps://github.com/Anatolii198/mesa-lite/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-18。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 85 / 100
技术栈
HTML
网站类型
后台 · 企业官网
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-10-18
截图检查日期
2026-10-18

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 HTML。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: codex-user-requested-batch-review-20261021 · 2026-10-21

查看当时使用的来源资料

SHA-256: d9620f614fe034fab39279cde4a4b67184b3caa0daeb54493f61a026e0f8bc62

2026-10-18T17:43:24.609Z

来源文件 / 仓库
# Mesa Lite — restaurant analytics dashboard, zero dependencies

A dashboard template for restaurants, cafés and bars. Open `index.html` and it runs — no npm install, no bundler, no CDN, nothing that phones home.

The charts are not Chart.js. They are plain SVG, written from scratch, in one 25 KB file.

![Overview](docs/overview.png)

**[Live demo](https://Anatolii198.github.io/mesa-lite/)** · dark and light · works offline

---

## What's in here

Two full pages plus the two small ones that usually get skipped:

| Page | What it shows |
|---|---|
| `index.html` | Overview — KPI tiles, revenue, weekday × hour heatmap, top dishes, channel split, average check, live order feed |
| `sales.html` | Sales — revenue, payment mix, gross profit, margin by category, channel × payment, month-on-month |
| `login.html` | Sign-in |
| `404.html` | Not found |

Eight chart types, all hand-written:

`line / area` · `vertical bars (grouped and stacked)` · `horizontal stacked bars` · `donut with share labels` · `sparklines` · `ranked bar list` · `trend rows` · `weekday × hour heatmap`

Every chart has a hover tooltip and redraws on resize and on theme switch.

![Sales](docs/sales.png)

---

## Quick start

```bash
git clone https://github.com/Anatolii198/mesa-lite.git
cd mesa-lite
```

Then open `index.html` in a browser. That's the whole setup.

If your browser blocks local files, serve the folder over HTTP:

```bash
python -m http.server 8000
```

---

## Your own numbers

Every figure lives in `js/data.js` inside a single `DATA` object. Replace the values, keep the shape, and both pages update. Nothing is hard-coded in the markup.

```js
const DATA = {
  currency: '€',
  kpi: {
    revenue: { value: 8420, delta: 12.4, spark: [6100, 6480, /* … */] },
    // …
  },
  revenue30: { labels: ['1 Sep', '2 Sep', /* … */], values: [6800, 7250, /* … */] },
  // …
};
```

## Drawing a chart

Every chart takes a CSS selector and a config object:

```js
Mesa.line('#chart-revenue', {
  labels: DATA.revenue30.labels,
  series: [{ name: 'Revenue', color: '--s1', values: DATA.revenue30.values }],
  currency: '€',
  height: 268
});

Mesa.bars('#chart-channels', {
  labels: DATA.channels.labels,
  series: DATA.channels.series,
  stacked: true,
  currency: '€'
});

Mesa.donut('#chart-split', { items: DATA.channelSplit, currency: '€' });
```

`color` takes a CSS custom property name (`--s1` … `--s4`), so series colours come from the stylesheet and both themes stay correct. The palette is checked for deuteranopia, protanopia and tritanopia — adjacent categorical colours stay distinguishable, and status colours always ship with a label rather than colour alone.

## Theming

Design tokens sit at the top of `css/style.css`. The pages ship dark with no flash of white; the toggle switches to light and remembers the choice in `localStorage`. Charts re-read their colours on switch — it is not a CSS filter inversion.

---

## The full template

This repository is the free cut. The commercial version adds ten more pages and three more chart types:

| | Mesa Lite | Mesa |
|---|---|---|
| Pages | 2 + sign-in + 404 | 12 + sign-in + 404 |
| Chart types | 8 | 11 |
| Menu, Orders, P&L, Delivery, Customers, Staff, Inventory, Settings | — | ✓ |
| P&L waterfall, service timeline, menu-engineering scatter | — | ✓ |
| CSV export of any page | — | ✓ |
| README with the full chart API | — | ✓ |

**[Get Mesa — $29](https://payhip.com/b/C8O71)** · [full demo, all 12 pages](https://mesa-dashboard-demo.netlify.app)

Need it filled with your own numbers? Swapping `data.js` is straightforward, but a one-off load of your data, a converter from your POS or spreadsheet exports, or a live connection to a system with an API is a paid service, quoted per job — ask through the store.

---

## Notes

The figures here are realistic demo data for a fictional restaurant; no real business numbers are included. The date-range buttons and the sign-in form are deliberate placeholders — point them at your own backend and the rest of the page already works.

Browser support: current Chrome, Edge, Firefox and Safari, desktop and mobile. Responsive from 360 px up.

## License

MIT — see [LICENSE](LICENSE). Use it in personal and commercial projects.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。