Skip to content

Commit

Permalink
feat(projects): update project card styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 authored Mar 15, 2024
1 parent adb83b4 commit f749168
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 84 deletions.
25 changes: 0 additions & 25 deletions src/app/projects/_components/project-card-effect.tsx

This file was deleted.

115 changes: 56 additions & 59 deletions src/app/projects/_components/project-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Image from 'next/image'
import { FiFolder, FiGithub, FiGlobe } from 'react-icons/fi'
import { BsDot } from 'react-icons/bs'
import { techIcons } from './tech-icons'
import { ProjectCardEffect } from './project-card-effect'
import { Project } from '#content'

interface Props {
Expand Down Expand Up @@ -42,65 +41,63 @@ export function ProjectCard({ data }: Props) {
)

return (
<ProjectCardEffect className="overflow-hidden rounded-3xl shadow-xl">
<div className="flex h-full flex-col bg-neutral-100 dark:bg-neutral-950">
{data.image && (
<div className="h-56 w-full">
<Image
src={data.image}
width={2700}
height={2025}
alt="Project image"
className="h-full w-full object-cover object-top"
/>
</div>
)}
<div className="flex flex-1 flex-col p-5">
<div>
<Title />
<p className="text-justify md:text-left">{data.description}</p>
<Tags />
</div>
<div className="mt-9 flex flex-1 items-end justify-center gap-6">
{data.repository && (
<>
<a
href={data.repository}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 rounded-2xl border border-[#181717] p-4 text-[#181717] hover:bg-[#181717] hover:text-[#F6F8FA] dark:border-[#F6F8FA] dark:text-[#F6F8FA] dark:hover:bg-[#F6F8FA] hover:dark:text-[#181717]"
>
Repository <FiGithub />
</a>
</>
)}
{data.files && (
<>
<a
href={data.files}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 rounded-2xl border border-blue-500 p-4 text-blue-500 hover:bg-blue-500 hover:text-neutral-50"
>
Arquivos <FiFolder />
</a>
</>
)}
{data.website && (
<>
<a
href={data.website}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 rounded-2xl border border-blue-700 bg-blue-700/10 p-4 text-blue-700 hover:bg-blue-700 hover:text-neutral-50 dark:border-blue-600 dark:bg-blue-600/5 dark:text-blue-600 dark:hover:bg-blue-600 dark:hover:text-neutral-50"
>
Website <FiGlobe />
</a>
</>
)}
</div>
<div className="flex h-full flex-col overflow-hidden rounded-3xl border border-neutral-200 bg-neutral-50 shadow-lg dark:border-neutral-900 dark:bg-neutral-1000">
{data.image && (
<div className="h-56 w-full">
<Image
src={data.image}
width={2700}
height={2025}
alt="Project image"
className="h-full w-full object-cover object-top"
/>
</div>
)}
<div className="flex flex-1 flex-col p-5">
<div>
<Title />
<p className="text-justify md:text-left">{data.description}</p>
<Tags />
</div>
<div className="mt-9 flex flex-1 items-end justify-center gap-6">
{data.repository && (
<>
<a
href={data.repository}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 rounded-2xl border border-[#181717] p-4 text-[#181717] hover:bg-[#181717] hover:text-[#F6F8FA] dark:border-[#F6F8FA] dark:text-[#F6F8FA] dark:hover:bg-[#F6F8FA] hover:dark:text-[#181717]"
>
Repository <FiGithub />
</a>
</>
)}
{data.files && (
<>
<a
href={data.files}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 rounded-2xl border border-blue-500 p-4 text-blue-500 hover:bg-blue-500 hover:text-neutral-50"
>
Arquivos <FiFolder />
</a>
</>
)}
{data.website && (
<>
<a
href={data.website}
target="_blank"
rel="noreferrer"
className="flex items-center gap-2 rounded-2xl border border-blue-700 bg-blue-700/10 p-4 text-blue-700 hover:bg-blue-700 hover:text-neutral-50 dark:border-blue-600 dark:bg-blue-600/5 dark:text-blue-600 dark:hover:bg-blue-600 dark:hover:text-neutral-50"
>
Website <FiGlobe />
</a>
</>
)}
</div>
</div>
</ProjectCardEffect>
</div>
)
}

0 comments on commit f749168

Please sign in to comment.