From 7d23438e21a3568350192cbbaced267ad182c47e Mon Sep 17 00:00:00 2001 From: loverustfs Date: Sat, 1 Aug 2026 23:40:19 +0800 Subject: [PATCH] feat: add public demo safety notice --- app/demo/page.tsx | 181 +++++++++++++++++++++ components/business/buttons/contact-us.tsx | 2 +- components/business/buttons/demo-link.tsx | 5 +- 3 files changed, 185 insertions(+), 3 deletions(-) create mode 100644 app/demo/page.tsx diff --git a/app/demo/page.tsx b/app/demo/page.tsx new file mode 100644 index 0000000..f6340ef --- /dev/null +++ b/app/demo/page.tsx @@ -0,0 +1,181 @@ +import type { Metadata } from "next"; +import { + ArrowLeft, + ArrowUpRight, + Clock3, + DatabaseZap, + KeyRound, + ShieldAlert, +} from "lucide-react"; +import Link from "next/link"; + +const DEMO_URL = "https://play.rustfs.com"; + +const notices = [ + { + description: + "Sign in with the shared administrator account shown below. These public credentials are for this demo only.", + icon: KeyRound, + label: "Access", + title: "Use the demo credentials", + }, + { + description: + "The environment resets every day at 00:00 UTC. All buckets, objects, and configuration changes are discarded.", + icon: DatabaseZap, + label: "Retention", + title: "The demo resets daily", + }, + { + description: + "This is a public, shared environment. Do not upload confidential, sensitive, personal, or important data.", + icon: ShieldAlert, + label: "Security", + title: "Upload test data only", + }, +]; + +export const metadata: Metadata = { + title: "RustFS Demo | Public Demo Environment", + description: + "Review the RustFS public demo credentials, daily reset schedule, and data safety notice before entering the demo environment.", + robots: { + index: true, + follow: true, + }, +}; + +export default function DemoPage() { + return ( +
+
+
+
+
+
+

+ RustFS public demo +

+ + +
+ +
+

+ A quick note before you enter. +

+

+ Explore the RustFS Console in a live sandbox. Please review the + access details and data policy before continuing. +

+
+ +
+
+ + Demo credentials + +
+
+
+
Username
+
+ rustfsadmin +
+
+
+
Password
+
+ rustfsadmin +
+
+
+
+ +
+ + Enter the public demo + + +
+
+ + +
+
+
+
+ ); +} diff --git a/components/business/buttons/contact-us.tsx b/components/business/buttons/contact-us.tsx index 650dcbc..537f3d7 100644 --- a/components/business/buttons/contact-us.tsx +++ b/components/business/buttons/contact-us.tsx @@ -10,7 +10,7 @@ export default function ContactUsButton({ className }: { return ( {'Request Demo'} diff --git a/components/business/buttons/demo-link.tsx b/components/business/buttons/demo-link.tsx index accb449..a443352 100644 --- a/components/business/buttons/demo-link.tsx +++ b/components/business/buttons/demo-link.tsx @@ -2,13 +2,14 @@ import { cn } from "@/lib/utils"; import { Play } from "lucide-react"; +import Link from "next/link"; export default function DemoLink({ className }: { className?: string | string[] }) { return ( - + {'View Demo'} - + ) }