Pens

Bento-Grid Modular Card Footer

UI Component bởi acmatvjrus
Mở Studio
<div class="bento-footer-wrap">
  <footer class="bento-footer">
    <div class="bento-grid-container">
      <!-- Card 1: Brand & Bio -->
      <div class="bento-card card-brand">
        <div class="b-header">
          <span class="icon">🍱</span>
          <h3>Komorebi<strong>Kit</strong></h3>
        </div>
        <p>Thư viện UI/UX cao cấp xây dựng cho các nhà sáng tạo nội dung & nhà phát triển hiện đại.</p>
        <span class="version-tag">Release v3.0.2 Stable</span>
      </div>
      
      <!-- Card 2: Quick Links -->
      <div class="bento-card card-links">
        <h4>Tài Liệu</h4>
        <div class="card-links-list">
          <a href="#">Bắt đầu nhanh →</a>
          <a href="#">Thành phần UI →</a>
          <a href="#">Mẫu template →</a>
          <a href="#">Icon pack SVG →</a>
        </div>
      </div>
      
      <!-- Card 3: Office / Contact -->
      <div class="bento-card card-office">
        <h4>Văn Phòng Sài Gòn</h4>
        <p class="address">Tầng 18, Toà nhà Bitexco, Bến Nghé, Quận 1, TP. Hồ Chí Minh</p>
        <a href="tel:+84988888888" class="phone-link">📞 +84 (0) 988 888 888</a>
      </div>
      
      <!-- Card 4: Newsletter Box -->
      <div class="bento-card card-newsletter">
        <h4>Gia nhập bản tin UI</h4>
        <p>Nhận các mẫu component mới mỗi tuần trực tiếp qua email.</p>
        <div class="inline-sub">
          <input type="email" placeholder="[email protected]">
          <button onclick="alert('Đã đăng ký!')">Gửi</button>
        </div>
      </div>
    </div>
    
    <div class="bento-foot-strip">
      <span>© 2026 KOMOREBI UI LABS. MIT LICENSE.</span>
      <div class="links">
        <a href="#">Security</a>
        <a href="#">Telemetry</a>
        <a href="#">Privacy</a>
      </div>
    </div>
  </footer>
</div>
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}
.bento-footer-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 20px;
  box-sizing: border-box;
}
.bento-footer {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.bento-grid-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 16px;
  margin-bottom: 20px;
}
.bento-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}
.b-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.b-header h3 {
  margin: 0;
  font-size: 1.2rem;
}
.b-header strong { color: #10a37a; }
.card-brand p {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px;
}
.version-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: #eefcf6;
  color: #10a37a;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.bento-card h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
}
.card-links-list a {
  display: block;
  color: #475569;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 500;
  transition: color 0.2s;
}
.card-links-list a:hover { color: #10a37a; }
.card-office .address {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px;
}
.phone-link {
  color: #10a37a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.card-newsletter p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 14px;
}
.inline-sub {
  display: flex;
  gap: 8px;
}
.inline-sub input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
}
.inline-sub button {
  background: #10a37a;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
}
.bento-foot-strip {
  display: flex;
  justify-content: space-between;
  padding: 10px 8px;
  font-size: 0.78rem;
  color: #64748b;
}
.bento-foot-strip a {
  color: #64748b;
  text-decoration: none;
  margin-left: 16px;
}
.bento-foot-strip a:hover { color: #0f172a; }
@media (max-width: 900px) {
  .bento-grid-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bento-grid-container { grid-template-columns: 1fr; }
  .bento-foot-strip { flex-direction: column; gap: 8px; }
}
// Bento modular interactions
console.log("Bento Card Footer ready");
Đã sao chép vào bộ nhớ tạm!