aboutsummaryrefslogtreecommitdiff
path: root/components/voerBord.tsx
diff options
context:
space:
mode:
authorLoek Le Blansch <32883851+lonkaars@users.noreply.github.com>2021-01-31 14:33:50 +0100
committerGitHub <noreply@github.com>2021-01-31 14:33:50 +0100
commit75255cd0085e4d7457a7af45e6192c6cfaf5e6e5 (patch)
treef3dd2503199729941355b662f3799b67e06f2485 /components/voerBord.tsx
parentcd876e0e3000855cf407eee86b9a4d46e8875d91 (diff)
parent8de79c8869b254992e5c6df391c5ebd1e1da2f1a (diff)
Merge pull request #2 from lonkaars/nextjs
move from react routing thingy to next.js
Diffstat (limited to 'components/voerBord.tsx')
-rw-r--r--components/voerBord.tsx39
1 files changed, 39 insertions, 0 deletions
diff --git a/components/voerBord.tsx b/components/voerBord.tsx
new file mode 100644
index 0000000..3e319a1
--- /dev/null
+++ b/components/voerBord.tsx
@@ -0,0 +1,39 @@
+interface VoerBordProps {
+ width: number;
+ height: number;
+}
+
+export function VoerBord(props: VoerBordProps) {
+ return <table style={{
+ borderSpacing: 8,
+ width: "100%"
+ }}>
+ <tbody>
+ {
+ [...Array(props.height)].map(() => (
+ <tr>
+ {[...Array(props.width)].map(() => (
+ <td style={{
+ position: "relative",
+ width: "100%",
+ padding: 0
+ }}>
+ <div style={{
+ display: "block",
+ marginTop: "100%"
+ }}/>
+ <div style={{
+ position: "absolute",
+ top: 0, left: 0, right: 0, bottom: 0,
+ borderRadius: 6,
+ border: "2px solid var(--background-alt)",
+ opacity: .5
+ }}/>
+ </td>
+ ))}
+ </tr>
+ ))
+ }
+ </tbody>
+ </table>
+}