From 810cea40b3ea946dc066ded2d03d6d48d19e5350 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 28 Aug 2021 15:28:20 +0200 Subject: [PATCH] Responsive components --- components/content-page-header.tsx | 15 ++++++++------- components/footer.tsx | 4 ++-- components/md-renderer/mdx-components/p.tsx | 2 +- components/opensource-banner.tsx | 6 +++--- components/updates-banner.tsx | 2 +- pages/about.tsx | 16 ++++++++++------ pages/guides/index.tsx | 6 +++--- pages/signup.tsx | 2 +- pages/thanks.tsx | 1 + pages/watch/index.tsx | 2 +- 10 files changed, 31 insertions(+), 25 deletions(-) diff --git a/components/content-page-header.tsx b/components/content-page-header.tsx index 65169acb0..78f2ac898 100644 --- a/components/content-page-header.tsx +++ b/components/content-page-header.tsx @@ -10,20 +10,21 @@ export function ContentPageHeader(props: GuideHeaderProps) { const { title, subtitle } = props; return ( - - - + + + Kamran Ahmed · Monday, May 4, 2021 - · - Improve this Guide + · + Improve this Guide - {title} - {subtitle} + {title} + {subtitle} ); diff --git a/components/footer.tsx b/components/footer.tsx index cb6d11eba..d557b9450 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -27,11 +27,11 @@ function NavigationLinks() { export function Footer() { return ( - + - + diff --git a/components/md-renderer/mdx-components/p.tsx b/components/md-renderer/mdx-components/p.tsx index e0e9662c3..da8d54396 100644 --- a/components/md-renderer/mdx-components/p.tsx +++ b/components/md-renderer/mdx-components/p.tsx @@ -6,5 +6,5 @@ type EnrichedTextType = { } export default function EnrichedText(props: EnrichedTextType) { - return {props.children}; + return {props.children}; } diff --git a/components/opensource-banner.tsx b/components/opensource-banner.tsx index 80383f9a4..f2e4b5564 100644 --- a/components/opensource-banner.tsx +++ b/components/opensource-banner.tsx @@ -2,10 +2,10 @@ import { Box, Container, Heading, Link, Text } from '@chakra-ui/react'; export function OpensourceBanner() { return ( - + Open Source - The project is OpenSource,  + The project is OpenSource,  - A considerable amount of my time is spent doing unpaid + A considerable amount of my time is spent doing unpaid community work on things that I hope will help humanity in some way. Your sponsorship helps me continue to produce more open-source and free educational material consumed by hundreds of thousands of developers every month. diff --git a/components/updates-banner.tsx b/components/updates-banner.tsx index f38af6c9a..deb2bb9e8 100644 --- a/components/updates-banner.tsx +++ b/components/updates-banner.tsx @@ -2,7 +2,7 @@ import { Box, Button, Container, Flex, Heading, Stack, Text } from '@chakra-ui/r export function UpdatesBanner() { return ( - + Stay Informed diff --git a/pages/about.tsx b/pages/about.tsx index 346c130fa..686626d7f 100644 --- a/pages/about.tsx +++ b/pages/about.tsx @@ -8,19 +8,23 @@ import MdRenderer from '../components/md-renderer'; function AboutHeader() { return ( - + - + - Hello, I am Kamran - Ahmed - + Hello, I am + Kamran Ahmed + + I created roadmap.sh to help developers find their path if they are confused and help them grow in their career. - +