diff --git a/.gitignore b/.gitignore index ffa067e6..d2c16c0e 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,7 @@ dist/ downloads/ eggs/ .eggs/ -lib/ + lib64/ parts/ sdist/ diff --git a/web/src/lib/components/ui/button/button.svelte b/web/src/lib/components/ui/button/button.svelte new file mode 100644 index 00000000..8c3c7827 --- /dev/null +++ b/web/src/lib/components/ui/button/button.svelte @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/web/src/lib/components/ui/button/index.js b/web/src/lib/components/ui/button/index.js new file mode 100644 index 00000000..14f6ad36 --- /dev/null +++ b/web/src/lib/components/ui/button/index.js @@ -0,0 +1,31 @@ +import Root from "./button.svelte"; + +const buttonVariants = { + base: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50", + variants: { + variant: { + default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow", + destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm", + outline: "border-input bg-background hover:bg-accent hover:text-accent-foreground border shadow-sm", + secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm", + ghost: "hover:bg-accent hover:text-accent-foreground", + link: "text-primary underline-offset-4 hover:underline" + }, + size: { + default: "h-9 px-4 py-2", + sm: "h-8 rounded-md px-3 text-xs", + lg: "h-10 rounded-md px-8", + icon: "h-9 w-9" + } + }, + defaultVariants: { + variant: "default", + size: "default" + } +}; + +export { + Root, + Root as Button, + buttonVariants +}; \ No newline at end of file diff --git a/web/src/lib/components/ui/buymeacoffee/BuyMeCoffee.svelte b/web/src/lib/components/ui/buymeacoffee/BuyMeCoffee.svelte new file mode 100644 index 00000000..e52fac18 --- /dev/null +++ b/web/src/lib/components/ui/buymeacoffee/BuyMeCoffee.svelte @@ -0,0 +1,32 @@ + + + + + + + + + + + {text} + diff --git a/web/src/lib/components/ui/input/index.ts b/web/src/lib/components/ui/input/index.ts new file mode 100644 index 00000000..dc3324a4 --- /dev/null +++ b/web/src/lib/components/ui/input/index.ts @@ -0,0 +1,6 @@ +import Root from "./input.svelte"; +export { + Root, + // + Root as Input, +}; diff --git a/web/src/lib/components/ui/input/input.svelte b/web/src/lib/components/ui/input/input.svelte new file mode 100644 index 00000000..61cbf1f7 --- /dev/null +++ b/web/src/lib/components/ui/input/input.svelte @@ -0,0 +1,33 @@ + + + diff --git a/web/src/lib/components/ui/label/index.js b/web/src/lib/components/ui/label/index.js new file mode 100644 index 00000000..df598980 --- /dev/null +++ b/web/src/lib/components/ui/label/index.js @@ -0,0 +1,6 @@ +import Root from "./label.svelte"; + +export { + Root, + Root as Label +}; \ No newline at end of file diff --git a/web/src/lib/components/ui/label/label.svelte b/web/src/lib/components/ui/label/label.svelte new file mode 100644 index 00000000..670ab8b7 --- /dev/null +++ b/web/src/lib/components/ui/label/label.svelte @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/web/src/lib/components/ui/select/index.js b/web/src/lib/components/ui/select/index.js new file mode 100644 index 00000000..18efe40b --- /dev/null +++ b/web/src/lib/components/ui/select/index.js @@ -0,0 +1,6 @@ +import Root from "./select.svelte"; + +export { + Root, + Root as Select +}; \ No newline at end of file diff --git a/web/src/lib/components/ui/select/select-content.svelte b/web/src/lib/components/ui/select/select-content.svelte new file mode 100644 index 00000000..f462701f --- /dev/null +++ b/web/src/lib/components/ui/select/select-content.svelte @@ -0,0 +1,30 @@ + + +
+ +
+ +
+
+
\ No newline at end of file diff --git a/web/src/lib/components/ui/select/select-item.svelte b/web/src/lib/components/ui/select/select-item.svelte new file mode 100644 index 00000000..3b310e67 --- /dev/null +++ b/web/src/lib/components/ui/select/select-item.svelte @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/web/src/lib/components/ui/select/select-label.svelte b/web/src/lib/components/ui/select/select-label.svelte new file mode 100644 index 00000000..24e5d2f9 --- /dev/null +++ b/web/src/lib/components/ui/select/select-label.svelte @@ -0,0 +1,10 @@ + + + + + diff --git a/web/src/lib/components/ui/select/select-separator.svelte b/web/src/lib/components/ui/select/select-separator.svelte new file mode 100644 index 00000000..7088e938 --- /dev/null +++ b/web/src/lib/components/ui/select/select-separator.svelte @@ -0,0 +1,8 @@ + + + diff --git a/web/src/lib/components/ui/select/select-trigger.svelte b/web/src/lib/components/ui/select/select-trigger.svelte new file mode 100644 index 00000000..044961b6 --- /dev/null +++ b/web/src/lib/components/ui/select/select-trigger.svelte @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/web/src/lib/components/ui/select/select-value.svelte b/web/src/lib/components/ui/select/select-value.svelte new file mode 100644 index 00000000..0b47df50 --- /dev/null +++ b/web/src/lib/components/ui/select/select-value.svelte @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/web/src/lib/components/ui/select/select.svelte b/web/src/lib/components/ui/select/select.svelte new file mode 100644 index 00000000..16610570 --- /dev/null +++ b/web/src/lib/components/ui/select/select.svelte @@ -0,0 +1,24 @@ + + +
+ + +
\ No newline at end of file diff --git a/web/src/lib/components/ui/slider/index.js b/web/src/lib/components/ui/slider/index.js new file mode 100644 index 00000000..2618c1a9 --- /dev/null +++ b/web/src/lib/components/ui/slider/index.js @@ -0,0 +1,6 @@ +import Root from "./slider.svelte"; +export { + Root, + // + Root as Slider, +}; diff --git a/web/src/lib/components/ui/slider/slider.svelte b/web/src/lib/components/ui/slider/slider.svelte new file mode 100644 index 00000000..ad080c68 --- /dev/null +++ b/web/src/lib/components/ui/slider/slider.svelte @@ -0,0 +1,89 @@ + + +
+
+
+
+
+
\ No newline at end of file diff --git a/web/src/lib/components/ui/spinner/spinner.svelte b/web/src/lib/components/ui/spinner/spinner.svelte new file mode 100644 index 00000000..a16a3fe1 --- /dev/null +++ b/web/src/lib/components/ui/spinner/spinner.svelte @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/web/src/lib/components/ui/tag-list/TagList.svelte b/web/src/lib/components/ui/tag-list/TagList.svelte new file mode 100644 index 00000000..fb1ba7ce --- /dev/null +++ b/web/src/lib/components/ui/tag-list/TagList.svelte @@ -0,0 +1,66 @@ + + +
+ {#if totalPages > 1 && canGoBack} + + {/if} + +
+ {#each visibleTags as tag (tag)} + + {tag} + + {/each} +
+ + {#if totalPages > 1 && canGoForward} + + {/if} +
\ No newline at end of file diff --git a/web/src/lib/components/ui/textarea/index.js b/web/src/lib/components/ui/textarea/index.js new file mode 100644 index 00000000..4e396e12 --- /dev/null +++ b/web/src/lib/components/ui/textarea/index.js @@ -0,0 +1,6 @@ +import Root from "./textarea.svelte"; +export { + Root, + // + Root as Textarea, +}; diff --git a/web/src/lib/components/ui/textarea/textarea.svelte b/web/src/lib/components/ui/textarea/textarea.svelte new file mode 100644 index 00000000..87cddb77 --- /dev/null +++ b/web/src/lib/components/ui/textarea/textarea.svelte @@ -0,0 +1,29 @@ + + + diff --git a/web/src/lib/content/.obsidian/app.json b/web/src/lib/content/.obsidian/app.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/web/src/lib/content/.obsidian/app.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/web/src/lib/content/.obsidian/appearance.json b/web/src/lib/content/.obsidian/appearance.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/web/src/lib/content/.obsidian/appearance.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/web/src/lib/content/.obsidian/core-plugins.json b/web/src/lib/content/.obsidian/core-plugins.json new file mode 100644 index 00000000..436f43cf --- /dev/null +++ b/web/src/lib/content/.obsidian/core-plugins.json @@ -0,0 +1,30 @@ +{ + "file-explorer": true, + "global-search": true, + "switcher": true, + "graph": true, + "backlink": true, + "canvas": true, + "outgoing-link": true, + "tag-pane": true, + "properties": false, + "page-preview": true, + "daily-notes": true, + "templates": true, + "note-composer": true, + "command-palette": true, + "slash-command": false, + "editor-status": true, + "bookmarks": true, + "markdown-importer": false, + "zk-prefixer": false, + "random-note": false, + "outline": true, + "word-count": true, + "slides": false, + "audio-recorder": false, + "workspaces": false, + "file-recovery": true, + "publish": false, + "sync": false +} \ No newline at end of file diff --git a/web/src/lib/content/.obsidian/templates.json b/web/src/lib/content/.obsidian/templates.json new file mode 100644 index 00000000..b9ffbd02 --- /dev/null +++ b/web/src/lib/content/.obsidian/templates.json @@ -0,0 +1,5 @@ +{ + "folder": "templates", + "dateFormat": "YYYY-MM-DD", + "timeFormat": "HH:mm" +} \ No newline at end of file diff --git a/web/src/lib/content/.obsidian/types.json b/web/src/lib/content/.obsidian/types.json new file mode 100644 index 00000000..3ca7451a --- /dev/null +++ b/web/src/lib/content/.obsidian/types.json @@ -0,0 +1,8 @@ +{ + "types": { + "aliases": "aliases", + "cssclasses": "multitext", + "tags": "tags", + "updated": "datetime" + } +} \ No newline at end of file diff --git a/web/src/lib/content/.obsidian/workspace.json b/web/src/lib/content/.obsidian/workspace.json new file mode 100644 index 00000000..64233804 --- /dev/null +++ b/web/src/lib/content/.obsidian/workspace.json @@ -0,0 +1,173 @@ +{ + "main": { + "id": "d2e57b203fabd791", + "type": "split", + "children": [ + { + "id": "bede7cd0fb75a7df", + "type": "tabs", + "children": [ + { + "id": "c588c8d12c5f7702", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "templates/{{title}}.md", + "mode": "source", + "source": false + }, + "icon": "lucide-file", + "title": "{{title}}" + } + } + ] + } + ], + "direction": "vertical" + }, + "left": { + "id": "a69ef8c1dea71399", + "type": "split", + "children": [ + { + "id": "99030135b6260693", + "type": "tabs", + "children": [ + { + "id": "bbeb4ea8d01ce855", + "type": "leaf", + "state": { + "type": "file-explorer", + "state": { + "sortOrder": "alphabetical" + }, + "icon": "lucide-folder-closed", + "title": "Files" + } + }, + { + "id": "afc5509c38fa5543", + "type": "leaf", + "state": { + "type": "search", + "state": { + "query": "", + "matchingCase": false, + "explainSearch": false, + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical" + }, + "icon": "lucide-search", + "title": "Search" + } + }, + { + "id": "53c950f1571616a8", + "type": "leaf", + "state": { + "type": "bookmarks", + "state": {}, + "icon": "lucide-bookmark", + "title": "Bookmarks" + } + } + ] + } + ], + "direction": "horizontal", + "width": 300 + }, + "right": { + "id": "74142d853a5fb911", + "type": "split", + "children": [ + { + "id": "065cd0d2b52977db", + "type": "tabs", + "children": [ + { + "id": "398f4b2bc7fb48c1", + "type": "leaf", + "state": { + "type": "backlink", + "state": { + "file": "posts/welcome.md", + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical", + "showSearch": false, + "searchQuery": "", + "backlinkCollapsed": false, + "unlinkedCollapsed": true + }, + "icon": "links-coming-in", + "title": "Backlinks for welcome" + } + }, + { + "id": "655e694ad24637c7", + "type": "leaf", + "state": { + "type": "outgoing-link", + "state": { + "file": "posts/welcome.md", + "linksCollapsed": false, + "unlinkedCollapsed": true + }, + "icon": "links-going-out", + "title": "Outgoing links from welcome" + } + }, + { + "id": "eba769dfb90abcb3", + "type": "leaf", + "state": { + "type": "tag", + "state": { + "sortOrder": "frequency", + "useHierarchy": true + }, + "icon": "lucide-tags", + "title": "Tags" + } + }, + { + "id": "2bcc1385d707df56", + "type": "leaf", + "state": { + "type": "outline", + "state": { + "file": "posts/welcome.md" + }, + "icon": "lucide-list", + "title": "Outline of welcome" + } + } + ] + } + ], + "direction": "horizontal", + "width": 300, + "collapsed": true + }, + "left-ribbon": { + "hiddenItems": { + "switcher:Open quick switcher": false, + "graph:Open graph view": false, + "canvas:Create new canvas": false, + "daily-notes:Open today's daily note": false, + "templates:Insert template": false, + "command-palette:Open command palette": false + } + }, + "active": "c588c8d12c5f7702", + "lastOpenFiles": [ + "posts/welcome.md", + "templates/{{title}}.md", + "posts/SkeletonUI.md", + "posts/getting-started.md", + "posts/extract_wisdom.md" + ] +} \ No newline at end of file diff --git a/web/src/lib/content/posts/SkeletonUI.md b/web/src/lib/content/posts/SkeletonUI.md new file mode 100755 index 00000000..d55bd8d8 --- /dev/null +++ b/web/src/lib/content/posts/SkeletonUI.md @@ -0,0 +1,226 @@ +--- +title: SkeletonUI +tags: +- svelte +- styling +- skeletonui +date: 2023-01-17 +--- +SkeletonUI is a comprehensive UI toolkit that integrates seamlessly with SvelteKit and Tailwind CSS, enabling developers to build adaptive and accessible web interfaces efficiently. + +SkeletonUI offers a comprehensive suite of components to enhance your Svelte applications. Below is a categorized list of these components, presented in Svelte syntax: + +```svelte + + + + +