From 5dfd43b1e498d0cff4f59efff82d481b471a0e89 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 4 Jan 2023 20:16:09 +0400 Subject: [PATCH] Update android roadmap --- src/components/ResourcesAlert.astro | 64 +++++++++++++++++++++-------- src/roadmaps/android/android.md | 12 +++--- 2 files changed, 52 insertions(+), 24 deletions(-) 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 && ( + + ) + } -