Browser Unsupported Notice
A copy-paste error & 404 pages component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Error & 404 PagesHTMLCSSany framework
Browser not supported
Please update your browser, or switch to a modern one, to continue.
Copy into your project
HTML
<div class="nuda-ep2-browser-unsupported">
<div class="nuda-ep2-browser-unsupported__icon" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="4" width="20" height="16" rx="2" />
<path d="M2 8h20" />
<circle cx="5.5" cy="6" r="0.5" fill="currentColor" stroke="none" />
</svg>
<span class="nuda-ep2-browser-unsupported__bang">!</span>
</div>
<p class="nuda-ep2-browser-unsupported__title">Browser not supported</p>
<p class="nuda-ep2-browser-unsupported__sub">Please update your browser, or switch to a modern one, to continue.</p>
<div class="nuda-ep2-browser-unsupported__row" aria-hidden="true">
<span class="nuda-ep2-browser-unsupported__dot"></span>
<span class="nuda-ep2-browser-unsupported__dot"></span>
<span class="nuda-ep2-browser-unsupported__dot"></span>
<span class="nuda-ep2-browser-unsupported__dot"></span>
</div>
<button class="nuda-ep2-browser-unsupported__btn" type="button">Update browser</button>
</div>CSS
.nuda-ep2-browser-unsupported {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 22px 20px;
background: #101010;
border: 1px solid rgba(255,255,255,.08);
border-radius: 16px;
width: 100%;
max-width: 260px;
text-align: center;
font-family: ui-sans-serif,system-ui;
}
.nuda-ep2-browser-unsupported__icon {
position: relative;
width: 52px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
color: #8a8a8a;
background: #1a1a1a;
border: 1px solid rgba(255,255,255,.1);
border-radius: 8px;
margin-bottom: 6px;
}
.nuda-ep2-browser-unsupported__icon svg {
width: 28px;
height: 22px;
}
.nuda-ep2-browser-unsupported__bang {
position: absolute;
top: -8px;
right: -8px;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
background: #f5a623;
color: #0a0a0a;
border-radius: 50%;
font-size: 11px;
font-weight: 800;
border: 2px solid #101010;
animation: _nuda-ep2browserunsupported-shake 2.6s ease-in-out infinite;
}
.nuda-ep2-browser-unsupported__title {
margin: 4px 0 0;
color: #fafafa;
font-size: 14px;
font-weight: 700;
}
.nuda-ep2-browser-unsupported__sub {
margin: 0;
color: #8a8a8a;
font-size: 11px;
line-height: 1.5;
max-width: 210px;
}
.nuda-ep2-browser-unsupported__row {
display: flex;
gap: 8px;
margin-top: 4px;
}
.nuda-ep2-browser-unsupported__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255,255,255,.14);
animation: _nuda-ep2browserunsupported-fade 2.4s ease-in-out infinite;
}
.nuda-ep2-browser-unsupported__dot:nth-child(2) {
animation-delay: .2s;
}
.nuda-ep2-browser-unsupported__dot:nth-child(3) {
animation-delay: .4s;
}
.nuda-ep2-browser-unsupported__dot:nth-child(4) {
animation-delay: .6s;
}
.nuda-ep2-browser-unsupported__btn {
margin-top: 6px;
min-height: 44px;
padding: 0 18px;
border-radius: 10px;
border: 1px solid rgba(228,255,84,.3);
background: rgba(228,255,84,.1);
color: #e4ff54;
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: background .2s;
}
.nuda-ep2-browser-unsupported__btn:hover {
background: rgba(228,255,84,.18);
}
.nuda-ep2-browser-unsupported__btn:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
@keyframes _nuda-ep2browserunsupported-shake {
0%,90%,100% {
transform: rotate(0);
}
92% {
transform: rotate(-10deg);
}
94% {
transform: rotate(10deg);
}
96% {
transform: rotate(-8deg);
}
98% {
transform: rotate(6deg);
}
}
@keyframes _nuda-ep2browserunsupported-fade {
0%,100% {
opacity: .25;
}
50% {
opacity: .9;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ep2-browser-unsupported__bang {
animation: none;
}
.nuda-ep2-browser-unsupported__dot {
animation: none;
opacity: .6;
}
}
How to use Browser Unsupported Notice
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.