|
|
|
@ -560,46 +560,20 @@ export function TopicDetail(props: TopicDetailProps) { |
|
|
|
|
)} |
|
|
|
|
</> |
|
|
|
|
)} |
|
|
|
|
{/* Contribution */} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{canSubmitContribution && |
|
|
|
|
!hasEnoughLinks && |
|
|
|
|
contributionUrl && |
|
|
|
|
activeTab === 'content' && |
|
|
|
|
hasContent && ( |
|
|
|
|
<div className="mt-3 mb-12 border-t text-sm text-gray-400 sm:mt-12"> |
|
|
|
|
<h2 className="mt-4 mb-1 text-base font-medium text-black"> |
|
|
|
|
Help us add learning resources |
|
|
|
|
</h2> |
|
|
|
|
<p className="mb-4 leading-relaxed"> |
|
|
|
|
This popup should be a brief introductory paragraph for |
|
|
|
|
the topic and a few links to good articles, videos, or any |
|
|
|
|
other self-vetted learning resources. Please consider |
|
|
|
|
submitting a PR to improve this content. |
|
|
|
|
</p> |
|
|
|
|
<a |
|
|
|
|
href={contributionUrl} |
|
|
|
|
target={'_blank'} |
|
|
|
|
className="flex w-full items-center justify-center rounded-md bg-gray-800 p-2 text-sm text-white transition-colors hover:bg-black hover:text-white disabled:bg-green-200 disabled:text-black" |
|
|
|
|
> |
|
|
|
|
<GitHubIcon className="mr-2 inline-block h-4 w-4 text-white" /> |
|
|
|
|
Help us Improve this Content |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
{resourceId === 'devops' && activeTab === 'content' && ( |
|
|
|
|
<div className="mt-4"> |
|
|
|
|
<a |
|
|
|
|
href={tnsLink} |
|
|
|
|
href={contributionUrl} |
|
|
|
|
target="_blank" |
|
|
|
|
className="hidden rounded-md border bg-gray-200 px-2 py-2 text-sm hover:bg-gray-300 sm:block" |
|
|
|
|
className="hidden rounded-md border bg-gray-200 px-2 py-2 text-sm hover:bg-gray-300 sm:flex items-center justify-center" |
|
|
|
|
> |
|
|
|
|
<span className="badge mr-1.5">Partner</span> |
|
|
|
|
Get the latest {resourceTitleFromId(resourceId)} news from our |
|
|
|
|
sister site{' '} |
|
|
|
|
<span className="font-medium underline underline-offset-1"> |
|
|
|
|
TheNewStack.io |
|
|
|
|
</span> |
|
|
|
|
<GitHubIcon className="mr-2 inline-block h-4 w-4 text-current" /> |
|
|
|
|
Help us Improve this Content |
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
<a |
|
|
|
|