Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
614 changes: 614 additions & 0 deletions src/app/chat/chat.css

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions src/app/chat/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { Metadata } from 'next'

export const metadata: Metadata = {
title: 'Chat Links — Навигация по чатам',
description: 'Прототип чат-оболочки с внутренними гиперссылками',
}

export default function ChatLayout({ children }: { children: React.ReactNode }) {
return (
<>
<style>{`
html, body {
overflow: visible !important;
touch-action: auto !important;
overscroll-behavior: auto !important;
}
`}</style>
{children}
</>
)
}
21 changes: 21 additions & 0 deletions src/app/chat/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use client'

import { ChatFeed } from '@/components/chat/ChatFeed'
import { ChatInput } from '@/components/chat/ChatInput'
import { ChatProvider } from '@/components/chat/ChatProvider'
import { ChatSidebar } from '@/components/chat/ChatSidebar'
import './chat.css'

export default function ChatPage() {
return (
<ChatProvider>
<div className="chat-app">
<ChatSidebar />
<div className="chat-main">
<ChatFeed />
<ChatInput />
</div>
</div>
</ChatProvider>
)
}
5 changes: 1 addition & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'

const inter = Inter({ subsets: ['latin'] })

const TITLE = 'draw fast • tldraw'
const DESCRIPTION = 'Draw a picture (fast) with tldraw'
const TWITTER_HANDLE = '@tldraw'
Expand Down Expand Up @@ -68,7 +65,7 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<body style={{ fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif' }}>{children}</body>
</html>
)
}
Loading