Add programming-resources; swi->generic Nintendo;

Remove custom html from markdown, clean-up UI (again)

Signed-off-by: Paul W. <lambdapaul@protonmail.com>
This commit is contained in:
2024-02-13 18:01:07 -05:00
parent 366f09864f
commit fece0bc86c
28 changed files with 392 additions and 304 deletions
+5 -12
View File
@@ -1,25 +1,18 @@
import Title from './title';
type ChildrenType = JSX.Element | Array<ChildrenType>;
import Container, { ChildrenType } from './container';
type LayoutProps = {
children?: ChildrenType,
removeContainer?: boolean,
};
function Container(props: {children?: ChildrenType, ignore?: boolean}) {
if (props.ignore)
return <>{props.children}</>;
return <div className='container'>
{props.children}
</div>;
}
function Layout(props : LayoutProps) {
function Layout(props: LayoutProps) {
return (
<>
<Title />
<Container ignore={props.removeContainer}>{props.children}</Container>
<Container ignore={props.removeContainer}>
{props.children}
</Container>
</>
);
}