feat: add Card and Navbar components with styles
- Implemented Card component with cover, title, subtitle, content, and footer slots. - Added styles for Card component in _card.scss. - Created Navbar component with brand and links, including styles in _navbar.scss. - Updated index.astro to include new Card and Navbar components.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
export interface Props {
|
||||
brand?: string;
|
||||
}
|
||||
const { brand = "Nova" } = Astro.props;
|
||||
---
|
||||
|
||||
<header class="navbar">
|
||||
<div class="navbar__brand">
|
||||
<span class="navbar__mark"></span>
|
||||
<span class="navbar__title">{brand}</span>
|
||||
</div>
|
||||
<nav class="navbar__links"><slot /></nav>
|
||||
<div class="navbar__right"><slot name="right" /></div>
|
||||
</header>
|
||||
|
||||
<style lang="scss">
|
||||
@use "./_navbar.scss";
|
||||
</style>
|
||||
Reference in New Issue
Block a user