-
Notifications
You must be signed in to change notification settings - Fork 4
Sponser Responsive #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,27 +21,27 @@ const SponsorCard = ({ name, img }) => ( | |||||
| </span> | ||||||
| )} | ||||||
| </div> | ||||||
| <span className="font-bold text-[#FDF8E2] drop-shadow-md text-[7px] md:text-[9px] uppercase tracking-widest truncate w-full text-center"> | ||||||
| <span className="font-bold text-[#FDF8E2] drop-shadow-md text-[8px] sm:text-[9px] md:text-[10px] uppercase tracking-widest truncate w-full text-center px-1"> | ||||||
| {name} | ||||||
| </span> | ||||||
| </div> | ||||||
| ); | ||||||
|
|
||||||
| /* ---------------- 2. CATEGORY GROUP BOX ---------------- */ | ||||||
| const CategoryGroup = ({ title, sponsors }) => ( | ||||||
| <div className="relative shrink-0 mx-3 md:mx-5 mt-4"> | ||||||
| <div className="relative shrink-0 mx-2 sm:mx-3 md:mx-5 mt-8 md:mt-4 w-full md:w-auto px-4 md:px-0"> | ||||||
| {/* Category Title Badge */} | ||||||
| <div className="absolute -top-3 left-1/2 -translate-x-1/2 z-20 bg-gradient-to-r from-[#8B6508] via-[#C5A059] to-[#8B6508] px-4 py-1 rounded-sm shadow-[0_0_10px_rgba(197,160,89,0.5)] border border-[#FDF8E2]/30 whitespace-nowrap"> | ||||||
| <h3 className="text-[#FDF8E2] text-[9px] md:text-xs font-black tracking-[0.2em] uppercase"> | ||||||
| <div className="absolute -top-[14px] left-1/2 -translate-x-1/2 z-20 bg-gradient-to-r from-[#8B6508] via-[#C5A059] to-[#8B6508] px-3 sm:px-4 py-1 rounded-sm shadow-[0_0_15px_rgba(197,160,89,0.5)] border border-[#FDF8E2]/40 whitespace-nowrap"> | ||||||
| <h3 className="text-[#FDF8E2] text-[9px] sm:text-[10px] md:text-xs font-black tracking-[0.2em] uppercase"> | ||||||
| {title} | ||||||
| </h3> | ||||||
| </div> | ||||||
|
|
||||||
| {/* Sponsor Grid Container - 2 Rows, Horizontal Flow */} | ||||||
| <div className="p-3 md:p-4 pt-6 md:pt-8 border-[1.5px] border-[#C5A059] bg-black/40 backdrop-blur-xl rounded-xl shadow-[0_0_20px_rgba(197,160,89,0.15)] flex justify-center h-full"> | ||||||
| <div className="grid grid-rows-2 grid-flow-col gap-2 md:gap-4"> | ||||||
| {/* Sponsor Grid Container */} | ||||||
| <div className="p-4 sm:p-5 pt-8 md:pt-9 border-[1.5px] border-[#C5A059] bg-black/40 backdrop-blur-xl rounded-xl shadow-[0_0_20px_rgba(197,160,89,0.15)] flex justify-center h-full"> | ||||||
| <div className="grid grid-cols-2 md:grid-rows-2 md:grid-flow-col gap-3 md:gap-4 lg:gap-6 w-full md:w-auto"> | ||||||
| {sponsors.map((s, idx) => ( | ||||||
| <div key={idx} className="w-[85px] md:w-[105px] lg:w-[115px]"> | ||||||
| <div key={idx} className="w-full md:w-[110px] lg:w-[125px] aspect-square md:aspect-auto"> | ||||||
|
||||||
| <div key={idx} className="w-full md:w-[110px] lg:w-[125px] aspect-square md:aspect-auto"> | |
| <div key={idx} className="w-full md:w-[110px] lg:w-[125px]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At md+ breakpoints this grid still has
grid-cols-2applied (because it isn’t overridden), which can interact unexpectedly withmd:grid-flow-col/md:grid-rows-2and produce inconsistent column sizing/implicit columns. Consider adding an explicit md column template (e.g.,md:grid-cols-noneor a specificmd:grid-cols-*) that matches the intended desktop marquee layout.