Design: footer 디자인 수정
This commit is contained in:
parent
bfa5ba0125
commit
a819d64ea9
@ -1,42 +1,24 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import Modal from './Modal';
|
import Modal from './Modal';
|
||||||
import { cn } from '@/lib/utils';
|
|
||||||
export interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
||||||
|
|
||||||
export default function Footer({ className, ...props }: FooterProps) {
|
export default function Footer() {
|
||||||
const [isTermsOpen, setIsTermsOpen] = React.useState(false);
|
const [modalState, setModalState] = React.useState<'terms' | 'privacy' | null>(null);
|
||||||
const [isPrivacyOpen, setIsPrivacyOpen] = React.useState(false);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer
|
<footer className="select-none bg-gray-100">
|
||||||
className={cn('mt-[100px] border-t border-gray-200 bg-gray-100', className)}
|
<div className="container py-8 text-gray-400">
|
||||||
{...props}
|
<div className="body-small flex flex-col items-start gap-5">
|
||||||
>
|
<div>
|
||||||
{' '}
|
<div className="heading">WorLabel</div>
|
||||||
<div className="container py-10">
|
<span>Copyright © 2024 WorLabel All rights reserved</span>
|
||||||
<div className="flex flex-col items-start gap-5">
|
|
||||||
<div className="relative">
|
|
||||||
<div className="font-heading text-lg text-gray-600 md:text-xl">WorLabel</div>
|
|
||||||
<p className="font-body-small mt-2 text-gray-500">Copyright © 2024 WorLabel All rights reserved</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="inline-flex items-center gap-4">
|
<div className="inline-flex items-center gap-2">
|
||||||
<button
|
<button onClick={() => setModalState('terms')}>서비스 이용약관</button>
|
||||||
className="font-body-small text-gray-500 hover:text-primary"
|
<span className="h-3 w-px rounded bg-gray-400" />
|
||||||
onClick={() => setIsTermsOpen(true)}
|
<button onClick={() => setModalState('privacy')}>개인정보 처리방침</button>
|
||||||
>
|
|
||||||
서비스 이용약관
|
|
||||||
</button>
|
|
||||||
<div className="h-4 w-px bg-gray-400" />
|
|
||||||
<button
|
|
||||||
className="font-body-small text-gray-500 hover:text-primary"
|
|
||||||
onClick={() => setIsPrivacyOpen(true)}
|
|
||||||
>
|
|
||||||
개인정보 처리방침
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* Terms of Service Modal */}
|
|
||||||
<Modal
|
<Modal
|
||||||
title="서비스 이용약관"
|
title="서비스 이용약관"
|
||||||
content={
|
content={
|
||||||
@ -86,10 +68,9 @@ export default function Footer({ className, ...props }: FooterProps) {
|
|||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
open={isTermsOpen}
|
open={modalState === 'terms'}
|
||||||
onClose={() => setIsTermsOpen(false)}
|
onClose={() => setModalState(null)}
|
||||||
/>
|
/>
|
||||||
{/* Privacy Policy Modal */}
|
|
||||||
<Modal
|
<Modal
|
||||||
title="개인정보 처리방침"
|
title="개인정보 처리방침"
|
||||||
content={
|
content={
|
||||||
@ -142,8 +123,8 @@ export default function Footer({ className, ...props }: FooterProps) {
|
|||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
open={isPrivacyOpen}
|
open={modalState === 'privacy'}
|
||||||
onClose={() => setIsPrivacyOpen(false)}
|
onClose={() => setModalState(null)}
|
||||||
/>
|
/>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user