Skip to content

Commit

Permalink
Merge pull request #287 from Ajay-Dhangar/dev-1.1
Browse files Browse the repository at this point in the history
Dev 1.1
  • Loading branch information
ajay-dhangar authored Aug 7, 2024
2 parents 172188c + 1b82f16 commit 4171c57
Show file tree
Hide file tree
Showing 59 changed files with 580 additions and 107 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.3.2",
"@docusaurus/core": "^3.4.0",
"@docusaurus/plugin-content-pages": "^3.3.2",
"@docusaurus/plugin-google-gtag": "^3.3.2",
"@docusaurus/plugin-ideal-image": "^3.4.0",
Expand Down
71 changes: 0 additions & 71 deletions src/components/HomePage/Hero/YouTubePlayer.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/HomePage/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Link from "@docusaurus/Link";

const Hero = () => {
return (
<div className="pb-20 pt-16 md:pt-8 p-4 relative overflow-hidden">
<div className="pb-4 pt-8 md:pt-4 p-4 relative overflow-hidden">
<div className="absolute inset-0 overflow-hidden">
<Spotlight
className="-top-40 -left-10 md:-left-32 md:-top-20 h-screen"
Expand Down
32 changes: 32 additions & 0 deletions src/components/HomePage/Projects/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from "react";
import { projects } from "../../../data";
import { ThreeDCardDemo } from "../../../ui/Card3D";

const Projects = () => {
return (
<section id="projects" className="py-20">
<h1 className="heading text-4xl text-center lg:text-6xl mb-10">
A collection of{" "}
<span className="text-primaryColor">recent projects</span>
</h1>
<div className="flex flex-wrap items-center justify-center gap-10">
{projects.map((item) => (
<div
className="h-[35rem] md:h-[37rem] lg:min-h-[32.5rem] w-90"
key={item.id}
>
<ThreeDCardDemo
title={item.title}
description={item.des}
imgSource={item.img}
icons={item.iconLists}
link={item.link}
/>
</div>
))}
</div>
</section>
);
};

export default Projects;
4 changes: 2 additions & 2 deletions src/components/HomePage/Touch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const Touch = () => {
return (
<div className="w-full pt-20 pb-10 p-4">
<div className="flex flex-col items-center">
<h1 className="heading text-5xl lg:text-6xl w-[90%]">
<h2 className="heading text-4xl text-center lg:text-6xl w-[90%]">
<span className="text-primaryColor">Ready</span> to take your team to
the
<span className="text-primaryColor"> next level</span>?
</h1>
</h2>
<p className="text-white-200 md:mt-10 my-5 text-center md:w-[70%]">
I&apos;m eager to bring my skills and passion for software development
to a new role. Let’s connect and explore how I can contribute to your
Expand Down
48 changes: 17 additions & 31 deletions src/data/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,45 +67,31 @@ export const projects = [
id: 1,
title: "CodeHarborHub",
des: "A platform for developers to share and explore code snippets, providing a collaborative environment for learning and sharing.",
img: "/AttireX_new.png",
img: "/data/codeharborhub.png",
iconLists: [
"/laravel.png",
"/bootstrap.png",
"/js.svg",
"/css.svg",
"/git.svg",
"/data/tail.svg",
"/data/re.svg",
"/data/ts.svg",
"/data/js.svg",
"/data/css.svg",
"/data/git.svg",
],
link: "https://codeharborhub.github.io/",
},
{
id: 2,
title: "Expense Tracker App",
des: "A dynamic application designed to help users manage and track their expenses effortlessly, providing real-time insights and visualizations.",
img: "/expenseTracker.png",
iconLists: ["/re.svg", "/tail.svg", "/js.svg", "/css.svg", "/git.svg"],
link: "#",
},
{
id: 3,
title: "The Perfumes Lab",
des: "Built an e-commerce store dedicated to perfumes, offering an elegant interface and smooth browsing and purchasing functionality.",
img: "/perfumes-lab.png",
title: "CodeHarborHub",
des: "A platform for developers to share and explore code snippets, providing a collaborative environment for learning and sharing.",
img: "/data/codeharborhub.png",
iconLists: [
"/wordpress.svg",
"/woo.svg",
"/js.svg",
"/css.svg",
"/git.svg",
"/data/tail.svg",
"/data/re.svg",
"/data/ts.svg",
"/data/js.svg",
"/data/css.svg",
"/data/git.svg",
],
link: "#",
},
{
id: 4,
title: "Elevr - Real Estate",
des: "Created a real estate platform frontend similar to Airbnb, enhancing property listings and user interactions with a modern, intuitive interface.",
img: "/elevr-1.png",
iconLists: ["/re.svg", "/bootstrap.png", "/js.svg", "/css.svg", "/git.svg"],
link: "#",
link: "https://codeharborhub.github.io/",
},
];

Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Layout from "@theme/Layout";
import Head from "@docusaurus/Head";
import Hero from "../components/HomePage/Hero";
import Touch from "../components/HomePage/Touch";
import Projects from "../components/HomePage/Projects";

export default function Home() {
const { siteConfig } = useDocusaurusContext();
return (
Expand All @@ -25,6 +27,7 @@ export default function Home() {
</Head>
<main className="overflow-hidden">
<Hero />
<Projects />
<Touch />
</main>
</Layout>
Expand Down
86 changes: 86 additions & 0 deletions src/ui/Card3D.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import React from "react";
import { CardBody, CardContainer, CardItem } from "./Card3DConfig";
import { FaLocationArrow } from "react-icons/fa6";
import Link from "@docusaurus/Link";

export const ThreeDCardDemo = ({
title,
description,
imgSource,
icons,
link,
onClickHandler,
otherClasses,
}: {
title?: string;
description?: string;
imgSource: string;
icons: string[];
link: string;
onClickHandler?: () => void;
otherClasses?: string;
}) => {
return (
<CardContainer className="inter-var">
<CardBody
className="bg-gray-50 relative group/card dark:hover:shadow-2xl cursor-pointer dark:hover:shadow-emerald-500/[0.1] dark:bg-[#1e293b] dark:border-white/[0.2] border-black/[0.1]
grid grid-cols-1 grid-rows-1 rounded-xl shadow-lg hover:shadow-2xl transition-all duration-300 ease-in-out w-auto h-auto rounded-xl p-6 border-[1px] border-gray-200 dark:border-[#1e293b] dark:text-white"
>
<CardItem
translateZ="50"
className="text-xl font-bold text-neutral-600 dark:text-white"
>
{title}
</CardItem>
<CardItem
as="p"
translateZ="60"
className="text-neutral-500 text-sm max-w-sm mt-2 dark:text-neutral-300"
>
{description}
</CardItem>
<CardItem translateZ="100" className="w-full mt-4 p-2">
<img
src={imgSource}
height="1000"
width="1000"
className="h-60 w-full object-cover rounded-xl group-hover/card:shadow-xl"
alt="thumbnail"
/>
</CardItem>
<div className="flex justify-between gap-2 items-center mt-10">
<CardItem
translateZ={20}
as="button"
className=" py-2 rounded-xl text-sm font-normal dark:bg-[#1e293b] dark:text-black text-primaryColor bg-gray-100"
>
<div className="flex items-center">
{icons.map((icon, index) => (
<div
key={index}
className="border border-primaryColor/[.4] rounded-full bg-gray-700 lg:w-10 lg:h-10 w-8 h-8 flex justify-center items-center"
style={{
transform: `translateX(-${5 * index + 2}px)`,
}}
>
<img src={icon} alt="icon5" className="p-2" />
</div>
))}
</div>
</CardItem>
<CardItem
translateZ={20}
as="button"
className="flex items-center gap-x-2 px-4 py-2 rounded-xl bg-gray dark:bg-[#1e293b] dark:text-black text-sm md:text-base font-bold"
>
<Link to={link} target="_blank">
Demo
</Link>

<FaLocationArrow />
</CardItem>
</div>
</CardBody>
</CardContainer>
);
};
Loading

0 comments on commit 4171c57

Please sign in to comment.