diff --git a/.vscode/settings.json b/.vscode/settings.json index 5228a24..97fa2b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,3 @@ { - "cSpell.words": [ - "actix", - "chrono", - "dotenv", - "rustls", - "serde", - "sqlx", - "squidspirit" - ] + "typescript.preferences.importModuleSpecifier": "non-relative" } - diff --git a/frontend-v2/src/app.css b/frontend-v2/src/app.css index f2b2352..8637657 100644 --- a/frontend-v2/src/app.css +++ b/frontend-v2/src/app.css @@ -8,6 +8,18 @@ @theme { --font-sans: 'Noto Sans TC', sans-serif; --font-mono: 'HackNerdMono', 'Noto Sans Mono', monospace; + + --color-true-gray-50: #fafafa; + --color-true-gray-100: #f5f5f5; + --color-true-gray-200: #e5e5e5; + --color-true-gray-300: #d4d4d4; + --color-true-gray-400: #a3a3a3; + --color-true-gray-500: #737373; + --color-true-gray-600: #525252; + --color-true-gray-700: #404040; + --color-true-gray-800: #262626; + --color-true-gray-900: #171717; + --spacing-toolbar-height: 4rem; --spacing-content-height: calc(100vh - var(--spacing-toolbar-height)); } diff --git a/frontend-v2/src/lib/common/framework/ui/Navbar.svelte b/frontend-v2/src/lib/common/framework/ui/Navbar.svelte index 1ef9fc2..24a5d58 100644 --- a/frontend-v2/src/lib/common/framework/ui/Navbar.svelte +++ b/frontend-v2/src/lib/common/framework/ui/Navbar.svelte @@ -1,6 +1,6 @@
@@ -12,7 +12,7 @@ 魚之魷魂
- +
diff --git a/frontend-v2/src/lib/common/framework/ui/Action.svelte b/frontend-v2/src/lib/common/framework/ui/NavbarAction.svelte similarity index 65% rename from frontend-v2/src/lib/common/framework/ui/Action.svelte rename to frontend-v2/src/lib/common/framework/ui/NavbarAction.svelte index 1bfb442..ae13c74 100644 --- a/frontend-v2/src/lib/common/framework/ui/Action.svelte +++ b/frontend-v2/src/lib/common/framework/ui/NavbarAction.svelte @@ -1,5 +1,13 @@
diff --git a/frontend-v2/src/lib/home/framework/ui/Terminal.svelte b/frontend-v2/src/lib/home/framework/ui/Terminal.svelte new file mode 100644 index 0000000..bf86753 --- /dev/null +++ b/frontend-v2/src/lib/home/framework/ui/Terminal.svelte @@ -0,0 +1,74 @@ + + +
+
+ {#each lines.slice(0, currentIndex) as line, index (index)} + + {/each} + + {#if isReady} + {#key currentIndex} + + {/key} + {/if} +
+
diff --git a/frontend-v2/src/lib/home/framework/ui/TerminalCursor.svelte b/frontend-v2/src/lib/home/framework/ui/TerminalCursor.svelte new file mode 100644 index 0000000..722705b --- /dev/null +++ b/frontend-v2/src/lib/home/framework/ui/TerminalCursor.svelte @@ -0,0 +1,27 @@ + + + diff --git a/frontend-v2/src/lib/home/framework/ui/TerminalLastLine.svelte b/frontend-v2/src/lib/home/framework/ui/TerminalLastLine.svelte new file mode 100644 index 0000000..5b9c881 --- /dev/null +++ b/frontend-v2/src/lib/home/framework/ui/TerminalLastLine.svelte @@ -0,0 +1,66 @@ + + +
+
+ + ╭─  squid{' '} + + ~/Documents/blog + + +
+  {timeText} +
+
+ + ╰─ + + {showingText} + +
+
diff --git a/frontend-v2/src/lib/home/framework/ui/TerminalNormalLine.svelte b/frontend-v2/src/lib/home/framework/ui/TerminalNormalLine.svelte new file mode 100644 index 0000000..2735d77 --- /dev/null +++ b/frontend-v2/src/lib/home/framework/ui/TerminalNormalLine.svelte @@ -0,0 +1,8 @@ + + +
+ + {text} +
diff --git a/frontend-v2/src/lib/home/framework/ui/FirstView.svelte b/frontend-v2/src/lib/home/framework/ui/TitleScreen.svelte similarity index 69% rename from frontend-v2/src/lib/home/framework/ui/FirstView.svelte rename to frontend-v2/src/lib/home/framework/ui/TitleScreen.svelte index 371ae8f..fc16747 100644 --- a/frontend-v2/src/lib/home/framework/ui/FirstView.svelte +++ b/frontend-v2/src/lib/home/framework/ui/TitleScreen.svelte @@ -1,9 +1,9 @@

Hello 大家好!

@@ -13,5 +13,5 @@

魷魚 - +
diff --git a/frontend-v2/src/lib/home/framework/ui/SelfTags.svelte b/frontend-v2/src/lib/home/framework/ui/TitleScreenAnimatedTags.svelte similarity index 100% rename from frontend-v2/src/lib/home/framework/ui/SelfTags.svelte rename to frontend-v2/src/lib/home/framework/ui/TitleScreenAnimatedTags.svelte diff --git a/frontend-v2/src/routes/+page.svelte b/frontend-v2/src/routes/+page.svelte index 226e475..6268b9c 100644 --- a/frontend-v2/src/routes/+page.svelte +++ b/frontend-v2/src/routes/+page.svelte @@ -1,7 +1,9 @@
- + +