From fac8a9d4ff1d151f4ee6ec01998952005c6b8b04 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Sun, 28 Aug 2022 15:38:52 +0200 Subject: [PATCH] fix ul > li styles, add docs link to pages --- client/components/build/Center/Page.module.scss | 8 +++++--- client/components/build/RightSidebar/sections/Links.tsx | 8 +++++++- client/constants/index.ts | 1 + client/pages/index.tsx | 8 +++++++- client/public/locales/en/builder.json | 1 + client/public/locales/en/landing.json | 1 + 6 files changed, 22 insertions(+), 5 deletions(-) diff --git a/client/components/build/Center/Page.module.scss b/client/components/build/Center/Page.module.scss index db347286..a9cdd02f 100644 --- a/client/components/build/Center/Page.module.scss +++ b/client/components/build/Center/Page.module.scss @@ -28,9 +28,11 @@ } } - ul { - padding-left: 1.5em; - text-indent: -1.5em; + .markdown { + ul { + padding-left: 1.5em; + text-indent: -1.5em; + } } } diff --git a/client/components/build/RightSidebar/sections/Links.tsx b/client/components/build/RightSidebar/sections/Links.tsx index caabed14..1d85e66b 100644 --- a/client/components/build/RightSidebar/sections/Links.tsx +++ b/client/components/build/RightSidebar/sections/Links.tsx @@ -3,7 +3,7 @@ import { Button } from '@mui/material'; import { useTranslation } from 'next-i18next'; import Heading from '@/components/shared/Heading'; -import { DONATION_URL, GITHUB_ISSUES_URL, GITHUB_URL } from '@/constants/index'; +import { DOCS_URL, DONATION_URL, GITHUB_ISSUES_URL, GITHUB_URL } from '@/constants/index'; import styles from './Links.module.scss'; @@ -49,6 +49,12 @@ const Links = () => { {t('builder.rightSidebar.sections.links.github')} + + + + diff --git a/client/constants/index.ts b/client/constants/index.ts index 54f24216..3e776805 100644 --- a/client/constants/index.ts +++ b/client/constants/index.ts @@ -9,6 +9,7 @@ export const VALID_URL_REGEX = /[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6} export const FILENAME_TIMESTAMP = 'DDMMYYYYHHmmss'; // Links +export const DOCS_URL = 'https://docs.rxresu.me'; export const DONATION_URL = 'https://paypal.me/RajaRajanA'; export const TRANSLATE_URL = 'https://translate.rxresu.me/'; export const DIGITALOCEAN_URL = 'https://pillai.xyz/digitalocean'; diff --git a/client/pages/index.tsx b/client/pages/index.tsx index a4d787da..73917ed5 100644 --- a/client/pages/index.tsx +++ b/client/pages/index.tsx @@ -20,7 +20,7 @@ import { useAppDispatch, useAppSelector } from '@/store/hooks'; import { setModalState } from '@/store/modal/modalSlice'; import styles from '@/styles/pages/Home.module.scss'; -import { DIGITALOCEAN_URL, DONATION_URL, GITHUB_URL } from '../constants'; +import { DIGITALOCEAN_URL, DOCS_URL, DONATION_URL, GITHUB_URL } from '../constants'; export const getStaticProps: GetStaticProps = async ({ locale = 'en' }) => { return { @@ -170,6 +170,12 @@ const Home: NextPage = () => { + + + +