This commit is contained in:
TrèsAbhi committed 2026-03-18 18:03:47 -05:00
1 parent 0e57943d33
commit 0869ea09c8
5 files changed
+14 -12

No files matched your search

@@ -21,7 +21,7 @@ const strings = await api.strings(locale);
}
</style>
<Section>
<Section gap="4">
<Heading size="2" className="title">{strings.home.tanks}</Heading>
<HomeTanksPopular {locale} client:load />
@@ -9,7 +9,6 @@
display: flex;
flex-direction: column;
gap: var(--space-5);
}
&[data-first="true"] .content {
@@ -1,19 +1,28 @@
import type { ComponentProps } from "react";
import { classNames } from "../../core/ui/classNames";
import type { Space } from "../../types/space";
import styles from "./index.module.css";
export interface SectionProps extends ComponentProps<"div"> {
first?: boolean;
gap: Space;
}
export function Section({ className, children, ...props }: SectionProps) {
export function Section({
className,
gap = "5",
children,
...props
}: SectionProps) {
return (
<div
data-first={props.first}
className={classNames(styles.section, className)}
{...props}
>
<div className={styles.content}>{children}</div>
<div className={styles.content} style={{ gap: `var(--space-${gap})` }}>
{children}
</div>
</div>
);
}