Platzhalter Neu hinzufügen
Platzhalter Neu hinzufügen: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.card-093 {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
width: 240px;
height: 180px;
background: transparent;
border: 2px dashed #d1d5db;
border-radius: 16px;
font-family: system-ui,sans-serif;
color: #6b7280;
cursor: pointer;
transition: border-color .2s,background .2s,color .2s
}
.card-093__plus {
width: 40px;
height: 40px;
display: grid;
place-items: center;
margin-bottom: 6px;
border-radius: 50%;
background: #f3f4f6;
font-size: 24px;
line-height: 1;
color: #374151;
transition: background .2s,color .2s,transform .2s
}
.card-093 b {
font-size: 14px;
color: #374151
}
.card-093 small {
font-size: 12px
}
.card-093:hover {
border-color: #2563eb;
background: #eff6ff;
color: #2563eb
}
.card-093:hover .card-093__plus {
background: #2563eb;
color: #fff;
transform: rotate(90deg)
}
.card-093:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 2px
}
HTML
<button class="card-093" type="button">
<span class="card-093__plus">+</span>
<b>New project</b>
<small>Start from a blank canvas</small>
</button>Prompt
Baue eine 240x180px "Neu hinzufügen" Platzhalter-Card als Button: transparenter Hintergrund, 2px gestrichelter #d1d5db Rahmen, 16px Radius, zentrierte Spalte mit einem 40px runden "+" in #f3f4f6, einem 14px fetten "New project" und einem 12px #6b7280 Hinweis. Beim Hover werden Rahmen und Text blau #2563eb, der Hintergrund #eff6ff, und der Plus-Kreis füllt sich blau mit weißem Text, während er sich um 90deg dreht. Sichtbare Focus-Outline in Blau.