Skip to content

Commit c357109

Browse files
committed
fix: correctly import CSSProperties as type
1 parent dd6e9c0 commit c357109

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

layouts/default.vue

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
<script setup lang="ts">
2-
import { CSSProperties } from 'nuxt/dist/app/compat/capi';
2+
import type { CSSProperties } from "vue";
33
4-
const parentEl = useParentElement()
5-
6-
const { x, y } = useMouse({ target: parentEl, })
4+
const parentEl = useParentElement();
75
6+
const { x, y } = useMouse({ target: parentEl });
87
98
const radialBgStyle = computed((): CSSProperties => {
109
return {
1110
background: `radial-gradient(600px at ${x.value}px ${y.value}px, #36E4DA, transparent 80%)`,
12-
opacity: .15,
13-
}
14-
})
15-
16-
11+
opacity: 0.15,
12+
};
13+
});
1714
</script>
1815

1916
<template>
2017
<div class="relative group/spotlight">
21-
<div id="mouseLight" class="pointer-events-none fixed inset-0 z-30 transition-opacity duration-300 lg:absolute"
22-
:style="radialBgStyle" />
18+
<div
19+
id="mouseLight"
20+
class="pointer-events-none fixed inset-0 z-30 transition-opacity duration-300 lg:absolute"
21+
:style="radialBgStyle"
22+
/>
2323

2424
<div
25-
class="mx-auto min-h-screen max-w-screen-xl px-6 py-12 text-slate-400 font-space bg-[#002937] md:px-12 md:py-20 lg:px-24 lg:py-0">
26-
<a href="#content"
27-
class="content absolute left-0 top-0 block -translate-x-full rounded bg-gradient-to-br from-teal-400 via-blue-500 to-purple-600 px-4 py-3 text-sm font-bold uppercase tracking-widest text-white focus-visible:translate-x-0">Skip
28-
to Main Content</a>
25+
class="mx-auto min-h-screen max-w-screen-xl px-6 py-12 text-slate-400 font-space bg-[#002937] md:px-12 md:py-20 lg:px-24 lg:py-0"
26+
>
27+
<a
28+
href="#content"
29+
class="content absolute left-0 top-0 block -translate-x-full rounded bg-gradient-to-br from-teal-400 via-blue-500 to-purple-600 px-4 py-3 text-sm font-bold uppercase tracking-widest text-white focus-visible:translate-x-0"
30+
>Skip to Main Content</a
31+
>
2932
<slot />
3033
</div>
3134
</div>

0 commit comments

Comments
 (0)