File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change
1
+ <script setup lang="ts">
2
+ import useDark from ' ./use-dark'
3
+
4
+ const isDark = useDark ()
5
+ </script >
6
+
1
7
<template >
2
8
<article
3
- class =" flex justify-between flex-col lg:flex-row-reverse items-center w-full max-w-6xl mx-auto my-8 gap-12"
4
- >
9
+ class =" flex justify-between flex-col lg:flex-row-reverse items-center w-full max-w-6xl mx-auto my-8 gap-12" >
5
10
<section class =" flex flex-col w-full max-w-lg" >
6
11
<header class =" flex flex-col justify-center items-start" >
7
- <h2
8
- class =" text-2xl md:text-3xl leading-tight font-medium text-gray-400 mb-2"
9
- >
12
+ <h2 class =" text-2xl md:text-3xl leading-tight font-medium text-gray-400 mb-2" >
10
13
Can't find what you're looking for?
11
14
</h2 >
12
15
<h2
13
- class =" text-5xl leading-tight font-semibold text-gray-400 mb-4 bg-clip-text text-transparent bg-gradient-to-tl from-fuchsia-500 to-blue-500"
14
- >
16
+ class =" text-5xl leading-tight font-semibold text-gray-400 mb-4 bg-clip-text text-transparent bg-gradient-to-tl from-fuchsia-500 to-blue-500" >
15
17
Join the community
16
18
</h2 >
17
19
</header >
23
25
</p >
24
26
</section >
25
27
<section class =" flex flex-col w-full max-w-xl rounded-lg overflow-hidden" >
26
- <iframe
27
- class =" w-full h-64"
28
- src =" https://discord.com/widget?id=1044804142461362206&theme=dark"
29
- allowtransparency =" true"
30
- frameborder =" 0"
31
- sandbox =" allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
32
- />
28
+ <iframe class =" w-full h-64"
29
+ :src =" 'https://discord.com/widget?id=1044804142461362206&theme=' + (isDark ? 'dark' : 'light')"
30
+ allowtransparency =" true" frameborder =" 0"
31
+ sandbox =" allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" />
33
32
</section >
34
33
</article >
35
34
</template >
You can’t perform that action at this time.
0 commit comments