Pens

Neo-Brutalist High-Contrast Block Header

UI Component bởi acmatvjrus
Mở Studio
<div class="brutal-stage">
  <header class="brutal-header">
    <a href="#" class="brutal-brand">
      <span class="icon-cube">■</span>
      <span>RAW//GRID</span>
    </a>
    <nav class="brutal-nav">
      <a href="#" class="brutal-link active">TRANG CHỦ</a>
      <a href="#" class="brutal-link">WORK</a>
      <a href="#" class="brutal-link">MANIFESTO</a>
      <a href="#" class="brutal-link">STORE</a>
    </nav>
    <div class="brutal-actions">
      <a href="#" class="btn-brutal-login">SIGN IN</a>
      <a href="#" class="btn-brutal-cta">GET STARTED ↗</a>
    </div>
  </header>
</div>
body {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fbf7ee;
  color: #000;
}
.brutal-stage {
  padding: 24px 20px;
}
.brutal-header {
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brutal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #000;
  text-decoration: none;
}
.icon-cube {
  color: #10a37a;
  font-size: 1.4rem;
}
.brutal-nav {
  display: flex;
  gap: 12px;
}
.brutal-link {
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: all 0.15s;
}
.brutal-link:hover {
  background: #ffe600;
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}
.brutal-link.active {
  background: #a7f3d0;
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}
.brutal-actions {
  display: flex;
  gap: 12px;
}
.btn-brutal-login {
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 16px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
  transition: all 0.15s;
}
.btn-brutal-login:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}
.btn-brutal-cta {
  background: #10a37a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 20px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  transition: all 0.15s;
}
.btn-brutal-cta:hover {
  background: #0d8b67;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}
.btn-brutal-cta:active, .btn-brutal-login:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}
@media (max-width: 768px) {
  .brutal-nav, .btn-brutal-login { display: none; }
}
// Neo-brutalist interaction sound or tactile feedback
console.log("Brutalist Block Header loaded");
Đã sao chép vào bộ nhớ tạm!