From 4f9153fdb34069b3605207df7f4670b358ad280d Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 3 Jan 2023 15:34:12 +0400 Subject: [PATCH] Add terms and privacy pages and sponsor --- src/components/RoadmapHeader.astro | 1 + src/components/Sponsor/Sponsor.astro | 39 ++++++++ src/components/Sponsor/sponsor.js | 8 ++ src/layouts/BaseLayout.astro | 8 +- src/layouts/MarkdownLayout.astro | 9 ++ src/lib/roadmap.ts | 34 ++++--- src/pages/[roadmapId]/index.astro | 2 +- src/pages/privacy.md | 78 ++++++++++++++++ src/pages/terms.md | 127 +++++++++++++++++++++++++++ src/roadmaps/devops/devops.md | 5 ++ 10 files changed, 294 insertions(+), 17 deletions(-) create mode 100644 src/components/Sponsor/Sponsor.astro create mode 100644 src/components/Sponsor/sponsor.js create mode 100644 src/layouts/MarkdownLayout.astro create mode 100644 src/pages/privacy.md create mode 100644 src/pages/terms.md diff --git a/src/components/RoadmapHeader.astro b/src/components/RoadmapHeader.astro index 53799aaed..77e859c30 100644 --- a/src/components/RoadmapHeader.astro +++ b/src/components/RoadmapHeader.astro @@ -22,6 +22,7 @@ const { hasTopics = false, } = Astro.props; + const isRoadmapReady = !isUpcoming; --- diff --git a/src/components/Sponsor/Sponsor.astro b/src/components/Sponsor/Sponsor.astro new file mode 100644 index 000000000..d53894f9f --- /dev/null +++ b/src/components/Sponsor/Sponsor.astro @@ -0,0 +1,39 @@ +--- +export type SponsorType = { + url: string; + title: string; + imageUrl: string; + description: string; +}; + +export interface Props { + sponsor: SponsorType; +} + +const { + sponsor: { title, url, description, imageUrl }, +} = Astro.props; +--- + +