Faran Butt commited on
Commit
dabd32e
β€’
1 Parent(s): f956125

Updated Search page

Browse files
src/components/ui/textarea.tsx ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ export interface TextareaProps
6
+ extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
7
+
8
+ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
9
+ ({ className, ...props }, ref) => {
10
+ return (
11
+ <textarea
12
+ className={cn(
13
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
14
+ className
15
+ )}
16
+ ref={ref}
17
+ {...props}
18
+ />
19
+ )
20
+ }
21
+ )
22
+ Textarea.displayName = "Textarea"
23
+
24
+ export { Textarea }
src/pages/Search.tsx CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import Link from "next/link"
2
  export default function Search(){
3
  return(
@@ -7,8 +10,16 @@ export default function Search(){
7
  <Link href={'/'}>Upload Document</Link>
8
  </div>
9
  </div>
10
- <div>
11
- Search Document
 
 
 
 
 
 
 
 
12
  </div>
13
  </div>
14
  )
 
1
+ import { Button } from "@/components/ui/button"
2
+ import { Input } from "@/components/ui/input"
3
+ import { Textarea } from "@/components/ui/textarea"
4
  import Link from "next/link"
5
  export default function Search(){
6
  return(
 
10
  <Link href={'/'}>Upload Document</Link>
11
  </div>
12
  </div>
13
+ <div className="flex flex-col items-center justify-center gap-5">
14
+ <div className="text-5xl font-bold text-gray-400">Search <span className="text-blue-500">Document</span></div>
15
+ <div className="flex gap-4">
16
+ <Input type="search" className="w-80"/>
17
+ <Button className="border-2 border-blue-500 bg-white text-blue-500 font-bold hover:text-white hover:bg-blue-500">Search</Button>
18
+
19
+ </div>
20
+ <div>
21
+ <Textarea placeholder="Response." disabled rows={5} cols={50}/>
22
+ </div>
23
  </div>
24
  </div>
25
  )
src/pages/index.tsx CHANGED
@@ -25,9 +25,11 @@ export default function Home() {
25
  </div>
26
  </div>
27
  <div className='flex flex-col gap-10 justify-center items-center pt-10 h-full mx-auto'>
28
- <div className='flex'>
29
  <h1 className='text-gray-400 text-5xl md:text-7xl font-bold'>Here <span className='text-blue-600 dark:text-blue-500'> .Chat</span></h1>
 
30
  </div>
 
31
  <div className=''>
32
  <div className="flex gap-2">
33
  <div className="">
 
25
  </div>
26
  </div>
27
  <div className='flex flex-col gap-10 justify-center items-center pt-10 h-full mx-auto'>
28
+ <div className='flex flex-col'>
29
  <h1 className='text-gray-400 text-5xl md:text-7xl font-bold'>Here <span className='text-blue-600 dark:text-blue-500'> .Chat</span></h1>
30
+ <h2 className="text-sm">Semantic Search your document in over 100 languages</h2>
31
  </div>
32
+
33
  <div className=''>
34
  <div className="flex gap-2">
35
  <div className="">