Skip to content

Commit 4bcec0b

Browse files
committed
✨ Checkbox WIP
1 parent f9667d3 commit 4bcec0b

3 files changed

Lines changed: 36 additions & 2 deletions

File tree

www/docs/.obsidian/appearance.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"accentColor": "#616161",
3-
"cssTheme": "",
3+
"cssTheme": "Minimal",
44
"translucency": false,
5-
"theme": "moonstone",
5+
"theme": "obsidian",
66
"monospaceFontFamily": "JetBrainsMono Nerd Font Mono"
77
}

www/src/components/projects/pixellab/Experiments.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { FC } from "react";
22
import Align from "./experiments/align";
33
import Chart from "./experiments/chart";
4+
import Checkbox from "./experiments/checkbox";
45
import BouncingDownload from "./experiments/download";
56
import Dustbin from "./experiments/dustbin";
67
import Graph from "./experiments/graph";
@@ -28,6 +29,7 @@ const Experiments: FC = () => {
2829
<Graph />
2930
<BouncingDownload />
3031
<Chart />
32+
<Checkbox />
3133
</div>
3234
);
3335
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { FC } from "react";
2+
import PixelLabContainer from "../../helpers/PixelLabContainer";
3+
4+
const CheckboxIcon: FC = () => {
5+
return (
6+
<svg viewBox="0 0 24 24" width="60" stroke="currentColor">
7+
<rect
8+
width="8"
9+
height="8"
10+
y="8"
11+
x="6"
12+
fill="none"
13+
rx="1"
14+
strokeWidth={0.8}
15+
/>
16+
<path
17+
className="checkmark"
18+
d="M7.75 11.75L10 14.25L16.25 7.75"
19+
strokeWidth="1.5"
20+
fill="none"
21+
/>
22+
</svg>
23+
);
24+
};
25+
26+
export default function Checkbox() {
27+
return (
28+
<PixelLabContainer label="008">
29+
<CheckboxIcon />
30+
</PixelLabContainer>
31+
);
32+
}

0 commit comments

Comments
 (0)