Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vtbag/website. The @vtbag website. ⭐️ Please star to support this work! ⭐️
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364---export interface Props { title: string; description: string; stable?: boolean; icon?: any; href: string;}const { title, description, icon, href, stable=true } = Astro.props;---
<a class="utensil" {href}> <div class="utensil-content"> <p><small>{stable?<b style='color:darkolivegreen'>stable</b>:<i style='color:darkgoldenrod'>experimental</i>}</small></p> <h2 class="utensil-title">{icon} {title}</h2> <p class="utensil-description">{description}</p> </div></a>
<style is:global> :root { --utensil-bg: light-dark(#fff, #333); --utensil-border: light-dark(#ddd, #444); --utensil-shadow: light-dark( rgba(128, 128, 128, 0.5), rgba(128, 128, 128, 0.9) ); --utensil-title: light-dark(333, #ccc); --utensil-description: light-dark(#335, #cce); --utensil-date: light-dark(#777, #bbb); }
.utensil { display: block; text-wrap: balance; background-color: var(--utensil-bg); border: 1px solid var(--utensil-border); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px var(--utensil-shadow); transition: all 0.15s ease; text-decoration: none; &:hover { box-shadow: 3px 4px 8px var(--utensil-shadow); transform: translate(-4px, -4px); } }
.utensil-content { padding: 16px; }
.utensil-title { margin: 0; font-size: 1.5em; color: var(--utensil-title); }
.utensil-description { margin: 8px 0 0; color: var(--utensil-description); }</style>