Skip to content

Commit

Permalink
improve project cards
Browse files Browse the repository at this point in the history
  • Loading branch information
vdawg-git committed Jun 19, 2024
1 parent 2ea1fa3 commit 5d7da48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/homepage/ProjectBanner.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ const { src } = Astro.props
src.split(".").at(-1) === "mp4" ?
<video
src={src}
class=" z-50 size-full object-cover transition-transform duration-700 group-hover:scale-[1.01]"
class="z-50 size-full object-cover transition-transform duration-700 group-hover:scale-[1.01]"
playsinline
muted
loop
/>
: <img
src={src}
class=" size-full object-cover transition-transform duration-700 group-hover:scale-[1.01]"
class="size-full object-cover transition-transform duration-700 group-hover:scale-[1.01]"
alt=""
/>
}
Expand All @@ -56,6 +56,7 @@ const { src } = Astro.props
height: 100%;
flex-grow: 1;
max-height: none;
width: 100%;
clip-path: polygon(0 0, 100% 0, 100% 100%, 4rem 100%);
@apply rounded-l-none rounded-r-3xl;
flex-shrink: 9999;
Expand Down
2 changes: 1 addition & 1 deletion src/components/homepage/ProjectCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface Props {
---

<div
class="relative flex size-full h-[26rem] items-stretch bg-black @container"
class="relative flex size-full h-[26rem] items-stretch overflow-hidden rounded-3xl bg-black @container"
class={Astro.props.class}
>
<slot />
Expand Down

0 comments on commit 5d7da48

Please sign in to comment.