1
0
Fork 0
mirror of https://github.com/TheTaz25/denis.ergin.git synced 2025-07-12 22:08:48 +00:00

feat(knowledge-base): Rewrite Navigation, add utils, initial page for knowledge-base

This commit is contained in:
Denis Ergin 2024-10-18 11:51:16 +02:00
parent 20d548bec6
commit d207c35805
11 changed files with 283 additions and 58 deletions

View file

@ -0,0 +1,23 @@
---
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>