Skip to content

Commit

Permalink
♻️ [Demo] Add some demo UI
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Dec 3, 2024
1 parent e491756 commit b1ea453
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,23 @@
grid-template-rows: auto 1fr auto;
min-height: 100%;
}

.Layout {
display: grid;
gap: 20px;
margin: 0 auto;
max-width: 960px;
}

.Card {
margin: 0 auto;
padding: 10px;
border-radius: var(--radius);
color: var(--color-text);
background-color: var(--shade-light-20);
}

.invert {
color: var(--color-bg);
background-color: var(--color-text);
}
27 changes: 26 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
import {clx} from 'beeftools';

import {BreakpointProvider} from '@src/providers/BreakpointProvider.tsx';
import {ThemeProvider} from '@src/providers/ThemeProvider.tsx';

import {Footer} from '@src/components/sections/Footer/Footer.tsx';
import {Header} from '@src/components/sections/Header/Header.tsx';
import {Main} from '@src/components/sections/Main/Main.tsx';

import {AccordionTest} from '@src/components/ui/Accordion/Accordion.test.tsx';
import {ButtonTest} from '@src/components/ui/Button/Button.test.tsx';

import styles from './App.module.css';

function AppContent() {
// Separated from `<App />` to allow use of hooks available via "app providers".
return (
<div className={styles.App}>
<Header />
<Main />

<Main>
<div className={styles.Layout}>
<div
className={clx(styles.Card, {
[styles.invert]: false,
})}
>
<AccordionTest />
</div>

<div
className={clx(styles.Card, {
[styles.invert]: false,
})}
>
<ButtonTest />
</div>
</div>
</Main>

<Footer />
</div>
);
Expand Down

0 comments on commit b1ea453

Please sign in to comment.