Skip to content

Payment Required Notice

A copy-paste error & 404 pages component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Error & 404 PagesHTMLCSSany framework
Pro plan · Past due

Renew your plan to keep access to this feature.

Copy into your project

HTML
<div class="nuda-ep2-payment-required">
  <div class="nuda-ep2-payment-required__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="5" width="20" height="14" rx="2" />
      <path d="M2 10h20" />
    </svg>
    <span class="nuda-ep2-payment-required__lock">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
           stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
        <rect x="5" y="11" width="14" height="9" rx="2" />
        <path d="M8 11V8a4 4 0 018 0v3" />
      </svg>
    </span>
  </div>
  <span class="nuda-ep2-payment-required__chip">Pro plan · Past due</span>
  <p class="nuda-ep2-payment-required__title" role="alert">Your subscription has lapsed</p>
  <p class="nuda-ep2-payment-required__sub">Renew your plan to keep access to this feature.</p>
  <div class="nuda-ep2-payment-required__actions">
    <button class="nuda-ep2-payment-required__btn nuda-ep2-payment-required__btn--primary" type="button">Update billing</button>
    <button class="nuda-ep2-payment-required__btn" type="button">Go home</button>
  </div>
</div>
CSS
.nuda-ep2-payment-required {
  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-payment-required__icon {
  position: relative;
  width: 52px;
  height: 34px;
  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;
  animation: _nuda-ep2paymentrequired-glow 2.6s ease-in-out infinite;
}

.nuda-ep2-payment-required__icon svg {
  width: 26px;
  height: 20px;
}

.nuda-ep2-payment-required__lock {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff6b6b;
  color: #0a0a0a;
  border-radius: 50%;
  border: 2px solid #101010;
}

.nuda-ep2-payment-required__lock svg {
  width: 11px;
  height: 11px;
}

.nuda-ep2-payment-required__chip {
  font-size: 9px;
  font-family: ui-monospace,monospace;
  font-weight: 700;
  letter-spacing: .06em;
  color: #ff6b6b;
  padding: 2px 8px;
  background: rgba(255,107,107,.08);
  border-radius: 99px;
  border: 1px solid rgba(255,107,107,.2);
}

.nuda-ep2-payment-required__title {
  margin: 4px 0 0;
  color: #fafafa;
  font-size: 14px;
  font-weight: 700;
}

.nuda-ep2-payment-required__sub {
  margin: 0;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.5;
  max-width: 210px;
}

.nuda-ep2-payment-required__actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.nuda-ep2-payment-required__btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #cfcfcf;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.nuda-ep2-payment-required__btn:hover {
  background: rgba(255,255,255,.08);
}

.nuda-ep2-payment-required__btn:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

.nuda-ep2-payment-required__btn--primary {
  background: rgba(228,255,84,.1);
  border-color: rgba(228,255,84,.3);
  color: #e4ff54;
}

.nuda-ep2-payment-required__btn--primary:hover {
  background: rgba(228,255,84,.18);
}

@keyframes _nuda-ep2paymentrequired-glow {
  0%,100% {
    box-shadow: 0 0 0 0 rgba(255,107,107,0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255,107,107,.08);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ep2-payment-required__icon {
    animation: none;
  }
}

How to use Payment Required 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.

More error & 404 pages components

← Browse all NudaUI components