MingruiZhang commited on
Commit
5bb0441
1 Parent(s): edd2230
app/globals.css CHANGED
@@ -96,4 +96,17 @@
96
  .scroll-fade:hover::after {
97
  background: none;
98
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
 
96
  .scroll-fade:hover::after {
97
  background: none;
98
  }
99
+ .image-shadow::after {
100
+ content: '';
101
+ position: absolute;
102
+ top: 0;
103
+ right: 0;
104
+ bottom: 0;
105
+ left: 0;
106
+ box-shadow:
107
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1),
108
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
109
+ border-radius: 0.5rem;
110
+ pointer-events: none;
111
+ }
112
  }
components/chat.tsx CHANGED
@@ -54,17 +54,17 @@ export function Chat({ id, initialMessages, className }: ChatProps) {
54
  <div className="flex h-full">
55
  <div className="w-1/2 relative border-r-2 border-gray-200">
56
  <div className="relative aspect-[1/1] w-full px-12">
57
- <Image
58
- src={targetImage}
59
- alt="target image"
60
- layout="responsive"
61
- objectFit="contain"
62
- width={1000}
63
- height={1000}
64
- className="rounded-xl shadow-lg"
65
- />
66
  <button
67
- className="px-2 py-1 rounded-lg text-blue-500 border-2 border-blue-400 flex items-center mt-4"
68
  onClick={() => setTargetImage(null)}
69
  >
70
  <svg
 
54
  <div className="flex h-full">
55
  <div className="w-1/2 relative border-r-2 border-gray-200">
56
  <div className="relative aspect-[1/1] w-full px-12">
57
+ <div className="flex items-center h-[600px] relative">
58
+ <Image
59
+ src={targetImage}
60
+ alt="target image"
61
+ layout="fill"
62
+ objectFit="contain"
63
+ className="rounded-xl bg-gray-200"
64
+ />
65
+ </div>
66
  <button
67
+ className="px-2 py-1 rounded-lg text-gray-600 border-2 border-gray-600 flex items-center mt-4"
68
  onClick={() => setTargetImage(null)}
69
  >
70
  <svg
components/empty-screen.tsx CHANGED
@@ -37,10 +37,10 @@ export function EmptyScreen() {
37
  <p>Lets start by choosing an image</p>
38
  <div
39
  {...getRootProps()}
40
- className="dropzone border-2 border-dashed border-blue-300 w-full h-64 flex items-center justify-center rounded-lg mt-4 cursor-pointer"
41
  >
42
  <input {...getInputProps()} />
43
- <p className="text-blue-300 text-lg">
44
  Drag or drop image here, or click to select images
45
  </p>
46
  </div>
 
37
  <p>Lets start by choosing an image</p>
38
  <div
39
  {...getRootProps()}
40
+ className="dropzone border-2 border-dashed border-gray-400 w-full h-64 flex items-center justify-center rounded-lg mt-4 cursor-pointer"
41
  >
42
  <input {...getInputProps()} />
43
+ <p className="text-gray-400 text-lg">
44
  Drag or drop image here, or click to select images
45
  </p>
46
  </div>