Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

챗봇 서비스 불가 안내 모달 추가 #176

Merged
merged 1 commit into from
Mar 12, 2024
Merged
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
2 changes: 2 additions & 0 deletions client/src/app/chat/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Footer from "@/containers/home/footer"
import Navigator from "@/containers/home/navigator"
import AuthProvider from "@/contexts/authContextProvider"
import ChatroomProvider from "@/contexts/chatroomContextProvider"
import AnnounceModal from "@/containers/home/announceModal"

export default function ChatLayout({ children }: { children: ReactNode }) {
return (
Expand All @@ -13,6 +14,7 @@ export default function ChatLayout({ children }: { children: ReactNode }) {
<main className="flex grow flex-col">
<Header />
<section className="grow">{children}</section>
<AnnounceModal />
<Footer />
</main>
</ChatroomProvider>
Expand Down
25 changes: 25 additions & 0 deletions client/src/containers/home/announceModal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client"

import { useState } from "react"
import Modal from "@/components/modal"

export default function AnnounceModal() {
const [isOpen, setIsOpen] = useState(true)
return (
isOpen && (
<Modal onClickClose={() => setIsOpen(false)} description="">
<div className="px-8 py-32 max-md:py-24 max-md:text-sm flex flex-col gap-3">
<p className="">현재 foodie AI server는 비용 상의 문제로 운영되고 있지 않습니다.</p>

<p>AI foodie와의 대화를 나누고 싶다면 개발자 이메일로 문의 부탁드립니다. 일정시간 foodie를 깨워드립니다!</p>
<p>
문의하기:{" "}
<a className="text-blue-600 hover:text-blue-800" href="[email protected]">
[email protected]
</a>
</p>
</div>
</Modal>
)
)
}
Loading