-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
192 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
interface ProjectTagProps { | ||
name: string; | ||
isSelected: boolean; | ||
onClick: (name: string) => void; | ||
} | ||
|
||
export function ProjectTag({ name, isSelected, onClick }: ProjectTagProps){ | ||
const buttonStyles = isSelected | ||
? "text-black border-primary-500" | ||
: "text-black border-green-600"; | ||
|
||
return ( | ||
<button | ||
className={`${buttonStyles} rounded-full border-2 shadow-xl px-6 py-3 text-xl cursor-pointer`} | ||
onClick={() => onClick(name)} | ||
> | ||
{name} | ||
</button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { CodeIcon } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
interface ProjectCardProps { | ||
title: string; | ||
description: string; | ||
imageUrl: string; | ||
link: string; | ||
} | ||
|
||
export function ProjectCard({ | ||
imageUrl, | ||
title, | ||
description, | ||
link, | ||
}: ProjectCardProps) { | ||
return ( | ||
<div> | ||
<div | ||
className="h-60 md:h-72 shadow-lg relative group border border-[#ADB7BE]" | ||
style={{ background: `url(${imageUrl})`, backgroundSize: "cover", backgroundPosition: "center" , backgroundRepeat: "no-repeat"}} | ||
> | ||
<div className="overlay items-center justify-center absolute top-0 left-0 w-full h-full bg-[#181818] bg-opacity-0 hidden group-hover:flex group-hover:bg-opacity-80 transition-all duration-500 "> | ||
<Link | ||
href={link} | ||
className="h-14 w-14 mr-2 border-2 relative rounded-full border-[#ADB7BE] hover:border-white group/link" | ||
> | ||
<CodeIcon className="h-10 w-10 text-[#ADB7BE] absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 cursor-pointer group-hover/link:text-white" /> | ||
</Link> | ||
</div> | ||
</div> | ||
|
||
<div className="text-black rounded-b-xl mt-3 bg-[#181818]py-6 px-4"> | ||
<h5 className="text-xl font-semibold mb-2">{title}</h5> | ||
<p className="text-[#ADB7BE]">{description}</p> | ||
</div> | ||
|
||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
"use client"; | ||
|
||
import { useRef, useState } from "react"; | ||
import { ProjectTag } from "./project-tag"; | ||
import { ProjectsData } from "@/data/projects-data"; | ||
import { ProjectCard } from "./projects-card"; | ||
|
||
export function ProjectSection() { | ||
const [tag, setTag] = useState("All"); | ||
const ref = useRef(null); | ||
const filteredProjects = ProjectsData.filter((project) => | ||
project.tag.includes(tag) | ||
); | ||
|
||
function handleTagChange(newTag: string) { | ||
setTag(newTag); | ||
} | ||
|
||
return ( | ||
<section id="projects"> | ||
<h2 className="text-center text-4xl font-bold text-black mt-4 mb-8 md:mb-12"> | ||
Meus Projetos | ||
</h2> | ||
<div className="flex flex-row justify-center items-center gap-2 py-6"> | ||
<ProjectTag | ||
onClick={handleTagChange} | ||
name="All" | ||
isSelected={tag === "All"} | ||
/> | ||
<ProjectTag | ||
onClick={handleTagChange} | ||
name="Web" | ||
isSelected={tag === "Web"} | ||
/> | ||
<ProjectTag | ||
onClick={handleTagChange} | ||
name="Mobile" | ||
isSelected={tag === "Mobile"} | ||
/> | ||
</div> | ||
<ul ref={ref} className="grid md:grid-cols-3 gap-8 md:gap-12"> | ||
{filteredProjects.map((project, index) => ( | ||
<ProjectCard | ||
key={project.id} | ||
title={project.title} | ||
description={project.description} | ||
imageUrl={project.image} | ||
link={project.link} | ||
/> | ||
))} | ||
</ul> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
|
||
|
||
export const ProjectsData = [ | ||
{ | ||
id:1, | ||
title: "HealtCare", | ||
description: "Sistema de gerenciamento de consultas médicas", | ||
image: "/images-projects/healtcare.png", | ||
link: "", | ||
tag: ["All", "Web"], | ||
}, | ||
{ | ||
id:2, | ||
title: "Planner Io", | ||
description: "Sistema para planejar viagens e eventos", | ||
image: "/images-projects/planner-io.png", | ||
link: "", | ||
tag: ["All", "Web"], | ||
}, | ||
{ | ||
id:3, | ||
title: "Gdelivery", | ||
description: "Sistema de delivery de alimentos versao mobile", | ||
image: "/images-projects/gdelivery.png", | ||
link: "", | ||
tag: ["All", "Mobile"], | ||
}, | ||
{ | ||
id:4, | ||
title: "MyContacts", | ||
description: "Gereciador de contatos", | ||
image: "/images-projects/mycontacts.png", | ||
link: "", | ||
tag: ["All", "Web"], | ||
}, | ||
{ | ||
id:5, | ||
title: "Web Carros", | ||
description: "Sistema de gerenciamento de carros", | ||
image: "/images-projects/webcarros.png", | ||
link: "", | ||
tag: ["All", "Web"], | ||
}, | ||
{ | ||
id:6, | ||
title: "Pass In", | ||
description: "Aplicaçao Mobile para gerenciamento de inscrições em eventos", | ||
image: "/images-projects/pass-in.png", | ||
link: "", | ||
tag: ["All", "Mobile"], | ||
}, | ||
{ | ||
id:7, | ||
title: "My Goals", | ||
description: "Aplicaçao Mobile para gerenciamento de metas financeiras", | ||
image: "/images-projects/mygoals.png", | ||
link: "", | ||
tag: ["Mobile"], | ||
}, | ||
{ | ||
id:8, | ||
title: "Iweather", | ||
description: "Aplicaçao Mobile de previsao do tempo usando api do openweather", | ||
image: "/images-projects/iweather.png", | ||
link: "", | ||
tag: ["Mobile"], | ||
} | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters