Skip to content

Commit

Permalink
fix: now the back of the dev card no longer peers through when flippe…
Browse files Browse the repository at this point in the history
…d on Safari and Firefox (#3931)
  • Loading branch information
nickytonline authored Aug 12, 2024
1 parent 7236be5 commit eb9f458
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/molecules/DevCard/dev-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Tilt from "react-parallax-tilt";
import { FiGlobe } from "react-icons/fi";
import { PiCrownSimpleFill } from "react-icons/pi";
import { HiArrowNarrowRight, HiTrendingDown, HiTrendingUp } from "react-icons/hi";
import clsx from "clsx";
import Button from "components/shared/Button/button";
import openSaucedImg from "img/openSauced-icon.png";
import { getRelativeDays } from "lib/utils/date-utils";
Expand Down Expand Up @@ -61,7 +62,7 @@ export default function DevCard(props: DevCardProps) {

return (
<div
className="DevCard"
className="DevCard select-none"
style={{
width: "245px",
height: "348px",
Expand Down Expand Up @@ -102,7 +103,12 @@ export default function DevCard(props: DevCardProps) {
height={348}
/>

<div className="z-10 flex flex-col gap-2 items-center justify-center w-full h-full text-white">
<div
className={clsx(
"z-10 flex flex-col gap-2 items-center justify-center w-full h-full text-white",
isFlipped && "invisible"
)}
>
{/** Avatar + @Username **/}
<div className="flex flex-col items-center gap-1">
<Image
Expand Down

0 comments on commit eb9f458

Please sign in to comment.