From c0970175205a55ebbe34fd585d5d2fb12fbc6f26 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 1 Sep 2021 14:45:26 +0200 Subject: [PATCH] Homepage links update --- components/dimmed-more.tsx | 5 ++-- components/footer.tsx | 46 ++++++++++++++++++++++------------- components/global-header.tsx | 11 +++++---- components/updates-banner.tsx | 20 ++++++++++----- content/site.json | 3 +++ pages/index.tsx | 9 ++++--- 6 files changed, 61 insertions(+), 33 deletions(-) diff --git a/components/dimmed-more.tsx b/components/dimmed-more.tsx index 539f76e26..fda55c8a8 100644 --- a/components/dimmed-more.tsx +++ b/components/dimmed-more.tsx @@ -2,10 +2,11 @@ import { Box, Link, Text } from '@chakra-ui/react'; type DimmedMoreProps = { text: string; + href: string; }; export function DimmedMore(props: DimmedMoreProps) { - const { text } = props; + const { text, href } = props; return ( @@ -25,7 +26,7 @@ export function DimmedMore(props: DimmedMoreProps) { bg='green.600' color='white' p='7px 20px' - href={'#'} + href={href} fontWeight={800} fontSize='11px' textTransform='uppercase' diff --git a/components/footer.tsx b/components/footer.tsx index d557b9450..0bcaf9929 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -1,25 +1,33 @@ import { Box, Container, Flex, Image, Link, Stack, Text } from '@chakra-ui/react'; +import siteConfig from '../content/site.json'; function NavigationLinks() { return ( <> - Roadmaps - Guides - Videos - Podcasts - About - YouTube + Roadmaps + Guides + Videos + Podcasts + About + YouTube - Roadmaps - Guides - Videos - Podcasts - Thanks - About - YouTube + Roadmaps + Guides + Videos + Podcasts + Thanks + About + YouTube ); @@ -40,7 +48,8 @@ export function Footer() { by @kamranahmedse + _hover={{ textDecoration: 'none', bg: 'blue.600' }} href={siteConfig.url.twitter} + target='_blank'>@kamranahmedse Community created roadmaps, articles, resources and @@ -48,9 +57,12 @@ export function Footer() { © roadmap.sh· - FAQs· - Terms· - Privacy + FAQs· + Terms· + Privacy diff --git a/components/global-header.tsx b/components/global-header.tsx index 3fb06541e..1217b780d 100644 --- a/components/global-header.tsx +++ b/components/global-header.tsx @@ -42,7 +42,7 @@ function DesktopMenuLinks() { Subscribe + fontWeight={500} href={'/signup'}>Subscribe ); } @@ -59,13 +59,14 @@ function MobileMenuLinks() { cursor='pointer' /> - Roadmaps - Guides - Videos - Subscribe + Subscribe ); diff --git a/components/updates-banner.tsx b/components/updates-banner.tsx index deb2bb9e8..9e6c6ad9d 100644 --- a/components/updates-banner.tsx +++ b/components/updates-banner.tsx @@ -1,8 +1,10 @@ -import { Box, Button, Container, Flex, Heading, Stack, Text } from '@chakra-ui/react'; +import { Box, Button, Container, Flex, Heading, Link, Text } from '@chakra-ui/react'; +import siteConfig from '../content/site.json'; export function UpdatesBanner() { return ( - + Stay Informed @@ -12,15 +14,21 @@ export function UpdatesBanner() { - Free subscription for updates - + Support the project by paying as little as 5$ per month diff --git a/content/site.json b/content/site.json index 608401796..3833d9bb5 100644 --- a/content/site.json +++ b/content/site.json @@ -9,7 +9,10 @@ "logoSquare": "/brand-square.png", "url": { "web": "https://roadmap.sh", + "twitter": "https://twitter.com/kamranahmedse", + "youtube": "https://youtube.com/theroadmap?sub_confirmation=1", "repo": "https://github.com/kamranahmedse/roadmap.sh", + "sponsor": "https://github.com/sponsors/kamranahmedse", "repoData": "https://github.com/kamranahmedse/roadmap.sh/tree/master/content", "addGuide": "https://github.com/kamranahmedse/roadmap.sh/tree/master/contributing/guide.md", "addRoadmap": "https://github.com/kamranahmedse/roadmap.sh/tree/master/contributing/roadmap.md", diff --git a/pages/index.tsx b/pages/index.tsx index 9ceeeeeb8..513e2367a 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -11,6 +11,7 @@ import { HomeRoadmapItem } from './roadmaps/components/home-roadmap-item'; import { getFeaturedRoadmaps, RoadmapType } from '../lib/roadmap'; import { getAllGuides, GuideType } from '../lib/guide'; import { getAllVideos, VideoType } from '../lib/video'; +import siteConfig from '../content/site.json'; type HomeProps = { roadmaps: RoadmapType[]; @@ -34,7 +35,9 @@ export default function Home(props: HomeProps) { to help guide the developers in picking up the path and guide their learnings. - We also have a We also have a YouTube channel which we hope you are going to love. @@ -68,7 +71,7 @@ export default function Home(props: HomeProps) { subtitle={guide.formattedUpdatedAt} /> ))} - + @@ -99,7 +102,7 @@ export default function Home(props: HomeProps) { } /> ))} - +