Skip to content

Commit f6f3e85

Browse files
hotfix: banner size
1 parent 246207b commit f6f3e85

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

src/components/MacroThemeBanner/MacroThemeBanner.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ export function MacroThemeBanner({
1717
priorityImage = true,
1818
}: Props) {
1919
const title = content.name;
20+
const iconId = macroThemes[content.id] || "list";
2021

2122
const derivedTags = content.tags || [];
2223
const backgroundUrl = content.banner?.url ?? "";
2324

2425
return (
2526
<section className={cn(`relative w-full`, className)}>
26-
<div className="relative w-full overflow-hidden z-0">
27+
<div className="relative z-0 w-full overflow-hidden">
2728
{backgroundUrl ? (
2829
<Image
2930
className="absolute inset-0 w-full h-full object-cover object-[center_43%]"
@@ -37,37 +38,36 @@ export function MacroThemeBanner({
3738
<div className="absolute inset-0 bg-neutral-900" />
3839
)}
3940

40-
<div className="absolute inset-0 bg-[linear-gradient(90deg,_#000000_0%,_rgba(0,0,0,0)_100%)] opacity-100" />
41-
<div className="absolute top-0 right-0 h-full w-full bg-gradient-to-l from-black via-transparent to-transparent"></div>
41+
<div className="absolute inset-0 bg-[linear-gradient(90deg,_#000000_0%,_rgba(0,0,0,0)_100%)]" />
4242

4343
<div className="relative z-10 w-full">
44-
<div className="w-full max-w-[1440px] mx-auto px-4 sm:px-6 lg:px-20">
45-
<div className="min-h-[500px] py-12 flex items-end">
46-
<div className="flex flex-col md:flex-row items-center md:items-start gap-6 md:gap-9 w-full">
44+
<div className="mx-auto w-full max-w-[1440px] px-4 sm:px-6 lg:px-0">
45+
<div className="flex min-h-[296px] items-end px-4 py-8 sm:px-6 lg:h-[296px] lg:min-h-[296px] lg:px-20 lg:py-12">
46+
<div className="flex w-full flex-col items-center gap-6 md:flex-row md:items-end lg:gap-9">
4747
<div
48-
className="flex items-center justify-center p-8 rounded-[8px] shrink-0"
48+
className="flex h-32 w-32 shrink-0 items-center justify-center rounded-[8px] p-2 sm:h-40 sm:w-40 lg:h-[200px] lg:w-[200px]"
4949
style={{ backgroundColor: content.color }}
5050
>
5151
<Icon
52-
id={macroThemes[content.id]}
53-
width={168}
54-
height={117}
55-
className="h-40 lg:h-32 w-40 lg:w-32 filter brightness-0 invert opacity-100"
52+
id={iconId}
53+
width={184}
54+
height={184}
55+
className="h-24 w-24 text-white sm:h-32 sm:w-32 lg:h-[184px] lg:w-[184px]"
5656
/>
5757
</div>
5858

59-
<div className="flex flex-col gap-4 sm:gap-5 lg:gap-6 w-full max-w-[1044px]">
60-
<div className="flex flex-col gap-2 md:text-left text-center">
61-
<h1 className="text-white font-extrabold text-2xl sm:text-3xl md:text-4xl lg:text-[48px] leading-tight lg:leading-[48px] tracking-tight lg:tracking-[-0.012em]">
59+
<div className="flex w-full max-w-[1044px] flex-col gap-4 sm:gap-5 lg:gap-5">
60+
<div className="flex flex-col gap-2 text-center md:text-left">
61+
<h1 className="text-white text-2xl font-extrabold leading-tight tracking-tight sm:text-3xl md:text-4xl lg:text-[48px] lg:leading-[48px] lg:tracking-[-0.012em]">
6262
{title}
6363
</h1>
6464

6565
{!!derivedTags?.length && (
66-
<div className="flex flex-row flex-wrap gap-2 justify-center md:justify-start">
66+
<div className="flex flex-row flex-wrap justify-center gap-2 md:justify-start">
6767
{derivedTags.map((tag) => (
6868
<span
6969
key={tag}
70-
className="flex items-center justify-center px-[10px] py-[2px] h-[20px] rounded-full bg-[#D65384] text-white text-[12px] leading-[16px] font-semibold"
70+
className="flex h-[29px] items-center justify-center rounded-full bg-[#D65384] px-[10px] py-[2px] text-[14px] leading-[16px] font-semibold text-white"
7171
>
7272
{tag}
7373
</span>
@@ -78,9 +78,9 @@ export function MacroThemeBanner({
7878

7979
{!!content.description?.json && (
8080
<div
81-
className="prose prose-invert max-w-[1044px] md:text-left text-center
82-
prose-p:text-sm prose-p:sm:text-base prose-p:lg:text-[16px]
83-
prose-p:leading-relaxed prose-p:lg:leading-[150%] prose-p:font-medium"
81+
className="prose prose-invert max-w-[1044px] text-center md:text-left
82+
prose-p:my-0 prose-p:text-sm prose-p:font-medium prose-p:leading-relaxed
83+
prose-p:sm:text-base prose-p:lg:text-[16px] prose-p:lg:leading-[150%]"
8484
>
8585
{documentToReactComponents(content.description.json)}
8686
</div>

0 commit comments

Comments
 (0)