Skip to content

Commit

Permalink
Update TNS link in topic page
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Apr 30, 2024
1 parent 0fa4dfe commit 6c977a2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/TopicDetail/TopicDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
>
Expand All @@ -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({
Expand Down

0 comments on commit 6c977a2

Please sign in to comment.