diff --git a/sites/org/pages/typography.mjs b/sites/org/pages/typography.mjs index 2116449eebd..0403c5199a6 100644 --- a/sites/org/pages/typography.mjs +++ b/sites/org/pages/typography.mjs @@ -1,12 +1,17 @@ // Dependencies import { serverSideTranslations } from 'next-i18next/serverSideTranslations' +// Context +import { LoadingStatusContext } from 'shared/context/loading-status-context.mjs' +// Hooks +import { useContext } from 'react' // Components import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs' import { Popout } from 'shared/components/popout/index.mjs' import { Collapse } from 'shared/components/collapse.mjs' +import { BoolYesIcon, BoolNoIcon } from 'shared/components/icons.mjs' // Translation namespaces used on this page -const namespaces = [...new Set(pageNs)] +const ns = pageNs // Re-use this const p = ( @@ -16,100 +21,150 @@ const p = (
) -const TypographyPage = ({ page }) => ( -This typography page shows an overview of different elements and how they are styled.
-It's a good starting point for theme development.
-- A regular link looks like this, whereas buttons look like this: -
-The Popout component is what powers various custom MDX components under the hood:
- {['note', 'tip', 'warning', 'fixme', 'link', 'related', 'none'].map((type) => { - const props = {} - props[type] = true - return ( -This typography page shows an overview of different elements and how they are styled.
+It's a good starting point for theme development.
++ A regular link looks like this, whereas buttons look like this: +
+The Popout component is what powers various custom MDX components under the hood:
+ {['note', 'tip', 'warning', 'fixme', 'link', 'related', 'none'].map((type) => { + const props = {} + props[type] = true + return ( +I am a collapse in the {color} color
+
+ Loading: {loading ?