@@ -2,7 +2,9 @@ import Link from "next/link"
22import { FormattedMessage , useIntl } from "react-intl"
33
44import mastodonLogo from "../public/logos/wordmark-white-text.svg"
5+ import merch from "../public/merch.jpg"
56import Image from "next/legacy/image"
7+ import NewImage from "next/image"
68import { useState , useEffect , useRef , useId } from "react"
79import classNames from "classnames"
810import { locales } from "../data/locales"
@@ -111,18 +113,6 @@ const Header = ({ transparent = true }: HeaderProps) => {
111113 />
112114 ) ,
113115 } ,
114- {
115- value : "https://shop.joinmastodon.org/" ,
116- label : (
117- < FormattedMessage id = "nav.merch.title" defaultMessage = "Merch" />
118- ) ,
119- description : (
120- < FormattedMessage
121- id = "nav.merch.description"
122- defaultMessage = "Support your friends building Mastodon (and look cool while doing it)."
123- />
124- ) ,
125- } ,
126116 {
127117 value : "/verification" ,
128118 label : (
@@ -139,6 +129,20 @@ const Header = ({ transparent = true }: HeaderProps) => {
139129 ) ,
140130 } ,
141131 ] ,
132+ banner : < div className = "md:px-3" >
133+ < a href = "https://shop.joinmastodon.org/" className = "block relative overflow-hidden rounded-md inset-ring" >
134+ < NewImage src = { merch } fill = { true } className = 'absolute z-0 object-cover' alt = '' />
135+
136+ < div className = "relative pt-32 text-white py-3 px-5 md:px-4 bg-overlay-gradient" >
137+ < span className = "block font-extrabold" > < FormattedMessage id = "nav.merch.title" defaultMessage = "Merch" /> </ span >
138+
139+ < span className = "mt-1 block font-extranormal" > < FormattedMessage
140+ id = "nav.merch.description"
141+ defaultMessage = "Support your friends building Mastodon."
142+ /> </ span >
143+ </ div >
144+ </ a >
145+ </ div > ,
142146 footer : {
143147 value : "https://github.com/mastodon/mastodon" ,
144148 label : (
@@ -292,6 +296,8 @@ const Header = ({ transparent = true }: HeaderProps) => {
292296 ) ) }
293297 </ ul >
294298
299+ { item . banner }
300+
295301 { item . footer && (
296302 < div className = "md:bg-gray-4 md:p-4" >
297303 < a
0 commit comments