Medien rechts

Medien rechts: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.

horizontalmedia-rightlightsplit

Weekly digest

The five links our team argued about this week.

CSS
.card-009 {
  display: grid;
  grid-template-columns: 1fr 160px;
  width: 440px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  font-family: system-ui,sans-serif;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,.08)
}
.card-009__body {
  padding: 22px
}
.card-009 h3 {
  margin: 0 0 6px;
  font-size: 18px
}
.card-009 p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #475569
}
.card-009 button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}
.card-009 button:hover {
  background: #1e293b
}
.card-009__img {
  background: linear-gradient(200deg,#c7d2fe,#6366f1);
  clip-path: polygon(18% 0,100% 0,100% 100%,0 100%)
}
.card-009 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-009">
  <div class="card-009__body">
    <h3>Weekly digest</h3>
    <p>The five links our team argued about this week.</p>
    <button>Subscribe</button>
  </div>
  <div class="card-009__img"></div>
</article>
Prompt

Erstelle eine 440px Card mit zweispaltigem Grid (1fr und 160px), weißer Hintergrund, 16px Radius, Schatten 0 2px 8px rgba(0,0,0,.08). Linker Body mit 22px Padding: 18px Titel #0f172a, 14px Text #475569, ein dunkler pillenartiger Button (#0f172a, 8px Radius, 13px semibold weiß). Die rechte Spalte ist ein Bildplatzhalter mit 200deg Gradient #c7d2fe zu #6366f1, beschnitten mit einem diagonalen clip-path polygon(18% 0,100% 0,100% 100%,0 100%), sodass er schräg in den Text ragt.