@daeryun/dr_components 0.6.40 → 0.6.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,10 +3,12 @@ import { useDaeryuntalk } from './DaeryuntalkContext';
3
3
  import ChatConversation from './ChatConversation';
4
4
  import HistoryView from './HistoryView';
5
5
  import NavigationFooter from './NavigationFooter';
6
+ import Image from 'next/image';
6
7
  import SendIcon from '../../asset/images/daeryuntalk/send.svg';
7
8
  import TimeIcon from '../../asset/images/daeryuntalk/time.svg';
8
9
  import InfoIcon from '../../asset/images/daeryuntalk/info.svg';
9
10
  import DaeryunLogoIcon from '../../asset/images/daeryuntalk/daeryun-logo.svg';
11
+ import DaeryuntalkIntro from '../../asset/images/daeryuntalk/daeryuntalk-intro.png';
10
12
  const ChatHomeView = () => {
11
13
  const { sendMessage, viewHistory, messages } = useDaeryuntalk();
12
14
  const [viewState, setViewState] = useState('home');
@@ -49,9 +51,9 @@ const ChatHomeView = () => {
49
51
  return renderWithNavigation(<HistoryView onBackClick={handleBackToHome} onChatHistoryClick={handleChatHistoryClick} onNewChatClick={handleStartChat}/>, 'history');
50
52
  }
51
53
  return renderWithNavigation(<div className="relative h-full w-full">
52
- <div className="absolute left-0 top-0 z-0 h-full w-full bg-contain bg-top bg-no-repeat will-change-transform" style={{
53
- backgroundImage: "url('/images/daeryuntalk-intro.png')"
54
- }}/>
54
+ <div className="absolute left-0 top-0 z-0 h-full w-full overflow-hidden">
55
+ <Image src={DaeryuntalkIntro} alt="대화 배경" fill className="object-contain object-top will-change-transform" priority/>
56
+ </div>
55
57
 
56
58
  <div className="relative z-10 flex h-full flex-col">
57
59
  <header className="mt-2 flex items-center p-4 text-xs text-black">
@@ -8,6 +8,8 @@ import SendIcon from '../../asset/images/daeryuntalk/send.svg';
8
8
  import TimeIcon from '../../asset/images/daeryuntalk/time.svg';
9
9
  import InfoIcon from '../../asset/images/daeryuntalk/info.svg';
10
10
  import DaeryunLogoIcon from '../../asset/images/daeryuntalk/daeryun-logo.svg';
11
+ import DaeryuntalkIntro from '../../asset/images/daeryuntalk/daeryuntalk-intro.png';
12
+
11
13
  type ViewState = 'home' | 'conversation' | 'history' | 'historyDetail';
12
14
 
13
15
  const ChatHomeView: React.FC = () => {
@@ -76,12 +78,15 @@ const ChatHomeView: React.FC = () => {
76
78
 
77
79
  return renderWithNavigation(
78
80
  <div className="relative h-full w-full">
79
- <div
80
- className="absolute left-0 top-0 z-0 h-full w-full bg-contain bg-top bg-no-repeat will-change-transform"
81
- style={{
82
- backgroundImage: "url('/images/daeryuntalk-intro.png')"
83
- }}
84
- />
81
+ <div className="absolute left-0 top-0 z-0 h-full w-full overflow-hidden">
82
+ <Image
83
+ src={DaeryuntalkIntro}
84
+ alt="대화 배경"
85
+ fill
86
+ className="object-contain object-top will-change-transform"
87
+ priority
88
+ />
89
+ </div>
85
90
 
86
91
  <div className="relative z-10 flex h-full flex-col">
87
92
  <header className="mt-2 flex items-center p-4 text-xs text-black">
@@ -4501,18 +4501,6 @@ video {
4501
4501
  --tw-bg-opacity: 55%;
4502
4502
  }
4503
4503
 
4504
- .bg-contain {
4505
- background-size: contain;
4506
- }
4507
-
4508
- .bg-top {
4509
- background-position: top;
4510
- }
4511
-
4512
- .bg-no-repeat {
4513
- background-repeat: no-repeat;
4514
- }
4515
-
4516
4504
  .\!fill-\[\#254B80\] {
4517
4505
  fill: #254B80 !important;
4518
4506
  }