1
0
Fork 0
mirror of https://github.com/TheTaz25/denis.ergin.git synced 2025-07-07 02:38:47 +00:00
denis.ergin/src/components/atoms/Card.astro

23 lines
No EOL
385 B
Text

---
interface Props {
to: string;
class?: string;
}
const { to, class: className, ...rest } = Astro.props;
---
<a class:list={["card", className]} href={to} {...rest}>
<slot />
</a>
<style>
.card {
background-color: var(--navigation-background-color);
display: inline-block;
padding: 1rem;
border-radius: 0.25rem;
max-width: 80vw;
text-decoration: none;
}
</style>