Spaces:
Running
Running
discord btn
Browse files
components/editor/header/index.tsx
CHANGED
|
@@ -23,7 +23,6 @@ import {
|
|
| 23 |
TooltipContent,
|
| 24 |
TooltipTrigger,
|
| 25 |
} from "@/components/ui/tooltip";
|
| 26 |
-
import DiscordLogo from "@/assets/discord.svg";
|
| 27 |
import { DiscordIcon } from "@/components/icons/discord";
|
| 28 |
|
| 29 |
export function Header({ isNew }: { isNew: boolean }) {
|
|
@@ -89,7 +88,11 @@ export function Header({ isNew }: { isNew: boolean }) {
|
|
| 89 |
Help
|
| 90 |
</Button>
|
| 91 |
</Link>
|
| 92 |
-
<Link
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
<Button
|
| 94 |
size="xs"
|
| 95 |
variant="bordered"
|
|
|
|
| 23 |
TooltipContent,
|
| 24 |
TooltipTrigger,
|
| 25 |
} from "@/components/ui/tooltip";
|
|
|
|
| 26 |
import { DiscordIcon } from "@/components/icons/discord";
|
| 27 |
|
| 28 |
export function Header({ isNew }: { isNew: boolean }) {
|
|
|
|
| 88 |
Help
|
| 89 |
</Button>
|
| 90 |
</Link>
|
| 91 |
+
<Link
|
| 92 |
+
href="https://discord.gg/KpanwM3vXa"
|
| 93 |
+
target="_blank"
|
| 94 |
+
className="max-lg:hidden"
|
| 95 |
+
>
|
| 96 |
<Button
|
| 97 |
size="xs"
|
| 98 |
variant="bordered"
|
components/public/navigation/index.tsx
CHANGED
|
@@ -12,6 +12,7 @@ import Logo from "@/assets/logo.svg";
|
|
| 12 |
import { useUser } from "@/hooks/useUser";
|
| 13 |
import { UserMenu } from "@/components/user-menu";
|
| 14 |
import { ProTag } from "@/components/pro-modal";
|
|
|
|
| 15 |
|
| 16 |
const navigationLinks = [
|
| 17 |
{
|
|
@@ -96,7 +97,9 @@ export default function Navigation() {
|
|
| 96 |
width={64}
|
| 97 |
height={64}
|
| 98 |
/>
|
| 99 |
-
<p className="font-sans text-white text-xl font-bold">
|
|
|
|
|
|
|
| 100 |
{user?.isPro && <ProTag className="ml-1" />}
|
| 101 |
</Link>
|
| 102 |
<ul className="items-center justify-center gap-6 !hidden">
|
|
@@ -141,7 +144,17 @@ export default function Navigation() {
|
|
| 141 |
<div className="size-1 bg-white rounded-full" />
|
| 142 |
</div>
|
| 143 |
</ul>
|
| 144 |
-
<div className="flex items-center justify-end gap-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
{loading ? (
|
| 146 |
<Button
|
| 147 |
variant="ghostDarker"
|
|
|
|
| 12 |
import { useUser } from "@/hooks/useUser";
|
| 13 |
import { UserMenu } from "@/components/user-menu";
|
| 14 |
import { ProTag } from "@/components/pro-modal";
|
| 15 |
+
import { DiscordIcon } from "@/components/icons/discord";
|
| 16 |
|
| 17 |
const navigationLinks = [
|
| 18 |
{
|
|
|
|
| 97 |
width={64}
|
| 98 |
height={64}
|
| 99 |
/>
|
| 100 |
+
<p className="font-sans text-white text-xl font-bold max-lg:hidden">
|
| 101 |
+
DeepSite
|
| 102 |
+
</p>
|
| 103 |
{user?.isPro && <ProTag className="ml-1" />}
|
| 104 |
</Link>
|
| 105 |
<ul className="items-center justify-center gap-6 !hidden">
|
|
|
|
| 144 |
<div className="size-1 bg-white rounded-full" />
|
| 145 |
</div>
|
| 146 |
</ul>
|
| 147 |
+
<div className="flex items-center justify-end gap-3">
|
| 148 |
+
<Link href="https://discord.gg/KpanwM3vXa" target="_blank">
|
| 149 |
+
<Button
|
| 150 |
+
variant="bordered"
|
| 151 |
+
className="!border-indigo-500 !text-white !bg-indigo-500 shadow-lg shadow-indigo-500/50 hover:shadow-indigo-500/70 transition-all duration-300"
|
| 152 |
+
>
|
| 153 |
+
<DiscordIcon className="size-4 mr-0.5" />
|
| 154 |
+
<span className="max-lg:hidden">Discord Community</span>
|
| 155 |
+
<span className="lg:hidden">Discord</span>
|
| 156 |
+
</Button>
|
| 157 |
+
</Link>
|
| 158 |
{loading ? (
|
| 159 |
<Button
|
| 160 |
variant="ghostDarker"
|