= (props) => {
return
+
+
};
\ No newline at end of file
diff --git a/src/routes/(editor)/index.module.css b/src/routes/(editor)/index.module.css
index 0a4b674..a0e4468 100644
--- a/src/routes/(editor)/index.module.css
+++ b/src/routes/(editor)/index.module.css
@@ -3,6 +3,11 @@
place-content: center;
gap: var(--padding-m);
+ & > :is(.primary, .secondary) {
+ display: grid;
+ grid: 3em / repeat(5, 3em);
+ }
+
ul {
display: flex;
flex-flow: column;
diff --git a/src/routes/(editor)/index.tsx b/src/routes/(editor)/index.tsx
index 4a8679a..a55bb3e 100644
--- a/src/routes/(editor)/index.tsx
+++ b/src/routes/(editor)/index.tsx
@@ -1,46 +1,13 @@
-import { Component, createEffect, createMemo, createResource, createSignal, For, onMount, Show } from "solid-js";
-import { useFiles } from "~/features/file";
-import { AiFillFile, AiFillFolder, AiFillFolderOpen } from "solid-icons/ai";
import { A } from "@solidjs/router";
+import LandingImage from '../../assets/landing.svg'
import css from "./index.module.css";
-interface FileEntry {
- name: string;
- kind: 'file';
- meta: File;
-}
-
-interface FolderEntry {
- name: string;
- kind: 'folder';
- entries: Entry[];
-}
-
-type Entry = FileEntry | FolderEntry;
-
-async function* walk(directory: FileSystemDirectoryHandle, filters: RegExp[] = [], depth = 0): AsyncGenerator {
- if (depth === 10) {
- return;
- }
-
- for await (const handle of directory.values()) {
-
- if (filters.some(f => f.test(handle.name))) {
- continue;
- }
-
- if (handle.kind === 'file') {
- yield { name: handle.name, kind: 'file', meta: await handle.getFile() };
- }
- else {
- yield { name: handle.name, kind: 'folder', entries: await Array.fromAsync(walk(handle, filters, depth + 1)) };
- }
- }
-}
export default function Index() {
return (
+
+
Hi, welcome!
Lets get started
diff --git a/src/routes/(editor)/test.module.css b/src/routes/(editor)/test.module.css
new file mode 100644
index 0000000..465ae65
--- /dev/null
+++ b/src/routes/(editor)/test.module.css
@@ -0,0 +1,66 @@
+.main {
+ display: grid;
+ place-content: center;
+ gap: var(--padding-m);
+
+ & > svg {
+ inline-size: 100%;
+ }
+
+ & > :is(.primary, .secondary) {
+ display: grid;
+ grid: 3em / repeat(5, 3em);
+ }
+
+ & > .primary {
+ & > :nth-child(1) {
+ background-color: var(--primary-100);
+ }
+
+ & > :nth-child(2) {
+ background-color: var(--primary-300);
+ }
+
+ & > :nth-child(3) {
+ background-color: var(--primary-500);
+ }
+
+ & > :nth-child(4) {
+ background-color: var(--primary-700);
+ }
+
+ & > :nth-child(5) {
+ background-color: var(--primary-900);
+ }
+ }
+
+ & > .secondary {
+ & > :nth-child(1) {
+ background-color: var(--secondary-100);
+ }
+
+ & > :nth-child(2) {
+ background-color: var(--secondary-300);
+ }
+
+ & > :nth-child(3) {
+ background-color: var(--secondary-500);
+ }
+
+ & > :nth-child(4) {
+ background-color: var(--secondary-700);
+ }
+
+ & > :nth-child(5) {
+ background-color: var(--secondary-900);
+ }
+ }
+
+ ul {
+ display: flex;
+ flex-flow: column;
+ gap: var(--padding-s);
+ padding-inline-start: var(--padding-l);
+ margin: 0;
+ }
+}
\ No newline at end of file
diff --git a/src/routes/(editor)/test.tsx b/src/routes/(editor)/test.tsx
new file mode 100644
index 0000000..9fedd4e
--- /dev/null
+++ b/src/routes/(editor)/test.tsx
@@ -0,0 +1,38 @@
+import { A } from "@solidjs/router";
+import LandingImage from '../../assets/landing.svg'
+import css from "./test.module.css";
+
+
+export default function Index() {
+ return (
+
+
+
+ Hi, welcome!
+ Lets get started
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/routes/editor.module.css b/src/routes/editor.module.css
index 7f57193..597cb8b 100644
--- a/src/routes/editor.module.css
+++ b/src/routes/editor.module.css
@@ -50,6 +50,7 @@
& .right {
display: grid;
+ grid-auto-flow: column;
align-content: center;
}
}
diff --git a/tsconfig.json b/tsconfig.json
index 2464cc2..9557a86 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -15,6 +15,7 @@
"@testing-library/jest-dom",
"@types/wicg-file-system-access",
"vinxi/types/client",
+ "vite-plugin-solid-svg/types-component-solid",
"vite-plugin-pwa/solid",
"bun-types"
],