mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-22 08:53:01 +02:00
Add team sponsor
This commit is contained in:
@@ -59,7 +59,7 @@ export function PageSponsor(props: PageSponsorProps) {
|
|||||||
currentPath.startsWith('/guides') ||
|
currentPath.startsWith('/guides') ||
|
||||||
currentPath.startsWith('/videos') ||
|
currentPath.startsWith('/videos') ||
|
||||||
currentPath.startsWith('/account') ||
|
currentPath.startsWith('/account') ||
|
||||||
currentPath.startsWith('/team')
|
currentPath.startsWith('/team/')
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -127,6 +127,8 @@ export function PageSponsor(props: PageSponsorProps) {
|
|||||||
|
|
||||||
const { url, title, imageUrl, description, company, gaLabel } = sponsor;
|
const { url, title, imageUrl, description, company, gaLabel } = sponsor;
|
||||||
|
|
||||||
|
const isRoadmapAd = title.toLowerCase() === 'advertise with us!';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
href={url}
|
href={url}
|
||||||
@@ -165,10 +167,16 @@ export function PageSponsor(props: PageSponsorProps) {
|
|||||||
<span className="mb-0.5 block font-semibold">{title}</span>
|
<span className="mb-0.5 block font-semibold">{title}</span>
|
||||||
<span className="block text-gray-500">{description}</span>
|
<span className="block text-gray-500">{description}</span>
|
||||||
</span>
|
</span>
|
||||||
<span className="sponsor-footer hidden sm:block">Partner Content</span>
|
{!isRoadmapAd && (
|
||||||
|
<>
|
||||||
|
<span className="sponsor-footer hidden sm:block">
|
||||||
|
Partner Content
|
||||||
|
</span>
|
||||||
<span className="block pb-1 text-center text-[10px] uppercase text-gray-400 sm:hidden">
|
<span className="block pb-1 text-center text-[10px] uppercase text-gray-400 sm:hidden">
|
||||||
Partner Content
|
Partner Content
|
||||||
</span>
|
</span>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user