fix: replace the placeholder card contents in features section with real ones

This commit is contained in:
Dorian Niemiec 2024-09-07 09:35:47 +02:00
parent a6b6f89dc7
commit 6d806d7eba

View file

@ -1,266 +1,266 @@
import { import {
BadgeAlert, BarChart4,
BarChart4, Bird,
Bug, Bug,
BugIcon, BugIcon,
Cog, Cog,
File, File,
Mail, Mail,
ShieldCheck, ShieldCheck,
WebhookIcon, WebhookIcon
} from "lucide-react"; } from "lucide-react";
import { Download, Home, Settings, User } from "lucide-react"; import { Download, Home, Settings, User } from "lucide-react";
// Navbar // Navbar
export const NAVBAR = { export const NAVBAR = {
centerLinks: [ centerLinks: [
{ {
href: "/", href: "/",
target: "_self", target: "_self",
label: "Home", label: "Home"
}, },
{ {
href: "/docs", href: "/docs",
target: "_self", target: "_self",
label: "Docs", label: "Docs"
}, },
{ {
href: "/blog", href: "/blog",
target: "_self", target: "_self",
label: "Blog", label: "Blog"
}, },
{ {
href: "/forum", href: "/forum",
target: "_self", target: "_self",
label: "Forum", label: "Forum"
}, }
], ],
rightLinks: [ rightLinks: [
{ {
label: "Git", label: "Git",
target: "_blank", target: "_blank",
href: "https://git.svrjs.org/", href: "https://git.svrjs.org/"
}, }
], ]
}; };
// About section Stats // About section Stats
export const stats = [ export const stats = [
{ {
title: "Downloads", title: "Downloads",
count: 69, count: 69
}, },
{ {
title: "Users", title: "Users",
count: 42, count: 42
}, },
{ {
title: "Stars", title: "Stars",
count: 6, count: 6
}, },
{ {
title: "Products", title: "Products",
count: 2, count: 2
}, }
]; ];
// Features Section Home Page // Features Section Home Page
export const Features = [ export const Features = [
{ {
icon: <ShieldCheck className="w-10 h-10 text-primary" />, icon: <Bird className="w-10 h-10 text-primary" />,
title: "Complete Secured ", title: "Free as in freedom",
description: description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor", "You don't need to worry about proprietary malware, counterfeit software, crashes from non-genuine versions, or Big Tech backdoors. SVR.JS is open-source under the MIT license, running on Node.JS (also MIT). Contribute to SVR.JS via our Git repository!"
}, },
{ {
icon: <BadgeAlert className="w-10 h-10 text-primary" />, icon: <BarChart4 className="w-10 h-10 text-primary" />,
title: "Best Support", title: "Scalable",
description: description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor", "SVR.JS runs on Node.JS or Bun, which are JavaScript runtimes utilizing event-driven infrastructure for efficient handling of I/O operations. It also uses clustering by default to withstand high request loads and ensure server stability."
}, },
{ {
icon: <BarChart4 className="w-10 h-10 text-primary" />, icon: <ShieldCheck className="w-10 h-10 text-primary" />,
title: "Most Scalable ", title: "Secure",
description: description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor", "We put your website security first. SVR.JS sanitizes URLs, and protects your web application against brute force attacks on HTTP authentication. SVR.JS also has a built-in block list, so you can block malicious actors."
}, },
{ {
icon: <Cog className="w-10 h-10 text-primary" />, icon: <Cog className="w-10 h-10 text-primary" />,
title: "Fully Configurable ", title: "Configurable",
description: description:
"lorem ipsum dolor sit amet, consectetur adip lorem ipsum dolor lorem ipsum dolor", "You can configure SVR.JS through config.json file. You can also install mods and use server-side JavaScript! Focus on developing JavaScript web applications with SVR.JS!"
}, }
]; ];
// FAQS // FAQS
export const questions = [ export const questions = [
{ {
key: "item-1", key: "item-1",
question: "What is a web server?", question: "What is a web server?",
answer: 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.", "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", key: "item-2",
question: "What is SVR.JS?", question: "What is SVR.JS?",
answer: 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", "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", key: "item-3",
question: "How was SVR.JS created?", question: "How was SVR.JS created?",
answer: 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!", "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", key: "item-4",
question: "How did SVR.JS get its name?", question: "How did SVR.JS get its name?",
answer: 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.", "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", key: "item-5",
question: "What is Node.JS?", question: "What is Node.JS?",
answer: answer:
"Node.JS is an asynchronous event-driven JavaScript runtime built on Chromiums V8 engine. Node.JS is designed to build scalable network applications.", "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", key: "item-6",
question: "How can I use SVR.JS?", question: "How can I use SVR.JS?",
answer: answer:
"You can read the documents to learn how to use the SVR.JS web server.", "You can read the documents to learn how to use the SVR.JS web server."
}, }
]; ];
// Footer // Footer
export const FOOTERLINKS = { export const FOOTERLINKS = {
otherPages: [ otherPages: [
{ href: "/", label: "Home" }, { href: "/", label: "Home" },
{ href: "/contact", label: "Contact" }, { href: "/contact", label: "Contact" },
{ href: "/blog", label: "Blog" }, { href: "/blog", label: "Blog" },
{ href: "/forum", label: "Forum" }, { href: "/forum", label: "Forum" }
], ],
plans: [ plans: [
{ href: "/docs", label: "Docs" }, { href: "/docs", label: "Docs" },
{ href: "/downloads", label: "Downloads" }, { href: "/downloads", label: "Downloads" },
{ href: "/mods", label: "Svrjs Mods" }, { href: "/mods", label: "Svrjs Mods" },
{ href: "/changelogs", label: "Change Logs" }, { href: "/changelogs", label: "Change Logs" }
], ],
additional: [ additional: [
{ href: "/contribute", label: "Contribute" }, { href: "/contribute", label: "Contribute" },
{ href: "/vulnerabilities", label: "Vulnerabilities" }, { href: "/vulnerabilities", label: "Vulnerabilities" },
{ href: "https://git.svrjs.org", label: "Git Server" }, { href: "https://git.svrjs.org", label: "Git Server" },
{ href: "http://status.svrjs.org", label: "Server Uptime" }, { href: "http://status.svrjs.org", label: "Server Uptime" }
], ],
social: { social: {
supportText: "Support Us on Socials", supportText: "Support Us on Socials"
}, },
footerBottom: { footerBottom: {
termsofService: { termsofService: {
href: "/tos", href: "/tos",
label: "Terms of Service", label: "Terms of Service"
}, },
privacyPolicy: { privacyPolicy: {
href: "/privacy-policy", href: "/privacy-policy",
label: "Privacy Policy", label: "Privacy Policy"
}, },
rightsReserved: { rightsReserved: {
href: "https://svrjs.org/", href: "https://svrjs.org/",
label: "SVRJS", label: "SVRJS"
}, }
}, }
}; };
// Admin Dashboard // Admin Dashboard
export const AdminLinks = [ export const AdminLinks = [
{ {
name: "Dashboard", name: "Dashboard",
url: "/admin", url: "/admin",
icon: Home, icon: Home
}, },
{ {
name: "Downloads", name: "Downloads",
url: "/admin/downloads", url: "/admin/downloads",
icon: Download, icon: Download
}, },
{ {
name: "Mods", name: "Mods",
url: "/admin/mods", url: "/admin/mods",
icon: User, icon: User
}, },
{ {
name: "Logs", name: "Logs",
url: "/admin/changelogs", url: "/admin/changelogs",
icon: Settings, icon: Settings
}, },
{ {
name: "MultiLogs", name: "MultiLogs",
url: "/admin/multi-logs", url: "/admin/multi-logs",
icon: File, icon: File
}, },
{ {
name: "Vulnerabilities", name: "Vulnerabilities",
url: "/admin/vulnerabilities", url: "/admin/vulnerabilities",
icon: BugIcon, icon: BugIcon
}, },
{ {
name: "Back Home", name: "Back Home",
url: "/", url: "/",
icon: Home, icon: Home
}, }
]; ];
export const AdminDashboardLINKS = [ export const AdminDashboardLINKS = [
{ {
label: "Downloads", label: "Downloads",
url: "/admin/downloads", url: "/admin/downloads"
}, },
{ {
label: "SVRJS Mods", label: "SVRJS Mods",
url: "/admin/mods", url: "/admin/mods"
}, },
{ {
label: "Change Logs", label: "Change Logs",
url: "/admin/changelogs", url: "/admin/changelogs"
}, },
{ {
label: "MultiLogs", label: "MultiLogs",
url: "/admin/multi-logs", url: "/admin/multi-logs"
}, },
{ {
label: "Vulnerabilities", label: "Vulnerabilities",
url: "/admin/vulnerabilities", url: "/admin/vulnerabilities"
}, },
{ {
label: "Emails", label: "Emails",
url: "/admin/email", url: "/admin/email"
}, }
]; ];
// contact page emails // contact page emails
export const emails = [ export const emails = [
{ {
icon: Mail, icon: Mail,
email: "support@svrjs.org", email: "support@svrjs.org",
url: "mailto:support@svrjs.org", url: "mailto:support@svrjs.org"
}, },
{ {
icon: WebhookIcon, icon: WebhookIcon,
email: "webmaster@svrjs.org", email: "webmaster@svrjs.org",
url: "mailto:webmaster@svrjs.org", url: "mailto:webmaster@svrjs.org"
}, },
{ {
icon: Bug, icon: Bug,
email: "bugreports@svrjs.org", email: "bugreports@svrjs.org",
url: "mailto:bugreports@svrjs.org", url: "mailto:bugreports@svrjs.org"
}, },
{ {
icon: ShieldCheck, icon: ShieldCheck,
email: "vulnerability-reports@svrjs.org", email: "vulnerability-reports@svrjs.org",
url: "mailto:vulnerability-reports@svrjs.org", url: "mailto:vulnerability-reports@svrjs.org"
}, }
]; ];
export const EXAMPLE_A1 = ` export const EXAMPLE_A1 = `