Scheduled maintenance notice in HTML and CSS
A notice warning of a scheduled service interruption, with date, time and impact.
Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in HTML and CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Avis de maintenance planifiée</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<aside class="maint" aria-labelledby="maint-title">
<svg aria-hidden="true" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3.5 2.5 20h19L12 3.5Z"/><path d="M12 10v4M12 17h.01"/></svg>:root {
--mt-bg: #fef9c3;
--mt-line: #eab308;
--mt-text: #2b2105;
--mt-icon: #854d0e;
--mt-ring: #2b2105;
--demo-bg: #fffef5;
--demo-text: #2b2105;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {Free component: copy it freely, including for commercial projects.
Other toasts and alerts components in HTML and CSS
Toasts and alerts components in HTML and CSS
A banner that warns visitors when they lose the network and announces when it is back, using browser events, with no request.
- Tailwind
- React
- CSS
- WordPress

A bell with an unread badge that opens a notification panel: icons by type, read and unread items told apart, and a "Mark all as read" button.
- Tailwind
- React
- CSS
- WordPress

The four classic interface messages: information, success, warning and error.
- Tailwind
- React
- CSS
- WordPress

Three callouts for technical documentation: note, tip and warning.
- Tailwind
- React
- CSS
- WordPress

A dashed callout highlighting an offer and its code, with the end date.
- Tailwind
- React
- CSS
- WordPress

An announcement bar at the top of the page with a link and a button to close it.
- Tailwind
- React
- CSS
- WordPress