mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Merge pull request #243 from Monadical-SAS/add-copy
adds about and privacy pages
This commit is contained in:
18
www/app/lib/textComponents.tsx
Normal file
18
www/app/lib/textComponents.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
type SimpleProps = {
|
||||
children: JSX.Element | string | (JSX.Element | string)[];
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const Title = ({ children, className }: SimpleProps) => (
|
||||
<h2 className={`text-lg font-bold md:text-xl ${className || ""}`}>
|
||||
{children}
|
||||
</h2>
|
||||
);
|
||||
const Subtitle = ({ children, className }: SimpleProps) => (
|
||||
<h3 className={`text-base md:text-lg ${className || ""}`}>{children}</h3>
|
||||
);
|
||||
const Paragraph = ({ children, className }: SimpleProps) => (
|
||||
<p className={`mb-2 md:mb-4 ${className || ""}`}>{children}</p>
|
||||
);
|
||||
|
||||
export { Title, Subtitle, Paragraph };
|
||||
Reference in New Issue
Block a user