blankify

This tiny form grows entire businesses and it's simpler than you think #newsletter #subscribe #css

Source Code

index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Newsletter</title>
  <link rel="stylesheet" href="styles.css"/>
</head>
<body>
  <form class="card">
    <div class="heading">
      <span>📩</span>
      <h2>Get notified</h2>
    </div>
    <p class="subtitle">New features, updates, and resources straight to your inbox. Sent once a week.</p>
    <div class="input-wrap">
      <input type="email" placeholder="you@example.com"/>
      <button type="submit">Subscribe</button>
    </div>
    <div class="footer">
      <span>No spam</span>
      <span>·</span>
      <span>Unsubscribe anytime</span>
    </div>
  </form>
</body>
</html>
styles.css
* {
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, #060912, #0a1020 40%, #080c18);
  font-family: system-ui, sans-serif;
}

.card {
  width: 400px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 28px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
}

.subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 24px;
}

.input-wrap {
  display: flex;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}

.input-wrap:focus-within {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.06);
}

input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  color: #e0e7ff;
  font-size: 14px;
  outline: none;
}

button {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  background-size: 200% 200%;
  transition: background-position 0.3s;
}

button:hover {
  background-position: right center;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}