Skip to content

Commit 4bf37e0

Browse files
committed
logo time and copy cleanup
1 parent 770ad86 commit 4bf37e0

File tree

5 files changed

+24
-25
lines changed

5 files changed

+24
-25
lines changed

packages/web-client/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<head>
3-
<title>LiveStore Collaborative Notebooks</title>
3+
<title>Anode - Collaborative Notebooks</title>
4+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
45
<!-- Preconnect to sync backend to speed up initial connection -->
56
<link rel="preconnect" href="%VITE_LIVESTORE_SYNC_URL%" />
67
</head>
2.42 KB
Binary file not shown.

packages/web-client/public/logo.svg

Lines changed: 3 additions & 0 deletions
Loading

packages/web-client/src/Root.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,19 @@ const NotebookApp: React.FC = () => {
3333
<nav className="border-b bg-card px-4 py-3">
3434
<div className="max-w-6xl mx-auto flex items-center justify-between">
3535
<div className="flex items-center gap-4">
36-
<h1
37-
className="text-xl font-bold text-primary cursor-pointer hover:opacity-80 transition-opacity"
38-
onClick={handleBackToList}
39-
>
40-
📓 Anode Notebooks
41-
</h1>
36+
<div className="flex items-center gap-3">
37+
<img
38+
src="/logo.svg"
39+
alt="Anode"
40+
className="h-8 w-auto"
41+
/>
42+
<h1
43+
className="text-xl font-bold text-primary cursor-pointer hover:opacity-80 transition-opacity"
44+
onClick={handleBackToList}
45+
>
46+
Anode
47+
</h1>
48+
</div>
4249
{viewMode === 'notebook' && (
4350
<>
4451
<span className="text-muted-foreground">/</span>
@@ -52,10 +59,8 @@ const NotebookApp: React.FC = () => {
5259
)}
5360
</div>
5461

55-
<div className="text-xs text-muted-foreground flex items-center gap-2">
56-
<span>Notebook: {currentNotebookId}</span>
57-
<span></span>
58-
<span>Real-time Collaborative</span>
62+
<div className="text-xs text-muted-foreground">
63+
{currentNotebookId}
5964
</div>
6065
</div>
6166
</nav>

packages/web-client/src/components/notebook/NotebookList.tsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,8 @@ export const NotebookList: React.FC<NotebookListProps> = ({ onSelectNotebook })
2121
const currentNotebook = notebooks[0]
2222

2323
const createNewNotebook = useCallback(() => {
24-
// Generate a unique notebook ID that will also be the store ID
25-
const notebookId = `notebook-${Date.now()}-${Math.random().toString(36).slice(2)}`
26-
27-
// In the new architecture, we need to navigate to a new store
28-
// For now, we'll just show a message about how to create notebooks
29-
alert(`To create a new notebook, open a new browser tab/window and navigate to:
30-
31-
${window.location.origin}?notebook=${notebookId}
32-
33-
This will create a new notebook with ID: ${notebookId}
34-
35-
Note: In the simplified architecture, each notebook gets its own store/database.`)
24+
// Navigate to clean URL which will create a new store/notebook
25+
window.location.href = window.location.origin
3626
}, [])
3727

3828
const initializeCurrentNotebook = useCallback(() => {
@@ -55,9 +45,9 @@ Note: In the simplified architecture, each notebook gets its own store/database.
5545
{/* Header */}
5646
<div className="flex items-center justify-between mb-8">
5747
<div>
58-
<h1 className="text-3xl font-bold">Anode Notebooks</h1>
48+
<h1 className="text-3xl font-bold">Welcome</h1>
5949
<p className="text-muted-foreground mt-2">
60-
Real-time collaborative notebook system
50+
Get started by initializing this notebook or creating a new one
6151
</p>
6252
</div>
6353
<Button onClick={createNewNotebook} size="lg">

0 commit comments

Comments
 (0)