Skip to content

Commit

Permalink
refactor: update constants and configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
R1shabh-Gupta committed Aug 18, 2024
1 parent b9974f6 commit df10437
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 9 deletions.
126 changes: 118 additions & 8 deletions frontend/constants/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,30 @@ import { Icon } from "@iconify/react";
import {
IconArrowLeft,
IconBrandTabler,
IconEye,
IconFlagDown,
IconNotes,
IconPasswordFingerprint,
IconZoomScan,
} from "@tabler/icons-react";

import {
FAQs,
FeatureType,
FooterLink,
LinkItem,
SocialIconProps,
SocialLink,
TakedownReasons,
Testimonial,
} from "@/types";

import screenshotAutoTakedownDark from "@/public/images/AutoTakedown-dark.png";
import screenshotAutoTakedownLight from "@/public/images/AutoTakedown-light.png";
import screenshotDomainTracerDark from "@/public/images/DomainTracer-dark.png";
import screenshotDomainTracerLight from "@/public/images/DomainTracer-light.png";
import screenshotPasswordGeneratorDark from "@/public/images/PasswordGenerator-dark.png";
import screenshotPasswordGeneratorLight from "@/public/images/PasswordGenerator-light.png";

export const links: LinkItem[] = [
{
label: "Dashboard",
Expand All @@ -32,10 +42,10 @@ export const links: LinkItem[] = [
),
},
{
label: "Breach Detector",
href: "/dashboard/breachdetector",
label: "Password Generator",
href: "/dashboard/passwordgenerator",
icon: (
<IconEye className="text-neutral-700 dark:text-neutral-200 h-5 w-5 flex-shrink-0" />
<IconPasswordFingerprint className="text-neutral-700 dark:text-neutral-200 h-5 w-5 flex-shrink-0" />
),
},
{
Expand Down Expand Up @@ -67,10 +77,6 @@ export const footerLinks: FooterLink[] = [
name: "AutoTakedown",
href: "/dashboard/autotakedown",
},
{
name: "BreachDetector",
href: "/dashboard/breachdetector",
},
{
name: "DomainTracer",
href: "/dashboard/domaintracer",
Expand Down Expand Up @@ -236,3 +242,107 @@ export const faqs: FAQs[] = [
"Yes, Rubik will remain free even after the development phase. Our goal is to provide powerful security tools that are accessible to everyone, regardless of budget.",
},
];

export const takedownReasons: TakedownReasons[] = [
{
name: "Copyright infringement",
id: "copyright-infringement",
},
{
name: "Trademark infringement",
id: "trademark-infringement",
},
{
name: "Defamation or libel",
id: "defamation-or-libel",
},
{
name: "Privacy violations",
id: "privacy-violations",
},
{
name: "Malware or phishing activities",
id: "malware-or-phishing-activities",
},
{
name: "Violation of terms of service",
id: "violation-of-terms-of-service",
},
{
name: "Personal safety concerns",
id: "personal-safety-concerns",
},
{
name: "Other (specify)",
id: "other",
},
];

export const featureCards = [
{
title: "AutoTakedown",
href: "/dashboard/autotakedown",
icon: IconFlagDown,
iconForeground: "text-teal-700",
iconBackground: "bg-teal-50",
content:
"Automatically process and handle takedown requests with ease. Upload the content you want to address, and let our tool take care of the rest.",
},
{
title: "Password Generator",
href: "/dashboard/passwordgenerator",
icon: IconPasswordFingerprint,
iconForeground: "text-purple-700",
iconBackground: "bg-purple-50",
content:
"Generate strong and secure passwords for your accounts. Customize the length and complexity to ensure your passwords are robust and unique.",
},
{
title: "Domain Tracer",
href: "/dashboard/domaintracer",
icon: IconZoomScan,
iconForeground: "text-sky-700",
iconBackground: "bg-sky-50",
content:
"Trace domain details effortlessly. Enter a domain name to get comprehensive information and insights about it using urlscan.io.",
},
{
title: "Frontend Security Notes",
href: "/dashboard/notes",
icon: IconNotes,
iconForeground: "text-yellow-700",
iconBackground: "bg-yellow-50",
content:
"Access detailed notes and guidelines on frontend security best practices. Enhance your knowledge and skills to protect your applications from vulnerabilities.",
},
];

export const features: Array<FeatureType> = [
{
name: "AutoTakedown",
summary: "Streamline takedown requests with automated processing.",
description:
"Easily manage and process takedown requests by uploading the content you want addressed. Our tool handles the rest, ensuring swift and efficient removal.",
image_light: screenshotAutoTakedownLight,
image_dark: screenshotAutoTakedownDark,
icon: IconFlagDown,
},
{
name: "Password Generator",
summary: "Generate strong, secure passwords tailored to your needs.",
description:
"Customize your passwords by adjusting the length and complexity to ensure they are robust and unique. Perfect for protecting your accounts.",
image_light: screenshotPasswordGeneratorLight,
image_dark: screenshotPasswordGeneratorDark,
icon: IconPasswordFingerprint,
},
{
name: "Domain Tracer",
summary: "Effortlessly trace and gather domain details.",
description:
"Get comprehensive information and insights about any domain by simply entering its name. Perfect for investigating and understanding domain histories.",
image_light: screenshotDomainTracerLight,
image_dark: screenshotDomainTracerDark,
icon: IconZoomScan,
},
];
2 changes: 1 addition & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["tailwindui.com"],
domains: ["tailwindui.com", "urlscan.io"],
},
};

Expand Down

0 comments on commit df10437

Please sign in to comment.