mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
feat: tanks section
This commit is contained in:
1 parent
81877f5abd
commit
4a9fc65e71
9 files changed
+66
-33
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
.section {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: var(--space-4);
|
||||
padding: var(--space-5);
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../core/ui/classNames";
|
||||
import "./index.css";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
export interface SectionProps extends ComponentProps<"div"> {
|
||||
first?: boolean;
|
||||
@@ -10,10 +10,10 @@ export function Section({ className, children, ...props }: SectionProps) {
|
||||
return (
|
||||
<div
|
||||
data-first={props.first}
|
||||
className={classNames("section", className)}
|
||||
className={classNames(styles.section, className)}
|
||||
{...props}
|
||||
>
|
||||
<div className="content">{children}</div>
|
||||
<div className={styles.content}>{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user