Skip to content

Commit

Permalink
feat: remove border to projects and add new shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbamijam committed Mar 9, 2024
1 parent a31cd9e commit 7633f18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions components/ui/ProjectCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ProjectType } from "@shared-types/project";
import Image from "next/image";
import Link from "next/link";
import DefaultBanner from "@assets/default-banner.webp"
import DefaultBanner from "@assets/default-banner.webp";
import GitHubBtn from "@components/buttons/GitHubBtn";
import WebsiteBtn from "@components/buttons/WebsiteBtn";

Expand All @@ -15,7 +15,7 @@ const ProjectCard = ({
github,
}: ProjectType) => {
return (
<div className="card relative w-[400px] rounded-xl flex flex-col bg-transparent overflow-hidden">
<div className="cursor-pointer hover:shadow-gray-500 hover:shadow-lg hover:-translate-y-2 relative w-[400px] rounded-xl flex flex-col overflow-hidden">
<Link href={href}>
<Image
src={src ? `${src}` : DefaultBanner}
Expand All @@ -25,7 +25,7 @@ const ProjectCard = ({
loading="lazy"
placeholder="blur"
blurDataURL="URL"
className="w-full h-[200px] object-cover"
className="w-full h-[200px] rounded-xl object-cover"
/>
<div className="details px-[30px] py-[30px]">
<h1 className="truncate text-2xl font-bold px-2">{title}</h1>
Expand Down
3 changes: 0 additions & 3 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ body {
.active {
@apply bg-highlight text-white;
}
.card {
@apply cursor-pointer border border-gray-500 hover:shadow-md hover:shadow-gray-500 hover:-translate-y-4;
}
.button-format {
@apply text-center w-[150px] h-[50px] py-[15px] rounded-lg;
}
Expand Down

0 comments on commit 7633f18

Please sign in to comment.