Skip to content
Snippets Groups Projects
Commit 716570ae authored by Andris Borbás's avatar Andris Borbás
Browse files

Refactor gallery rounding

parent 0b93949f
No related branches found
No related tags found
1 merge request!3CI
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
...@@ -39,12 +39,12 @@ export default function Gallery({ works }: GalleryProps): JSX.Element { ...@@ -39,12 +39,12 @@ export default function Gallery({ works }: GalleryProps): JSX.Element {
}} }}
> >
<img <img
className="hover:z-20 transform-gpu hover:scale-105 transition ease-in-out" className="hover:z-20 rounded-t-lg transform-gpu hover:scale-105 transition ease-in-out"
src={work.image.src} src={work.image.src}
alt={work.title} alt={work.title}
/> />
</button> </button>
<figcaption className="p-4 bg-gray-900"> <figcaption className="p-4 bg-gray-900 rounded-b-lg">
<h4 className="pb-3 text-white text-lg">{work.title}</h4> <h4 className="pb-3 text-white text-lg">{work.title}</h4>
<h5 className="text-gray-400 text-sm">{work.author}</h5> <h5 className="text-gray-400 text-sm">{work.author}</h5>
</figcaption> </figcaption>
......
...@@ -84,14 +84,6 @@ body { ...@@ -84,14 +84,6 @@ body {
break-inside: avoid; break-inside: avoid;
} }
.work-gallery img {
@apply rounded-t-lg;
}
.work-gallery figcaption {
@apply rounded-b-lg;
}
@media (min-width: 768px) { @media (min-width: 768px) {
.work-gallery { .work-gallery {
-webkit-column-gap: 1rem; -webkit-column-gap: 1rem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment