From a85497d7e764ba62ab4a22609e2a8af5dcbecd58 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 20 Aug 2021 15:49:34 +0200 Subject: [PATCH] Add guide header and guide page --- components/guide-header.tsx | 30 ++++++++++++++++++++++++++++++ pages/guides/[guide].tsx | 27 +++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 components/guide-header.tsx create mode 100644 pages/guides/[guide].tsx diff --git a/components/guide-header.tsx b/components/guide-header.tsx new file mode 100644 index 000000000..c0b78ff2a --- /dev/null +++ b/components/guide-header.tsx @@ -0,0 +1,30 @@ +import { Box, Container, Flex, Heading, Image, Link, Text } from '@chakra-ui/react'; +import React from 'react'; + +type GuideHeaderProps = { + title: string; + subtitle: string; +}; + +export function GuideHeader(props: GuideHeaderProps) { + const { title, subtitle } = props; + + return ( + + + + + + Kamran Ahmed + + · + Monday, May 4, 2021 + · + Improve this Guide + + {title} + {subtitle} + + + ); +} diff --git a/pages/guides/[guide].tsx b/pages/guides/[guide].tsx new file mode 100644 index 000000000..48f667ff6 --- /dev/null +++ b/pages/guides/[guide].tsx @@ -0,0 +1,27 @@ +import { Box, Container } from '@chakra-ui/react'; +import { Header } from '../../components/header'; +import { OpensourceBanner } from '../../components/opensource-banner'; +import { UpdatesBanner } from '../../components/updates-banner'; +import { Footer } from '../../components/footer'; +import { GuideHeader } from '../../components/guide-header'; + +export default function Guide() { + return ( + +
+ + + + + + + + + +