Skip to content

Commit 6979a7f

Browse files
committed
feat: make company logo backdrop transparent and adjust image size for large screens
1 parent af05bf6 commit 6979a7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/Tiles/ExperienceTile.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export function ExperienceTile({
2020
responsibilities,
2121
}: ExperienceTileProps) {
2222
const isTablet = useMediaQuery('(min-width: 768px)');
23+
const isDesktop = useMediaQuery('(min-width: 1280px)');
2324
return (
2425
<div
2526
className={
@@ -31,13 +32,13 @@ export function ExperienceTile({
3132
<div className="group relative flex-grow lg:-ml-[132px] xl:-ml-40 2xl:-ml-52">
3233
{isTablet && (
3334
<div className="opacity-0 transition-opacity delay-100 md:group-hover:opacity-100">
34-
<div className="absolute top-1/2 aspect-square -translate-y-1/2 transform rounded-lg bg-white">
35+
<div className="absolute top-1/2 aspect-square -translate-y-1/2 transform rounded-lg bg-transparent">
3536
{/* // center the bullet : `top-1/2 transform -translate-y-1/2` */}
3637
<img
3738
src={companyLogo}
3839
alt={`${companyName} logo`}
39-
width={80}
40-
height={80}
40+
width={isDesktop ? 80 : 70}
41+
height={isDesktop ? 80 : 70}
4142
className="rounded-md"
4243
/>
4344
</div>

0 commit comments

Comments
 (0)