From c84e7d41bbbd49ee263723253e327b6bec35bcd1 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 14 Aug 2021 14:01:42 +0200 Subject: [PATCH] Divide home in components --- components/footer.tsx | 41 ++++++++ components/header.tsx | 28 ++++++ components/opensource-banner.tsx | 46 +++++++++ components/updates-banner.tsx | 28 ++++++ {pages/icons => icons}/video-icon.tsx | 0 pages/icons/text-icon.tsx | 20 ---- pages/index.tsx | 136 ++------------------------ pages/roadmaps/index.tsx | 5 + 8 files changed, 157 insertions(+), 147 deletions(-) create mode 100644 components/footer.tsx create mode 100644 components/header.tsx create mode 100644 components/opensource-banner.tsx create mode 100644 components/updates-banner.tsx rename {pages/icons => icons}/video-icon.tsx (100%) delete mode 100644 pages/icons/text-icon.tsx create mode 100644 pages/roadmaps/index.tsx diff --git a/components/footer.tsx b/components/footer.tsx new file mode 100644 index 000000000..bf2b999d8 --- /dev/null +++ b/components/footer.tsx @@ -0,0 +1,41 @@ +import { Box, Container, Flex, Image, Link, Stack, Text } from '@chakra-ui/react'; + +export function Footer() { + return ( + + + + Roadmaps + Guides + Videos + Podcasts + About + YouTube + + + + + + + roadmap.sh + + by + @kamranahmedse + + + Community created roadmaps, articles, resources and + journeys to help you choose your path and grow in your career. + + + © roadmap.sh· + FAQs· + Terms· + Privacy + + + + + ); +} diff --git a/components/header.tsx b/components/header.tsx new file mode 100644 index 000000000..826858ede --- /dev/null +++ b/components/header.tsx @@ -0,0 +1,28 @@ +import { Box, Container, Flex, Image, Link, Stack } from '@chakra-ui/react'; + +export function Header() { + return ( + + + + + + roadmap.sh + + + Read + Watch + Get Updates + + + + + ); +} diff --git a/components/opensource-banner.tsx b/components/opensource-banner.tsx new file mode 100644 index 000000000..f1deec4e3 --- /dev/null +++ b/components/opensource-banner.tsx @@ -0,0 +1,46 @@ +import { Box, Container, Heading, Link, Text } from '@chakra-ui/react'; + +export function OpensourceBanner() { + return ( + + + Open Source + The project is OpenSource,  + 7th most starred project on GitHub and is visited by hundreds of thousands of + developers every month. +