From 11f5b22cb44a5002c9b2056b14c8a0d544644afc Mon Sep 17 00:00:00 2001 From: Athou Date: Mon, 15 Aug 2022 18:32:18 +0200 Subject: [PATCH] reorganize about page a little --- commafeed-client/src/pages/app/AboutPage.tsx | 28 +++++++++++++------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/commafeed-client/src/pages/app/AboutPage.tsx b/commafeed-client/src/pages/app/AboutPage.tsx index dfc9a3bf..6b5ce96c 100644 --- a/commafeed-client/src/pages/app/AboutPage.tsx +++ b/commafeed-client/src/pages/app/AboutPage.tsx @@ -1,5 +1,5 @@ import { t, Trans } from "@lingui/macro" -import { Anchor, Box, Center, Container, Group, List, NativeSelect, SimpleGrid, Title } from "@mantine/core" +import { Anchor, Box, Center, Container, createStyles, List, NativeSelect, SimpleGrid, Title } from "@mantine/core" import { Constants } from "app/constants" import { redirectToApiDocumentation } from "app/slices/redirect" import { useAppDispatch, useAppSelector } from "app/store" @@ -8,13 +8,23 @@ import { KeyboardShortcutsHelp } from "components/KeyboardShortcutsHelp" import React, { useState } from "react" import { TbHelp, TbKeyboard, TbPuzzle, TbRocket } from "react-icons/tb" +const useStyles = createStyles(() => ({ + sectionTitle: { + display: "flex", + alignItems: "center", + }, +})) + function Section(props: { title: string; icon: React.ReactNode; children: React.ReactNode }) { + const { classes } = useStyles() return ( - - - {props.icon} - {props.title} - + + + {props.icon} + + {props.title} + + {props.children} ) @@ -105,9 +115,6 @@ export function AboutPage() { -
}> - -
}> @@ -150,6 +157,9 @@ export function AboutPage() {
+
}> + +
}> dispatch(redirectToApiDocumentation())}> Go to the API documentation.