fix pre-footer

This commit is contained in:
Jesse Winton
2025-04-09 08:59:56 -04:00
parent bae2aeec18
commit 558b894599
3 changed files with 108 additions and 130 deletions

View File

@@ -1,11 +1,4 @@
<script lang="ts">
import { classNames } from '$lib/utils/classnames';
import { type VariantProps, cva } from 'cva';
import type { Snippet } from 'svelte';
import type { Action } from 'svelte/action';
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
import { trackEvent, type TrackEventArgs } from '$lib/actions/analytics';
<script lang="ts" module>
// TODO: replace _button.scss with Tailwind classes for long-term maintainability
const button = cva(['web-button'], {
variants: {
@@ -20,6 +13,17 @@
}
});
export type Variant = VariantProps<typeof button>['variant'];
</script>
<script lang="ts">
import { classNames } from '$lib/utils/classnames';
import { type VariantProps, cva } from 'cva';
import type { Snippet } from 'svelte';
import type { Action } from 'svelte/action';
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
import { trackEvent, type TrackEventArgs } from '$lib/actions/analytics';
type ButtonOrAnchorProps =
| (HTMLButtonAttributes & { href?: undefined })
| (HTMLAnchorAttributes & { href: string });