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:
parent
20d548bec6
commit
d207c35805
11 changed files with 283 additions and 58 deletions
23
src/components/atoms/Card.astro
Normal file
23
src/components/atoms/Card.astro
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue