Restructure shared Astro sources and import aliases (#2737)

This commit is contained in:
Paweł Kuna
2026-07-30 23:58:48 +02:00
committed by GitHub
parent 0f8dcb0a3c
commit ad2ed849dd
492 changed files with 1469 additions and 1714 deletions
+28
View File
@@ -0,0 +1,28 @@
---
import Icon from './Icon.astro';
interface Props {
text?: string;
top?: boolean;
left?: boolean;
bottom?: boolean;
bookmark?: boolean;
color?: string;
filled?: boolean;
}
const { text, top, left, bottom, bookmark, color, filled } = Astro.props;
const classes = [
'ribbon',
top && 'ribbon-top',
left && 'ribbon-start',
bottom && 'ribbon-bottom',
bookmark && 'ribbon-bookmark',
color && `bg-${color}`,
]
---
<div class:list={classes}>
{text ? text : <Icon name="star" type={filled ? 'filled' : 'outline'} />}
</div>