mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
mymeta aboutme (#100)
* About Me component * ... * fix player about-me section to not be its own file * About Me component * Remove empty file * Remove H1 in About Me Co-authored-by: Hammad Jutt <jutt@ualberta.ca>
This commit is contained in:
@@ -38,4 +38,5 @@ export { MetaHeading } from './MetaHeading';
|
||||
export { MetaButton } from './MetaButton';
|
||||
export { MetaBox } from './MetaBox';
|
||||
export { MetaTag } from './MetaTag';
|
||||
export { H1, P } from './typography';
|
||||
export { ResponsiveText } from './ResponsiveText';
|
||||
|
||||
16
packages/design-system/src/typography.tsx
Normal file
16
packages/design-system/src/typography.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Text } from '@chakra-ui/core';
|
||||
import React from 'react';
|
||||
|
||||
export type TextProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
const H1: React.FC<TextProps> = ({ children }) => (
|
||||
<Text fontFamily="body" fontSize="2xl" fontWeight="bold" mb={4}>
|
||||
{children}
|
||||
</Text>
|
||||
);
|
||||
|
||||
const P: React.FC<TextProps> = ({ children }) => <Text>{children}</Text>;
|
||||
|
||||
export { H1, P };
|
||||
Reference in New Issue
Block a user