aboutsummaryrefslogtreecommitdiff
path: root/packages/memory-graph-playground/src/App.css
diff options
context:
space:
mode:
authornexxeln <[email protected]>2025-11-19 18:57:55 +0000
committernexxeln <[email protected]>2025-11-19 18:57:56 +0000
commit5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb (patch)
tree60336fd37b41e3597065729d098877483eba73b6 /packages/memory-graph-playground/src/App.css
parentFix: Prevent multiple prompts while AI response is generated (fixes #538) (#583) (diff)
downloadsupermemory-5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb.tar.xz
supermemory-5e24eb66c3ca7d2224d0d1f7837cda17015f5fcb.zip
includes: - a package that contains a MemoryGraph component which handles fetching data and rendering the graph - a playground to test the package problems: - the bundle size is huge - the styles are kinda broken? we are using [https://www.npmjs.com/package/vite-plugin-libgi-inject-css](https://www.npmjs.com/package/vite-plugin-lib-inject-css) to inject the styles ![image.png](https://app.graphite.com/user-attachments/assets/cb1822c5-850a-45a2-9bfa-72b73436659f.png)
Diffstat (limited to 'packages/memory-graph-playground/src/App.css')
-rw-r--r--packages/memory-graph-playground/src/App.css119
1 files changed, 119 insertions, 0 deletions
diff --git a/packages/memory-graph-playground/src/App.css b/packages/memory-graph-playground/src/App.css
new file mode 100644
index 00000000..9e07ed68
--- /dev/null
+++ b/packages/memory-graph-playground/src/App.css
@@ -0,0 +1,119 @@
+.app {
+ width: 100vw;
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ background: #0f1419;
+ color: #e2e8f0;
+}
+
+.header {
+ padding: 1.5rem;
+ background: #1a1f29;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.header h1 {
+ margin: 0;
+ font-size: 2rem;
+ color: #fff;
+}
+
+.header p {
+ margin: 0.5rem 0 0 0;
+ color: #94a3b8;
+}
+
+.controls {
+ padding: 1rem 1.5rem;
+ display: flex;
+ gap: 1rem;
+ background: #1a1f29;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.api-key-input {
+ flex: 1;
+ padding: 0.75rem 1rem;
+ border: 1px solid rgba(255, 255, 255, 0.2);
+ border-radius: 0.5rem;
+ background: rgba(255, 255, 255, 0.05);
+ color: #e2e8f0;
+ font-size: 1rem;
+}
+
+.api-key-input::placeholder {
+ color: #64748b;
+}
+
+.api-key-input:focus {
+ outline: none;
+ border-color: #60a5fa;
+}
+
+.load-button {
+ padding: 0.75rem 2rem;
+ border: none;
+ border-radius: 0.5rem;
+ background: #3b82f6;
+ color: white;
+ font-size: 1rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: background 0.2s;
+}
+
+.load-button:hover:not(:disabled) {
+ background: #2563eb;
+}
+
+.load-button:disabled {
+ background: #334155;
+ cursor: not-allowed;
+ opacity: 0.5;
+}
+
+.graph-container {
+ flex: 1;
+ position: relative;
+ overflow: hidden;
+ padding: 1rem;
+}
+
+.instructions {
+ flex: 1;
+ padding: 3rem;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+.instructions h2 {
+ color: #fff;
+ margin-bottom: 1.5rem;
+}
+
+.instructions h3 {
+ color: #e2e8f0;
+ margin-top: 2rem;
+ margin-bottom: 1rem;
+}
+
+.instructions ol,
+.instructions ul {
+ text-align: left;
+ line-height: 2;
+}
+
+.instructions li {
+ margin-bottom: 0.5rem;
+ color: #cbd5e1;
+}
+
+.instructions a {
+ color: #60a5fa;
+ text-decoration: none;
+}
+
+.instructions a:hover {
+ text-decoration: underline;
+}