mirror of
https://github.com/LucasVbr/notion-widgets.git
synced 2026-05-16 17:21:55 +00:00
Edit Widgets folders
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
import {WidgetState} from '../models/WidgetState';
|
||||
type Props = {
|
||||
widget: WidgetState
|
||||
}
|
||||
|
||||
const {widget}: Props = Astro.props;
|
||||
---
|
||||
|
||||
<a href={widget.url} class="p-4 rounded-2xl border-[1px] shadow-md active:scale-95 transition-all ease-in-out duration-100">
|
||||
<h2 class="font-bold text-xl">{widget.data.name}</h2>
|
||||
{widget.data.description && <p>{widget.data.description}</p>}
|
||||
</a>
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
import {WidgetState} from '../models/WidgetState';
|
||||
import WidgetCard from './WidgetCard.astro';
|
||||
type Props = {
|
||||
widgets: WidgetState[]
|
||||
}
|
||||
|
||||
const {widgets}: Props = Astro.props;
|
||||
---
|
||||
|
||||
<div class="flex gap-2">
|
||||
{widgets.map(widget => <WidgetCard widget={widget}/>)}
|
||||
</div>
|
||||
Reference in New Issue
Block a user