diff --git a/src/components/ui/alert/Alert.vue b/src/components/ui/alert/Alert.vue new file mode 100644 index 0000000..9feea31 --- /dev/null +++ b/src/components/ui/alert/Alert.vue @@ -0,0 +1,17 @@ + + + + + + + diff --git a/src/components/ui/alert/AlertDescription.vue b/src/components/ui/alert/AlertDescription.vue new file mode 100644 index 0000000..afeaa01 --- /dev/null +++ b/src/components/ui/alert/AlertDescription.vue @@ -0,0 +1,14 @@ + + + + + + + diff --git a/src/components/ui/alert/AlertTitle.vue b/src/components/ui/alert/AlertTitle.vue new file mode 100644 index 0000000..1f98d11 --- /dev/null +++ b/src/components/ui/alert/AlertTitle.vue @@ -0,0 +1,14 @@ + + + + + + + diff --git a/src/components/ui/alert/index.ts b/src/components/ui/alert/index.ts new file mode 100644 index 0000000..1106fd0 --- /dev/null +++ b/src/components/ui/alert/index.ts @@ -0,0 +1,24 @@ +import type { VariantProps } from "class-variance-authority" +import { cva } from "class-variance-authority" + +export { default as Alert } from "./Alert.vue" +export { default as AlertDescription } from "./AlertDescription.vue" +export { default as AlertTitle } from "./AlertTitle.vue" + +export const alertVariants = cva( + "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", + { + variants: { + variant: { + default: "bg-background text-foreground", + destructive: + "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + }, + }, + defaultVariants: { + variant: "default", + }, + }, +) + +export type AlertVariants = VariantProps diff --git a/src/views/EventsView.vue b/src/views/EventsView.vue index 79fb3a1..b060aac 100644 --- a/src/views/EventsView.vue +++ b/src/views/EventsView.vue @@ -3,6 +3,7 @@ import { useI18n } from 'vue-i18n' import { RouterLink } from 'vue-router' import { Button } from '@/components/ui/button' import { Card, CardContent } from '@/components/ui/card' +import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' const { t } = useI18n() @@ -48,14 +49,14 @@ const events = [ {{ t('events.page.lede') }} - + + + {{ t('events.page.calendarNote') }} + +
{{ t('events.page.lede') }}