You're Offline
A copy-paste empty states component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Empty StatesHTMLCSSany framework
You're offline
Check your connection and try again
Copy into your project
HTML
<!-- You're Offline -->
<div class="nuda-es2-offline" role="status" aria-label="You are offline">
<div class="nuda-es2-offline__scene" aria-hidden="true">
<svg viewBox="0 0 48 36" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round">
<path class="nuda-es2-offline__arc nuda-es2-offline__arc--a" d="M4 14 A28 28 0 0 1 44 14" />
<path class="nuda-es2-offline__arc nuda-es2-offline__arc--b" d="M11 21 A18 18 0 0 1 37 21" />
<path class="nuda-es2-offline__arc nuda-es2-offline__arc--c" d="M18 28 A8 8 0 0 1 30 28" />
<circle class="nuda-es2-offline__dot" cx="24" cy="33" r="2" fill="currentColor" stroke="none" />
<path class="nuda-es2-offline__slash" d="M2 2 L46 34" />
</svg>
</div>
<h3 class="nuda-es2-offline__title">You're offline</h3>
<p class="nuda-es2-offline__sub">Check your connection and try again</p>
<button class="nuda-es2-offline__cta" type="button">Retry</button>
</div>CSS
.nuda-es2-offline {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 20px;
text-align: center;
width: 100%;
max-width: 240px;
color: #8f8f98;
}
.nuda-es2-offline__scene {
width: 80px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
.nuda-es2-offline__scene svg {
width: 100%;
height: 100%;
}
.nuda-es2-offline__arc {
opacity: .2;
}
.nuda-es2-offline__arc--a {
animation: nuda-es2-offline-blink 2.4s ease-in-out infinite;
}
.nuda-es2-offline__arc--b {
animation: nuda-es2-offline-blink 2.4s ease-in-out .2s infinite;
}
.nuda-es2-offline__arc--c {
animation: nuda-es2-offline-blink 2.4s ease-in-out .4s infinite;
}
.nuda-es2-offline__dot {
animation: nuda-es2-offline-dot 2.4s ease-in-out infinite;
}
.nuda-es2-offline__slash {
color: #ff6b6b;
}
.nuda-es2-offline__title {
font: 600 13px ui-sans-serif,system-ui;
color: #fafafa;
margin: 0;
}
.nuda-es2-offline__sub {
font: 400 11px ui-sans-serif,system-ui;
color: #a0a0a8;
margin: 0;
}
.nuda-es2-offline__cta {
margin-top: 6px;
padding: 8px 16px;
background: #e4ff54;
color: #0a0a0a;
border: 0;
border-radius: 8px;
font: 600 11px ui-sans-serif,system-ui;
cursor: pointer;
transition: transform .15s ease,filter .2s ease;
min-height: 32px;
}
.nuda-es2-offline__cta:hover {
transform: translateY(-1px);
filter: brightness(1.08);
}
.nuda-es2-offline__cta:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 2px;
}
@keyframes nuda-es2-offline-blink {
0%,100% {
opacity: .15;
}
50% {
opacity: .6;
}
}
@keyframes nuda-es2-offline-dot {
0%,100% {
opacity: .3;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.3);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-es2-offline__arc--a,.nuda-es2-offline__arc--b,.nuda-es2-offline__arc--c,.nuda-es2-offline__dot {
animation: none !important;
opacity: .3;
}
}
How to use You're Offline
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.