Skip to content

Commit 9efec66

Browse files
Merge pull request #211 from oscafrica/fix/gallery-page
fix: stretched gallery image
2 parents b5c499f + 5b8b4e0 commit 9efec66

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/2023/footer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Footer(props) {
3030
Thank You<span className="text-[#F7931E]">.</span>
3131
</h1>
3232
<div className="lg:basis-1/4">
33-
<h1 className="font-clashDisplay font-black p-1 text-xl lg:text-3xl uppercase">❤️ from the osca team</h1>
33+
<h1 className="font-clashDisplay font-black p-1 text-xl lg:text-3xl uppercase">🧡 from the osca team</h1>
3434
<div className="z-10 mt-8">
3535
{[
3636
{

src/components/2023/gallery.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { gallery } from "./cloudImages";
44

55
function Gallery() {
66
return (
7-
<section id="gallery" className="bg-white lg:flex-row">
8-
<div className="flex flex-col lg:flex-row lg:flex-wrap justify-center text-white">
7+
<section id="gallery" className="bg-white">
8+
<div className="grid lg:grid-cols-2 gap-4 lg:gap-6 text-white">
99
{[
1010
{
1111
day: "Day 0",
@@ -31,10 +31,10 @@ function Gallery() {
3131
key={gallery.day}
3232
target="_blank"
3333
rel="noopener noreferrer"
34-
className={`group overflow-hidden p-3 ${gallery.day === "Day 0" ? "lg:basis-full" : "lg:basis-1/2"}`}
34+
className={`group overflow-hidden p-3 ${gallery.day === "Day 0" ? "lg:col-start-1 lg:col-end-3" : ""}`}
3535
>
3636
<img
37-
className="group-hover:scale-125 transition-all ease-in-out delay-0 w-auto mx-auto h-full brightness-75"
37+
className="group-hover:scale-125 transition-all ease-in-out delay-0 mx-auto h-full w-full brightness-75"
3838
src={gallery.image}
3939
alt={`An amazing photograph from ${gallery.tag}.`}
4040
/>

0 commit comments

Comments
 (0)