x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="card flex flex-col overflow-hidden p-0"> <figure> <img alt="Event cover" class="aspect-widescreen i-full object-cover" style="filter: var(--brightness-75) var(--grayscale)" src="/assets/unsplash-4-291073d3.webp" /> </figure> <div class="flex flex-col gap p-4"> <div class="flex items-start gap"> <div class="flex flex-col flex-item-grow"> <h3 class="font-medium leading-none mbe-1">Design systems meetup</h3> <p class="text-sm text-subtle">A practical talk on component APIs, accessibility, and shipping faster.</p> </div> <div class="badge badge--secondary">Featured</div> </div> <div class="card__footer flex"> <button type="button" class="btn btn--primary flex-1">View Event</button> </div> </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="card flex flex-col overflow-hidden p-0"> <figure> <%= image_tag "unsplash-4.webp", alt: "Event cover", class: "aspect-widescreen i-full object-cover", style: "filter: var(--brightness-75) var(--grayscale)" %> </figure> <div class="flex flex-col gap p-4"> <div class="flex items-start gap"> <div class="flex flex-col flex-item-grow"> <h3 class="font-medium leading-none mbe-1">Design systems meetup</h3> <p class="text-sm text-subtle">A practical talk on component APIs, accessibility, and shipping faster.</p> </div> <div class="badge badge--secondary">Featured</div> </div> <div class="card__footer flex"> <button type="button" class="btn btn--primary flex-1">View Event</button> </div> </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.card { --card-padding: var(--size-4); background-color: var(--color-surface); border-radius: var(--rounded-xl); border-width: var(--border); box-shadow: var(--shadow-sm); padding: var(--card-padding, var(--size-4));}.card__footer { background-color: rgb(from var(--color-border-light) r g b / .5); border-block-start-width: var(--border); margin-block-end: calc(var(--card-padding) * -1); margin-inline: calc(var(--card-padding) * -1); padding: var(--card-padding);}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.