1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-25 10:14:20 +02:00

Update TNS link in topic page

This commit is contained in:
Kamran Ahmed
2024-04-30 18:59:43 +01:00
parent 0fa4dfe93e
commit 6c977a2781

View File

@@ -214,6 +214,9 @@ export function TopicDetail(props: TopicDetailProps) {
const googleSearchUrl = `https://www.google.com/search?q=${topicHtmlTitle?.toLowerCase()} guide for ${resourceTitleForSearch}`;
const youtubeSearchUrl = `https://www.youtube.com/results?search_query=${topicHtmlTitle?.toLowerCase()} for ${resourceTitleForSearch}`;
const tnsLink =
'https://thenewstack.io/devops/?utm_source=roadmap.sh&utm_medium=Referral&utm_campaign=Topic';
return (
<div className={'relative z-50'}>
<div
@@ -351,7 +354,7 @@ export function TopicDetail(props: TopicDetailProps) {
{resourceId === 'devops' && (
<div className="mt-4">
<a
href={'https://thenewstack.io'}
href={tnsLink}
target="_blank"
className="hidden rounded-md border bg-gray-200 px-2 py-2 text-sm hover:bg-gray-300 sm:block"
>
@@ -364,9 +367,7 @@ export function TopicDetail(props: TopicDetailProps) {
</a>
<a
href={
'https://thenewstack.io/devops/?utm_source=roadmap.sh&utm_medium=Referral&utm_campaign=Topic'
}
href={tnsLink}
className="hidden rounded-md border bg-gray-200 px-2 py-1.5 text-sm hover:bg-gray-300 min-[390px]:block sm:hidden"
onClick={() => {
window.fireEvent({