Feedback
Maintenance Notice
A scheduled-maintenance bar where time is the hero: the outage window sits in its own block and is marked up with a time tag.
- banner
- maintenance
- schedule
- time
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this in the header: https://vibeui.ru/c/banner-007?lang=en
Плановые работы с базой данных
Каталог останется доступен только на чтение. Публикация и загрузка файлов не сработают.
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
# Install and place "banner-007" (Maintenance Notice) from VibeUI
## 1. Install first — do not skip, do not recreate
Run this exact command before writing any code:
npx shadcn@latest add https://vibeui.ru/r/banner-007.json
Registry item: https://vibeui.ru/r/banner-007.json
Installs to: components/vibeui/banner-007.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.
Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.
## 2. What it is
A scheduled-maintenance bar where time is the hero: the outage window sits in its own block and is marked up with a time tag.
A scheduled-maintenance bar with the outage window in a time tag. Zero dependencies, one file, no client JS.
## 3. How to use it
import { Banner007 } from "@/components/vibeui/banner-007"
<Banner007
title="Scheduled database maintenance"
date="14 September"
from="02:00"
to="04:30"
/>
Read the installed file for the full prop list.
## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.
Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)
## 5. Keep exactly as installed
- the local --vibeui-banner-007-* palette — do not swap it for your theme tokens
- the <time> tag with a machine-readable datetime — otherwise only a human understands the date
- the outage window pulled out on its own: here the time matters more than the heading
- the accessible name carrying the date and the window — it is spoken instead of the paragraph
- listing what will stop working: "there may be disruptions" helps nobody
- the bar's own light surface: without it the dark text disappears on a dark background
## 6. You may change
- the heading through title and the detail through note
- the date through date and the window through from and to
- the machine-readable value through datetime
- the accent through the --vibeui-banner-007-accent variable
## 7. Rules
- The component does not add a time zone: state it inside date or note.
- The datetime value must match the displayed time, otherwise the markup lies.
- The bar does not disappear when the work ends — the app has to remove it.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.
## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.For developers
npx shadcn@latest add https://vibeui.ru/r/banner-007.jsonhttps://vibeui.ru/r/banner-007.jsonКомпонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-banner-007-*. Серверный: хуков нет. Окно недоступности вынесено в отдельный блок и обёрнуто тегом <time> с машиночитаемым datetime, поэтому его понимает не только человек. Доступное имя полосы собирается из заголовка, даты и границ окна — вслух звучит вся суть без чтения абзаца. Раскладка считается от собственной ширины: на узком экране блок времени встаёт над текстом через @container.
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
import type { ComponentPropsWithoutRef, CSSProperties } from "react"
export type Banner007Props = Omit<
ComponentPropsWithoutRef<"div">,
"children"
> & {
title?: string
/** Дата в человеческом виде: «14 сентября». */
date?: string
from?: string
to?: string
/** Машиночитаемое значение для <time datetime>. */
datetime?: string
note?: string
}
// Идея компонента: полоса плановых работ, у которой время — главный герой.
// Слева отдельным блоком стоит окно недоступности, справа объяснение; время
// размечено тегом <time>, поэтому его понимает не только человек.
const STYLES = `
:where([data-vibeui-block="banner-007"]){
--vibeui-banner-007-bg:oklch(0.98 0.012 285);
--vibeui-banner-007-fg:oklch(0.26 0.04 285);
--vibeui-banner-007-muted:oklch(0.48 0.04 285);
--vibeui-banner-007-border:oklch(0.88 0.03 285);
--vibeui-banner-007-slot:oklch(0.94 0.04 285);
--vibeui-banner-007-accent:oklch(0.5 0.14 290);
--vibeui-banner-007-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
container-type:inline-size;
}
[data-vibeui-block="banner-007"]{
width:100%;box-sizing:border-box;
font-family:var(--vibeui-banner-007-font);color:var(--vibeui-banner-007-fg);
}
[data-vibeui-block="banner-007"] [data-part="shell"]{
display:flex;align-items:stretch;gap:0.9375rem;
box-sizing:border-box;padding:0.875rem 1rem;
border:1px solid var(--vibeui-banner-007-border);border-radius:1rem;
background:var(--vibeui-banner-007-bg);
}
/* Окно недоступности вынесено в отдельный блок: это главная величина. */
[data-vibeui-block="banner-007"] [data-part="slot"]{
flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;
min-width:5.5rem;padding:0.5rem 0.75rem;box-sizing:border-box;
border-radius:0.75rem;background:var(--vibeui-banner-007-slot);
text-align:center;
}
[data-vibeui-block="banner-007"] [data-part="date"]{font-size:0.75rem;color:var(--vibeui-banner-007-muted)}
[data-vibeui-block="banner-007"] [data-part="range"]{
font-size:0.9375rem;font-weight:700;letter-spacing:-0.01em;
font-variant-numeric:tabular-nums;white-space:nowrap;
}
[data-vibeui-block="banner-007"] [data-part="text"]{display:flex;flex-direction:column;gap:0.1875rem;justify-content:center;min-width:0}
[data-vibeui-block="banner-007"] [data-part="title"]{margin:0;font-size:0.875rem;font-weight:650;line-height:1.35}
[data-vibeui-block="banner-007"] [data-part="note"]{margin:0;font-size:0.8125rem;line-height:1.45;color:var(--vibeui-banner-007-muted)}
[data-vibeui-block="banner-007"] [data-part="note"] b{color:var(--vibeui-banner-007-accent);font-weight:650}
@container (max-width: 26rem){
[data-vibeui-block="banner-007"] [data-part="shell"]{flex-direction:column;gap:0.75rem}
[data-vibeui-block="banner-007"] [data-part="slot"]{align-items:flex-start;text-align:left;width:100%}
}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="banner-007"] *{animation:none!important;transition:none!important}}
`
/**
* Полоса плановых работ с окном недоступности, размеченным тегом time.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Banner007({
title = "Плановые работы с базой данных",
date = "14 сентября",
from = "02:00",
to = "04:30",
datetime = "2026-09-14T02:00",
note = "Каталог останется доступен только на чтение. Публикация и загрузка файлов не сработают.",
className,
style,
...props
}: Banner007Props) {
return (
<>
<style href="vibeui-banner-007" precedence="medium">
{STYLES}
</style>
<div
{...props}
data-vibeui-block="banner-007"
role="note"
aria-label={`${title}: ${date}, с ${from} до ${to}`}
className={className}
style={style as CSSProperties}
>
<div data-part="shell">
<time data-part="slot" dateTime={datetime}>
<span data-part="date">{date}</span>
<span data-part="range">
{from}–{to}
</span>
</time>
<div data-part="text">
<p data-part="title">{title}</p>
<p data-part="note">{note}</p>
</div>
</div>
</div>
</>
)
}