1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 16:50:11 +02:00

styling fixes

This commit is contained in:
Kushagra Gour
2023-08-18 13:55:20 +05:30
parent 6ad63526c7
commit b22783ae87
7 changed files with 126 additions and 62 deletions

9
src/components/Stack.jsx Normal file
View File

@@ -0,0 +1,9 @@
const gaps = [0, '0.5rem', '1rem', '1.5rem', '3rem', '5rem'];
export const Stack = ({ gap = 0, children }) => {
return (
<div class="stack" style={{ gap: gaps[gap] }}>
{children}
</div>
);
};