Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/4bujak-4bujak/frontend i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
eun-hak committed Jun 12, 2024
2 parents b46d28b + 7349fa2 commit 497202f
Show file tree
Hide file tree
Showing 25 changed files with 520 additions and 789 deletions.
15 changes: 7 additions & 8 deletions src/components/home/MainHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
'use client';
import Link from 'next/link';
import { useRouter } from 'next/router';
import React from 'react';

const MainHeader = () => {
const router = useRouter();
return (
<header>
<div className="flex justify-between items-center py-2">
<div className="w-[116px] h-8">
<div className="w-[116px] h-8 cursor-pointer">
<img src="/officelogowhite.svg" alt="" className="w-full" />
</div>
<div className="flex justify-center items-center gap-6">
<div>
<div onClick={() => router.push('mypage/question')}>
<img src="/home/Inquiry_white.svg" alt="" />
</div>
<Link href={'/notification'}>
<div>
<img src="/home/Notification_white.svg" alt="" />
</div>
</Link>
<div onClick={() => router.push('/notification')}>
<img src="/home/Notification_white.svg" alt="" />
</div>
</div>
</div>
</header>
Expand Down
21 changes: 11 additions & 10 deletions src/components/home/OfficeInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ const OfficeInfo = () => {

return (
<div>
{data.length == 0 ? <OfficeInfoNone /> : null}
{data.map((room: todayListData, i: number) => {
if (room.spaceType == 'FOCUSDESK') {
return <OfficeInfoFocus data={room} key={i} />;
} else if (room.spaceType == 'MEETINGROOM') {
return <OfficeInfoMeeting data={room} key={i} />;
} else {
return <OfficeInfoRecharging data={room} key={i} />;
}
})}
{data && data.length == 0 ? <OfficeInfoNone /> : null}
{data &&
data.map((room: todayListData, i: number) => {
if (room.spaceType == 'FOCUSDESK') {
return <OfficeInfoFocus data={room} key={i} />;
} else if (room.spaceType == 'MEETINGROOM') {
return <OfficeInfoMeeting data={room} key={i} />;
} else {
return <OfficeInfoRecharging data={room} key={i} />;
}
})}
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/OfficeNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const OfficeNotice: React.FC = () => {

return (
<>
<div className="w-full h-12 mt-7 bg-gray-200 flex items-center gap-[13px] px-[13px] py-[14px] rounded shadow border border-gray-200">
<div className="w-full h-12 mt-7 flex items-center gap-[13px] px-[13px] py-[14px] rounded shadow border border-gray-200" style={{ backgroundColor: 'rgb(228, 224, 245)' }}>
<div>
<img src="/home/notice.svg" alt="" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Footer = () => {
)}
</div>
<div className="text-center text-black text-xs font-normal font-['Pretendard']">
예약/일정
예약
</div>
</div>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Header = () => {
<img src="/officelogo.svg" alt="" />
</div>
<div className="flex items-center justify-center gap-6">
<div className="cursor-pointer">
<div onClick={() => router.push('mypage/question')} className="cursor-pointer">
<img src="/Inquiry.svg" alt="" />
</div>
<Link href={'/notification'}>
Expand Down
11 changes: 6 additions & 5 deletions src/components/reservation/meetingRoom/DatePickerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,12 @@ const DatePickerModal: React.FC<DatePickerModalProps> = ({
</div>
)}
<div className="pt-[10px] w-full text-center items-center">
<button
className="absolute bottom-[30px] flex w-[88%] mx-auto h-12 bg-indigo-700 text-white rounded-lg justify-center items-center"
onClick={handleConfirm}>
확인
</button>
<button
className="absolute bottom-[30px] flex w-[88%] mx-auto h-12 text-white rounded-lg justify-center items-center"
style={{ backgroundColor: '#4E32BB' }}
onClick={handleConfirm}>
확인
</button>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 497202f

Please sign in to comment.