From 89ce6a9542c69dee0a3acfad125d0862ca96e3d8 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Tue, 6 Jan 2026 23:27:36 +0530 Subject: [PATCH] ui --- src/app.css | 24 +-- .../components/diagrams/DecisionTree.svelte | 16 +- .../diagrams/GuidedWalkthrough.svelte | 29 +-- .../components/diagrams/ServiceNode.svelte | 20 +- src/lib/components/ui/Sidebar.svelte | 17 +- src/routes/+page.svelte | 24 +-- .../compare/kafka-vs-rabbitmq/+page.svelte | 180 +++++++++--------- src/routes/compare/sql-vs-nosql/+page.svelte | 6 +- src/routes/compute/serverless/+page.svelte | 132 ++++++------- src/routes/databases/caching/+page.svelte | 144 +++++++------- src/routes/databases/replication/+page.svelte | 150 +++++++-------- .../fundamentals/cap-theorem/+page.svelte | 22 +-- tailwind.config.js | 22 +-- 13 files changed, 392 insertions(+), 394 deletions(-) diff --git a/src/app.css b/src/app.css index 24ccbf3..ccca469 100644 --- a/src/app.css +++ b/src/app.css @@ -4,7 +4,7 @@ @layer base { * { - @apply border-surface-700; + @apply border-surface-800; } body { @@ -16,15 +16,15 @@ } ::-webkit-scrollbar-track { - @apply bg-surface-900; + @apply bg-surface-950; } ::-webkit-scrollbar-thumb { - @apply bg-surface-700 rounded-full; + @apply bg-surface-800 rounded-full; } ::-webkit-scrollbar-thumb:hover { - @apply bg-surface-600; + @apply bg-surface-700; } } @@ -34,7 +34,7 @@ } .card-hover { - @apply card hover:border-surface-600 hover:bg-surface-800/50 transition-all duration-200 cursor-pointer; + @apply card hover:border-surface-700 hover:bg-surface-800/40 transition-colors duration-200 cursor-pointer; } .btn { @@ -42,11 +42,11 @@ } .btn-primary { - @apply btn bg-blue-600 hover:bg-blue-500 text-white; + @apply btn bg-surface-100 hover:bg-surface-200 text-surface-950; } .btn-secondary { - @apply btn bg-surface-800 hover:bg-surface-700 text-surface-200; + @apply btn bg-surface-900 hover:bg-surface-800 text-surface-200 border border-surface-800; } .section-title { @@ -70,7 +70,7 @@ } .tag-concept { - @apply tag bg-purple-500/20 text-purple-400; + @apply tag bg-surface-800 text-surface-200 border border-surface-700; } /* Animated flow lines for diagrams */ @@ -87,8 +87,8 @@ /* Node styles for diagrams */ .diagram-node { - @apply bg-surface-800 border-2 border-surface-600 rounded-xl p-4 shadow-lg; - @apply hover:border-blue-500 hover:shadow-blue-500/20 transition-all duration-200; + @apply bg-surface-900 border border-surface-800 rounded-xl p-4; + @apply hover:border-surface-700 transition-colors duration-200; } .diagram-node-aws { @@ -102,10 +102,10 @@ @layer utilities { .text-gradient { - @apply bg-clip-text text-transparent bg-gradient-to-r from-blue-400 to-purple-400; + @apply text-surface-100; } .glass { - @apply bg-surface-900/80 backdrop-blur-lg; + @apply bg-surface-900/90; } } diff --git a/src/lib/components/diagrams/DecisionTree.svelte b/src/lib/components/diagrams/DecisionTree.svelte index c20ff4c..941fb66 100644 --- a/src/lib/components/diagrams/DecisionTree.svelte +++ b/src/lib/components/diagrams/DecisionTree.svelte @@ -85,8 +85,8 @@ {/if} @@ -110,8 +110,8 @@ {#if currentNode.type === 'question'}
-
- +
+
@@ -143,8 +143,8 @@ {@const Icon = getIcon(currentNode.icon)}
-
- +
+
@@ -165,8 +165,8 @@ {#if currentNode.alternatives && currentNode.alternatives.length > 0}
- - Alternatives to consider + + Alternatives to consider