File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { CSSProperties } from ' nuxt/dist/app/compat/capi ' ;
2
+ import type { CSSProperties } from " vue " ;
3
3
4
- const parentEl = useParentElement ()
5
-
6
- const { x, y } = useMouse ({ target: parentEl , })
4
+ const parentEl = useParentElement ();
7
5
6
+ const { x, y } = useMouse ({ target: parentEl });
8
7
9
8
const radialBgStyle = computed ((): CSSProperties => {
10
9
return {
11
10
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
+ });
17
14
</script >
18
15
19
16
<template >
20
17
<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
+ />
23
23
24
24
<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
+ >
29
32
<slot />
30
33
</div >
31
34
</div >
You can’t perform that action at this time.
0 commit comments