feedback · 404

Page 404

Page d'erreur complète pour une URL introuvable, avec image de fond et bouton de retour.

Effets

Voir le code source
<style>
.bn-404 {
  position: relative;
  min-height: 420px;

  display: flex;
  align-items: center;

  background-size: cover;
  background-position: center;
  font-family: 'Inter', sans-serif;

  --fx-shadow: none;
  box-shadow: var(--fx-shadow);
}

.bn-404.fx-shadow {
  --fx-shadow: inset 0 0 200px 40px rgba(0, 0, 0, 0.6);
}

.bn-404::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5, 8, 8, 0.9), rgba(5, 8, 8, 0.4));
}

.bn-404__content {
  position: relative;
  padding: 3rem;
  max-width: 480px;
}

.bn-404__code {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  letter-spacing: 0.05em;
  color: #E6E4DD;
  line-height: 1;
}

.bn-404__title {
  margin: 0.5rem 0 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C7C1B7;
}

.bn-404__text {
  color: #979793;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.bn-404__btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(230, 228, 221, 0.4);
  border-radius: 999px;
  color: #E6E4DD;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.bn-404__btn:hover {
  border-color: #E6E4DD;
  background: rgba(230, 228, 221, 0.08);
}

</style>

<section class="bn-404" data-fx-root style="background-image: url('https://placehold.co/1200x500/1D2324/1D2324');">
  <div class="bn-404__content">
    <span class="bn-404__code">404</span>
    <h2 class="bn-404__title">Page introuvable</h2>
    <p class="bn-404__text">
      La page que vous recherchez semble avoir disparu. Retournez sur vos pas
      ou explorez de nouveaux horizons.
    </p>
    <a href="#" class="bn-404__btn">Retour à l'accueil →</a>
  </div>
</section>