Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/AllProjects/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const AllProjects = () => {
return (
<div>AllProjects</div>
)
}

export default AllProjects
9 changes: 9 additions & 0 deletions components/BestProjects/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const BestProjects = () => {
return (
<div>BestProjects</div>
)
}

export default BestProjects
9 changes: 9 additions & 0 deletions components/FeaturedProjects/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const FeaturedProjects = () => {
return (
<div>FeaturedProjects</div>
)
}

export default FeaturedProjects
2 changes: 1 addition & 1 deletion components/Footer/footer-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const communityLinks: Array<FooterOptionType> = [
},
{
title: "Join Team",
link: "https://github.com/hekors/.github/tree/master/profile",
link: "https://tally.so/r/w2a8xg",
},
{
title: "Community Gallery",
Expand Down
4 changes: 4 additions & 0 deletions components/Navbar/navbar-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
{
"label": "🗓️ Past Events",
"path": "/events/past-events"
},
{
"label": "🚀 Community Projects",
"path": "/projects"
}
]
103 changes: 103 additions & 0 deletions components/ProjectsHeroCTA/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
// Basic Imports
import React from "react";
import Image from "next/image";

// Components Imports
import Callout from "@/components/ui-patterns/Callout";
import OrganizeWithUs from "@/components/OrganizeWithUs";
import Button from "@/components/ui-patterns/Button";
import BestProjects from "@/components/BestProjects";
import FeaturedProjects from "@/components/FeaturedProjects";
import AllProjects from "@/components/AllProjects";
import MetaHead from "@/components/MetaHead";
import projectsData from "@/components/ProjectsHeroCTA/projectData.json";

const ProjectsHeroCTA: React.FC = () => {
// Destructure the data from the projectsData object
const {
primaryButtonText,
primaryButtonLink,
secondaryButtonText,
secondaryButtonLink,
heading,
subheading,
} = projectsData;

return (
<React.Fragment>
<div className="projects">
<div className="checks-container">
{/* Hero Section */}
<div className="wrapped-view flex flex-row items-center justify-between max-sm:flex-col">
<div className="hero-section-wrapper w-fit h-auto flex flex-col items-start justify-between pl-12 mb-12 max-sm:items-center max-sm:pl-0 max-sm:mb-8">
{/* Callout */}
<Callout className="small-callout max-sm:flex max-sm:flex-row max-sm:justify-evenly max-sm:w-[70%] max-sm:gap-0 max-sm:h-auto">
{"Show Us Your Projects "}
</Callout>

{/* Main Heading */}
{heading && (
<h1 className="font-product-bungee text-5xl mt-4 leading-tight flex flex-col items-start justify-between max-sm:items-center max-sm:text-3xl max-sm:gap-1 max-sm:mt-6 ">
<span className="w-[16ch] max-sm:text-center">
{heading}
<Image
className="w-[50] inline-block pl-2 mb-3"
src="/emojis/star-eyes-emoji.svg"
width="50"
height="50"
alt="star-eyes-emoji"
/>
</span>
</h1>
)}

{/* Subheading */}
{subheading && (
<h2 className="font-product-bungee text-2xl mt-4 leading-tight flex flex-col items-start justify-between w-[28ch] max-sm:text-center max-sm:items-center max-sm:text-3xl max-sm:gap-1 max-sm:mt-6">
{subheading}
</h2>
)}

{/* CTA Buttons */}
<div className="cta-buttons-layer-wrapper mt-8 flex flex-row justify-center gap-8 w-fit h-auto max-sm:flex-col max-sm:mt-8">
<a href={primaryButtonLink}>
<Button type="primary" shade="product-orange">
{primaryButtonText}
</Button>
</a>
{secondaryButtonText && secondaryButtonLink && (
<a href={secondaryButtonLink} target="_blank" rel="noreferrer">
<Button type="secondary" shade="product-purple-light">
{secondaryButtonText}
</Button>
</a>
)}
</div>
</div>

{/* Illustration */}
<div className="illustration-wrapper">
<Image
className="w-[448px] max-sm:w-[280px] max-sm:pl-4"
src="/project-illustration.svg"
width="448"
height="448"
alt="project-illustration"
/>
</div>
</div>
</div>

{/* Other sections */}
<div className="upcoming-hackathons-section-wrapper">
<BestProjects />
<FeaturedProjects />
<AllProjects />
<OrganizeWithUs />
</div>
</div>
</React.Fragment>
);
};

export default ProjectsHeroCTA;
8 changes: 8 additions & 0 deletions components/ProjectsHeroCTA/projectData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"primaryButtonText": "Visit All Projects",
"primaryButtonLink": "/all-projects",
"secondaryButtonText": "Submit Your Project",
"secondaryButtonLink": "https://twitter.com/hekorscommunity",
"heading": "Projects built by Amazing HEKORS",
"subheading": "Discover amazing projects created by the HEKORS community."
}
2 changes: 1 addition & 1 deletion components/UpcomingSessions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const UpcomingSessions: React.FunctionComponent = () => {
<SessionCardSkeleton visibility={40} />
</div>
)}
<div className="flex flex-row items-center justify-end gap-6 hidden max-sm:flex-col max-sm:flex max-sm:justify-center max-sm:items-center max-sm:mt-12">
<div className="flex flex-row items-center justify-end gap-6 max-sm:flex-col max-sm:flex max-sm:justify-center max-sm:items-center max-sm:mt-12">
<Button type="secondary" shade="product-pink">
{"All Hackathons"}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion components/ui-patterns/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Callout: React.FunctionComponent<CalloutType> = (
{...props}
>
<span className="callout-icon-wrapper">
<Image
<Image className="max-sm:w-[60%]"
src="/callout-icon.svg"
alt="callout"
width="24"
Expand Down
32 changes: 32 additions & 0 deletions pages/projects/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Basic Imports
import React from "react";

// Components Imports
import OrganizeWithUs from "@/components/OrganizeWithUs";
import BestProjects from "@/components/BestProjects";
import FeaturedProjects from "@/components/FeaturedProjects";
import AllProjects from "@/components/AllProjects";
import MetaHead from "@/components/MetaHead";
import ProjectsHeroCTA from "@/components/ProjectsHeroCTA";
import { NextPage } from "next";

const Projects: NextPage = () => {
return (
<React.Fragment>
{/* Added Meta tags */}
<MetaHead
title={`${new Date().getFullYear()} Season`}
description="Projects Showcase By Community"
/>
{/* Hero Section */}
<ProjectsHeroCTA />
{/* Other sections */}
<BestProjects />
<FeaturedProjects />
<AllProjects />
<OrganizeWithUs />
</React.Fragment>
);
};

export default Projects;
9 changes: 9 additions & 0 deletions public/emojis/star-eyes-emoji.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/project-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.