diff --git a/src/components/ResourcesAlert.astro b/src/components/ResourcesAlert.astro index bc1e6f460..f9d5a2494 100644 --- a/src/components/ResourcesAlert.astro +++ b/src/components/ResourcesAlert.astro @@ -1,5 +1,5 @@ --- -import Icon from "./Icon.astro"; +import Icon from './Icon.astro'; export interface Props { roadmapPermalink: string; @@ -8,40 +8,68 @@ export interface Props { const { roadmapPermalink } = Astro.props; const roadmapId = roadmapPermalink.replace(/\//, ''); -const roadmapTitle = roadmapId === 'devops' ? 'DevOps' : `${roadmapId.charAt(0).toUpperCase()} ${roadmapId.slice(1)}`; +const hasTNSBanner = ['frontend', 'backend', 'devops'].includes(roadmapId); +const roadmapTitle = + roadmapId === 'devops' + ? 'DevOps' + : `${roadmapId.charAt(0).toUpperCase()}${roadmapId.slice(1)}`; --- -
- - +
+ { + hasTNSBanner && ( + + ) + } -