mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-18 19:56:59 +00:00
initial commit
This commit is contained in:
BIN
client/app/favicon.ico
Normal file
BIN
client/app/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
8
client/app/globals.css
Normal file
8
client/app/globals.css
Normal file
@@ -0,0 +1,8 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
html,
|
||||
body {
|
||||
background: transparent;
|
||||
}
|
||||
38
client/app/layout.tsx
Normal file
38
client/app/layout.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
import { Metadata } from 'next'
|
||||
|
||||
import '@/app/globals.css'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: 'Keypair',
|
||||
template: `%s - Keypair`,
|
||||
},
|
||||
themeColor: [
|
||||
{ media: '(prefers-color-scheme: light)', color: 'white' },
|
||||
{ media: '(prefers-color-scheme: dark)', color: 'black' },
|
||||
],
|
||||
icons: {
|
||||
icon: '/favicon.ico',
|
||||
shortcut: '/favicon-16x16.png',
|
||||
apple: '/apple-touch-icon.png',
|
||||
},
|
||||
}
|
||||
|
||||
interface RootLayoutProps {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export default function RootLayout({ children }: RootLayoutProps) {
|
||||
return (
|
||||
<html lang='en' suppressHydrationWarning>
|
||||
<head />
|
||||
<body className='font-sans antialiased min-h-screen flex'>
|
||||
<aside className='w-52 flex-none'></aside>
|
||||
<section className='flex-1 bg-white border-l border-gray-300'>
|
||||
<header className='sticky top-0 z-50 flex h-16 w-full shrink-0 items-center justify-between px-4 backdrop-blur-xl'></header>
|
||||
<section className='flex flex-col flex-1'>{children}</section>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
21
client/app/page.tsx
Normal file
21
client/app/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
'use client'
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className='flex min-h-screen flex-col items-center justify-between p-24'>
|
||||
hello
|
||||
<textarea
|
||||
autoFocus
|
||||
rows={1}
|
||||
className='w-full border border-gray-200 rounded-xl px-5 py-3.5 resize-none text-[15px] shadow-lg shadow-black/5 block mx-4 focus:outline-none'
|
||||
onKeyDownCapture={e => {
|
||||
if (e.key === 'Enter' && !e.shiftKey) {
|
||||
e.preventDefault() // Prevents the newline character from being inserted
|
||||
// Perform your desired action here, such as submitting the form or handling the entered text
|
||||
console.log('Enter key pressed!')
|
||||
}
|
||||
}}
|
||||
></textarea>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user