svrjs-nextjs-website/constants/index.tsx

272 lines
5.6 KiB
TypeScript
Raw Normal View History

2024-07-28 12:52:13 +02:00
import {
BadgeAlert,
BarChart4,
Bug,
2024-08-01 16:32:57 +02:00
BugIcon,
2024-07-28 12:52:13 +02:00
Cog,
File,
Mail,
ShieldCheck,
WebhookIcon,
} from "lucide-react";
2024-06-20 17:02:11 +02:00
import { Download, Home, Settings, User } from "lucide-react";
2024-06-15 17:30:51 +02:00
2024-07-28 11:02:06 +02:00
// Navbar
2024-06-15 14:55:33 +02:00
export const NAVBAR = {
2024-06-30 20:42:13 +02:00
centerLinks: [
{
href: "/",
target: "_self",
label: "Home",
},
{
href: "/docs",
target: "_self",
label: "Docs",
},
{
2024-07-05 21:33:41 +02:00
href: "/blog",
2024-06-30 20:42:13 +02:00
target: "_self",
2024-07-05 21:33:41 +02:00
label: "Blog",
2024-06-30 20:42:13 +02:00
},
{
2024-07-28 16:47:09 +02:00
href: "/forum",
2024-06-30 20:42:13 +02:00
target: "_self",
2024-07-28 16:47:09 +02:00
label: "Forum",
2024-06-30 20:42:13 +02:00
},
],
rightLinks: [
{
label: "Git",
target: "_blank",
href: "https://git.svrjs.org/",
},
],
2024-06-15 14:55:33 +02:00
};
2024-07-28 11:02:06 +02:00
// About section Stats
2024-06-15 14:55:33 +02:00
export const stats = [
2024-06-30 20:42:13 +02:00
{
title: "Downloads",
count: 69,
},
{
title: "Users",
count: 42,
},
{
title: "Stars",
count: 6,
},
{
title: "Products",
count: 2,
},
2024-06-15 14:55:33 +02:00
];
2024-06-15 17:30:51 +02:00
2024-07-28 11:02:06 +02:00
// Features Section Home Page
2024-06-15 17:30:51 +02:00
export const Features = [
2024-06-30 20:42:13 +02:00
{
icon: <ShieldCheck className="w-10 h-10 text-primary" />,
title: "Complete Secured ",
description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor",
},
{
icon: <BadgeAlert className="w-10 h-10 text-primary" />,
title: "Best Support",
description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor",
},
{
icon: <BarChart4 className="w-10 h-10 text-primary" />,
title: "Most Scalable ",
description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor",
},
{
icon: <Cog className="w-10 h-10 text-primary" />,
title: "Fully Configurable ",
description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor",
},
2024-06-15 17:30:51 +02:00
];
2024-06-15 18:41:36 +02:00
2024-07-28 11:02:06 +02:00
// FAQS
2024-06-15 18:41:36 +02:00
export const questions = [
2024-06-30 20:42:13 +02:00
{
key: "item-1",
question: "What is a web server?",
answer:
"A web server is computer software that accepts HTTP requests and serves websites. Web servers can also be underlying hardware running web server software.",
},
{
key: "item-2",
question: "What is SVR.JS?",
answer:
"SVR.JS is web server software running on Node.JS that can host both static and dynamic content. With additional mods, SVR.JS can be used for different types of dynamic content and can even be used as a forward or reverse proxy. SVR.JS is licensed under a permissive MIT/X11 license",
},
{
key: "item-3",
question: "How was SVR.JS created?",
answer:
"Someone in 2018 wanted to create a website, but he didnt know about setting up popular web server software like Apache httpd, NGINX, or IIS... So he created his own web server in Node.JS to serve his website! And he saved it in a file called svr.js. Since then, this web server has been gradually turned from a web server intended for one website into a general-purpose web server, which is what SVR.JS is today!",
},
{
key: "item-4",
question: "How did SVR.JS get its name?",
answer:
"SVR.JS got its name from the original name of the server script: svr.js, one of many generic file names for a server written in JavaScript.",
},
{
key: "item-5",
question: "What is Node.JS?",
answer:
"Node.JS is an asynchronous event-driven JavaScript runtime built on Chromiums V8 engine. Node.JS is designed to build scalable network applications.",
},
{
key: "item-6",
question: "How can I use SVR.JS?",
answer:
"You can read the documents to learn how to use the SVR.JS web server.",
},
2024-06-15 18:41:36 +02:00
];
2024-06-15 20:37:01 +02:00
2024-07-28 11:02:06 +02:00
// Footer
2024-06-15 20:37:01 +02:00
export const FOOTERLINKS = {
2024-06-30 20:42:13 +02:00
otherPages: [
{ href: "/", label: "Home" },
{ href: "/contact", label: "Contact" },
{ href: "/blog", label: "Blog" },
{ href: "/forum", label: "Forum" },
],
plans: [
{ href: "/docs", label: "Docs" },
{ href: "/downloads", label: "Downloads" },
{ href: "/mods", label: "Svrjs Mods" },
2024-07-28 09:51:35 +02:00
{ href: "/changelogs", label: "Change Logs" },
2024-06-30 20:42:13 +02:00
],
2024-07-28 11:59:38 +02:00
additional: [
{ href: "/contribute", label: "Contribute" },
{ href: "/vulnerabilities", label: "Vulnerabilities" },
2024-08-01 16:32:57 +02:00
{ href: "https://git.svrjs.org", label: "Git Server" },
2024-07-28 11:59:38 +02:00
{ href: "http://status.svrjs.org", label: "Server Uptime" },
],
2024-06-30 20:42:13 +02:00
social: {
supportText: "Support Us on Socials",
},
footerBottom: {
2024-07-28 09:50:52 +02:00
termsofService: {
href: "/tos",
2024-07-28 11:02:06 +02:00
label: "Terms of Service",
2024-07-28 09:50:52 +02:00
},
privacyPolicy: {
href: "/privacy-policy",
label: "Privacy Policy",
2024-06-30 20:42:13 +02:00
},
rightsReserved: {
2024-07-28 11:22:00 +02:00
href: "https://svrjs.org/",
2024-06-30 20:42:13 +02:00
label: "SVRJS",
},
},
2024-06-15 20:37:01 +02:00
};
2024-06-16 15:37:26 +02:00
2024-07-28 11:02:06 +02:00
// Admin Dashboard
2024-06-20 17:02:11 +02:00
export const AdminLinks = [
2024-06-30 20:42:13 +02:00
{
name: "Dashboard",
url: "/admin",
icon: Home,
},
{
name: "Downloads",
url: "/admin/downloads",
icon: Download,
},
{
name: "Mods",
url: "/admin/mods",
icon: User,
},
{
name: "Logs",
url: "/admin/changelogs",
icon: Settings,
},
2024-07-25 22:09:06 +02:00
{
name: "MultiLogs",
url: "/admin/multi-logs",
icon: File,
},
2024-08-01 16:32:57 +02:00
{
name: "Vulnerabilities",
url: "/admin/vulnerabilities",
icon: BugIcon,
},
2024-06-30 20:42:13 +02:00
{
name: "Back Home",
url: "/",
icon: Home,
},
2024-06-20 17:02:11 +02:00
];
2024-07-28 12:52:13 +02:00
2024-08-01 16:32:57 +02:00
export const AdminDashboardLINKS = [
{
label: "Downloads",
url: "/admin/downloads",
},
{
label: "SVRJS Mods",
url: "/admin/mods",
},
{
label: "Change Logs",
url: "/admin/changelogs",
},
{
label: "MultiLogs",
url: "/admin/multi-logs",
},
{
label: "Vulnerabilities",
url: "/admin/vulnerabilities",
},
2024-08-26 13:11:47 +02:00
{
label: "Emails",
url: "/admin/email",
},
2024-08-01 16:32:57 +02:00
];
2024-07-28 12:52:13 +02:00
// contact page emails
export const emails = [
2024-07-28 13:15:57 +02:00
{
icon: Mail,
email: "support@svrjs.org",
url: "mailto:support@svrjs.org",
},
2024-07-28 12:52:13 +02:00
{
icon: WebhookIcon,
email: "webmaster@svrjs.org",
url: "mailto:webmaster@svrjs.org",
},
{
icon: Bug,
email: "bugreports@svrjs.org",
url: "mailto:bugreports@svrjs.org",
},
{
icon: ShieldCheck,
email: "vulnerability-reports@svrjs.org",
url: "mailto:vulnerability-reports@svrjs.org",
},
];
2024-08-26 13:11:47 +02:00
export const EXAMPLE_A1 = `
<div>
<h1>Test Email Preview</h1>
<p>This is a simple email preview test.</p>
</div>
`;