Zeitstreifen
Zeitstreifen: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
Frontend after hours
Lightning talks, then pizza. Bring a demo or a question.
CSS
.card-057 {
width: 300px;
padding: 0 0 18px;
background: #111;
border-radius: 16px;
font-family: system-ui,sans-serif;
color: #fafafa;
overflow: hidden
}
.card-057 header {
display: flex;
justify-content: space-between;
padding: 12px 20px;
background: linear-gradient(90deg,#f59e0b,#ef4444);
color: #111;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em
}
.card-057 h3 {
margin: 16px 20px 6px;
font-size: 20px
}
.card-057 p {
margin: 0 20px 16px;
font-size: 14px;
line-height: 1.5;
color: #a3a3a3
}
.card-057 footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px
}
.card-057__loc {
font-size: 12px;
color: #d4d4d4;
padding: 4px 10px;
border: 1px solid #333;
border-radius: 999px
}
.card-057 button {
padding: 8px 18px;
border: 0;
border-radius: 8px;
background: #fafafa;
color: #111;
font-weight: 700;
font-size: 13px;
cursor: pointer;
transition: background .15s
}
.card-057 button:hover {
background: #f59e0b
}
.card-057 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-057">
<header><time>Thu 12 Nov</time><span>19:00 to 21:30</span></header>
<h3>Frontend after hours</h3>
<p>Lightning talks, then pizza. Bring a demo or a question.</p>
<footer><span class="card-057__loc">Online</span><button>RSVP</button></footer>
</article>Prompt
Erstelle eine 300px dunkle Event-Card auf #111 mit 16px Radius. Ein oberer Streifen mit 90deg Gradient #f59e0b zu #ef4444 hält das Datum "Thu 12 Nov" links und die Zeit "19:00 to 21:30" rechts in 12px fetten Versalien #111. Darunter: 20px weißer Titel, 14px #a3a3a3 Beschreibung und eine Footer-Zeile mit einer kleinen umrandeten Pille "Online" (1px #333 Rahmen) und einem cremeweißen RSVP-Button, der beim Hover bernsteinfarben #f59e0b wird.