Skip to content

Commit

Permalink
feat: donwload app component
Browse files Browse the repository at this point in the history
  • Loading branch information
0xk4b1r committed Nov 1, 2024
1 parent 7ae9c1b commit 4f30234
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 29 deletions.
Binary file added src/assets/images/TheCyberHUB-Desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/Homepage/Homepage.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React from "react";
import { Hero, Info, Socials } from "src/components/index";
import { aboutData, ResourcesData, communityData, contributeData } from "./Info/Data";
import { aboutData, ResourcesData, communityData, contributeData, desktopAppDownloadData } from "./Info/Data";
import ContactForm from "./ContactForm/ContactForm";

const Homepage = () => {
return (
<>
<Hero />
<Info {...aboutData} />
<Info {...desktopAppDownloadData} />
<Info {...ResourcesData} />
<Info {...contributeData} />
<Info {...communityData} />
Expand Down
89 changes: 61 additions & 28 deletions src/components/Homepage/Info/Data.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { List, ListContainer, ListContent, ListIcon } from "src/components/Resou
import contributeSvg from "src/assets/images/open-source-contribution.svg";
import ResourcesSvg from "src/assets/images/undraw_firmware_re_fgdy.svg";
import VersionControlSvg from "src/assets/images/undraw_version_control_re_mg66.svg";
import desktopApp from "src/assets/images/TheCyberHUB-Desktop.png";
import { PiWindowsLogoFill } from "react-icons/pi";

const logoThecyberworld = `${getCdnAssets}/images/ThecyberworldLogo/Thecyberworld_logo_outlined.png`;

Expand Down Expand Up @@ -61,6 +63,37 @@ export const aboutData = {
darkText: false,
};

export const desktopAppDownloadData = {
id: "desktop-download",
buttonLabel1: (
<>
Download for Windows{" "}
<IconsSpacing style={{ marginLeft: "10px" }}>
<PiWindowsLogoFill />
</IconsSpacing>
</>
),
link1: "https://github.com/th3cyb3rhub/TheCyberHUB-Desktop/releases",
buttonType1: "redirect",
lightBg: false,
lightText: true,
lightTextDesc: true,
topLine: "Download TheCyberHUB Desktop App",
headline: "Join 150,000+ Users Enhancing Their Cybersecurity Skills",
description: (
<>
TheCyberHUB Desktop App offers seamless access to essential resources and tools for cybersecurity
enthusiasts. Join a community of users advancing their skills with our intuitive application, featuring
regular updates to keep you informed and equipped.
</>
),
img: desktopApp,
imgStart: true,
dark: true,
primary: true,
darkText: false,
};

export const ResourcesData = {
id: "resources",
buttonType1: "router",
Expand All @@ -84,40 +117,14 @@ export const ResourcesData = {
</IconsSpacing2>
</>
),
imgStart: true,
imgStart: false,
img: ResourcesSvg,
alt: "Free Cyber Security Course SVG",
dark: true,
primary: true,
darkText: false,
};

export const communityData = {
id: "community",
idTo: "join",
buttonLabel1: "Join Community",
link1: "https://discord.com/invite/thecyberhub-799183504759324672",
buttonType1: "redirect",
buttonLabel2: "All Community Links",
link2: "https://linktr.ee/th3cyb3rhub",
buttonType2: "redirect",
lightBg: false,
lightText: true,
lightTextDesc: true,
topLine: "Join our Community",
headline: "150,000+ Members",
description: (
<>
Our community helps newcomers get started with open-source and cybersecurity while encouraging existing
members to engage further.
</>
),
imgStart: true,
dark: true,
primary: true,
darkText: false,
};

export const contributeData = {
id: "contribute",
lightBg: false,
Expand All @@ -144,14 +151,40 @@ export const contributeData = {
buttonLabel2: "Contribute to Community",
link2: "/community",
buttonType2: "router",
imgStart: false,
imgStart: true,
img: contributeSvg,
alt: "Open Source Contribution SVG",
dark: true,
primary: true,
darkText: false,
};

export const communityData = {
id: "community",
idTo: "join",
buttonLabel1: "Join Community",
link1: "https://discord.com/invite/thecyberhub-799183504759324672",
buttonType1: "redirect",
buttonLabel2: "All Community Links",
link2: "https://linktr.ee/th3cyb3rhub",
buttonType2: "redirect",
lightBg: false,
lightText: true,
lightTextDesc: true,
topLine: "Join our Community",
headline: "150,000+ Members",
description: (
<>
Our community helps newcomers get started with open-source and cybersecurity while encouraging existing
members to engage further.
</>
),
imgStart: false,
dark: true,
primary: true,
darkText: false,
};

export const OpenSource = {
id: "open-source",
lightBg: false,
Expand Down
1 change: 1 addition & 0 deletions src/components/Homepage/Info/Info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const InfoSection = ({
)}
{buttonType1 === "redirect" && (
<RedirectButton
target={"_blank"}
href={link1}
primary={primary ? "true" : ""}
dark={dark ? 1 : 0}
Expand Down

0 comments on commit 4f30234

Please sign in to comment.