Documentation
Ping — Notification Panel Template
Version 1.0.0 · Vanilla HTML · 10 files · 47 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 10 files:
- LICENSE.txt1.3 KB
- README.md2.3 KB
- assets/css/style.css12 KB
- assets/fonts/manrope-LICENSE.txt4.3 KB
- assets/fonts/manrope-latin-wght-normal.woff224 KB
- assets/images/favicon.svg352 B
- assets/js/main.js17 KB
- documentation/index.html11 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html8.1 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--bg#F8FAFC--surface#ffffff--ink#0f172a--ink-2#334155--muted#526071--line#e2e8f0--amber#F59E0B--amber-d#92400e--blue#2563eb--blue-l#eff6ff--green#16a34a--red#dc2626
Interactive features
Notification panel
Edit the NOTIFICATIONS array in assets/js/main.js (kind, who, text, target, group, read). Replace it with data from your API and call render().
Toasts
Call toast(type, title, message, { ms, sticky }) with type info, success, warning or error. TOAST_MS and MAX_TOASTS set the defaults.
Settings switches
Add an entry to the SETTINGS array to add a switch; read its state from the settings object.
Simulated activity
The Simulate incoming button cycles through the INCOMING array; remove it and the handler in section 7 when using real data.
Customisation notes
Accent colour
--amber is the badge and active-tab colour and --blue marks unread rows. Keep dark text on amber.
Panel placement
On desktop the panel is anchored under the bell in the 768px media query; on phones it spans the screen width below the app bar.
Toast position
The .toasts container sits bottom right and full width on phones. Move it by changing its top, bottom, left and right values.
What is front-end only
This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.
- Notifications are sample data in JavaScript
- Incoming notifications are simulated by a button
- Settings switches are held in memory and not saved
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Manrope typeface — OFL-1.1 (
assets/fonts/manrope-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.