From 1b1a9152c5f3b4694650ce065094c59acb0d2e5e Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Sat, 18 Jan 2025 18:38:19 -0600 Subject: [PATCH 1/2] feat: add coreboxx as a minecraft account verifier --- src/components/misc/InfoClaim.tsx | 119 +++++++++++++++++++++++------- 1 file changed, 91 insertions(+), 28 deletions(-) diff --git a/src/components/misc/InfoClaim.tsx b/src/components/misc/InfoClaim.tsx index 5d1a363..8af94a4 100644 --- a/src/components/misc/InfoClaim.tsx +++ b/src/components/misc/InfoClaim.tsx @@ -29,44 +29,107 @@ */ "use client"; - -import { useState } from "react"; -import { TextCopyComp } from "./TextCopyComp"; -import { ChevronDown, ChevronUp } from "lucide-react"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs"; +import { Badge } from "../ui/badge"; +import Link from "next/link"; +import { Alert, AlertDescription, AlertTitle } from "../ui/alert"; +import { ServerOff } from "lucide-react"; export function ShowInfo() { - const [open, setOpen] = useState(false); return (
- {open == false && ( -
setOpen(true)} - > - More info +
+ Choose a method: + +
+ + + CoreBoxx Recommended + + + MHSFPV + +
- )} - {open == true && ( - <> +

- By claiming your account, you can add Markdown descriptions and{" "} - custom color schemes to your server (and more), making it stand out. - To get started, join the server below on your Minecraft account. - Enter the code in chat in the website, and you will link your - account. You may need to go into the lobby and start the server. + + CoreBoxx + {" "} + has partnered with us to have an integrated account linking feature, + which is also open all day.


- +

+ + 1 + + + Join CoreBoxx + + CoreBoxx.minehut.gg + +

+

+ + 2 + + + + Link your account using /mhsf + + +

+

+ + 3 + + + Input the code returned below + +

+
+ + + + Server isn't online all day + + While joining MHSFPV, you may need to go into the lobby to start + the server to then join. + +
+

+ MHSFPV is a Minehut server dedicated to linking your account on + MHSF. +


-
setOpen(false)} - > - Less info -
- - )} +

+ + 1 + + + Join MHSFPV + + MHSFPV.minehut.gg + +

+

+ + 2 + + + Input the code in chat below + +

+
+
); } From 9b5d149b35e925b233babd431f103c81a15d5c52 Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Sat, 18 Jan 2025 18:39:27 -0600 Subject: [PATCH 2/2] fix: add alert --- src/components/ui/alert.tsx | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/components/ui/alert.tsx diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx new file mode 100644 index 0000000..5afd41d --- /dev/null +++ b/src/components/ui/alert.tsx @@ -0,0 +1,59 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const alertVariants = cva( + "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", + { + variants: { + variant: { + default: "bg-background text-foreground", + destructive: + "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +const Alert = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes & VariantProps +>(({ className, variant, ...props }, ref) => ( +
+)) +Alert.displayName = "Alert" + +const AlertTitle = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +AlertTitle.displayName = "AlertTitle" + +const AlertDescription = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( +
+)) +AlertDescription.displayName = "AlertDescription" + +export { Alert, AlertTitle, AlertDescription }