Skip to content
Snippets Groups Projects
Commit 07161314 authored by 준현 강's avatar 준현 강
Browse files

[EDIT] CSS수정

parent e5cbb7b6
No related branches found
No related tags found
No related merge requests found
...@@ -97,16 +97,18 @@ const CalendarWeek = ({ ...@@ -97,16 +97,18 @@ const CalendarWeek = ({
const weekDates = weeks[currentWeekIndex] || []; const weekDates = weeks[currentWeekIndex] || [];
return ( return (
<div> <div className="wrap">
<button onClick={handlePrevWeek} disabled={currentWeekIndex === 0}> <div className="button-container">
Prev Week <button onClick={handlePrevWeek} disabled={currentWeekIndex === 0}>
</button> Prev Week
<button </button>
onClick={handleNextWeek} <button
disabled={currentWeekIndex === weeks.length - 1} onClick={handleNextWeek}
> disabled={currentWeekIndex === weeks.length - 1}
Next Week >
</button> Next Week
</button>
</div>
<table className="calendar-container"> <table className="calendar-container">
<thead> <thead>
<tr> <tr>
......
...@@ -67,6 +67,15 @@ export default function ResultEndForm() { ...@@ -67,6 +67,15 @@ export default function ResultEndForm() {
}, },
], ],
}, },
{
name: "test6",
availableSchedules: [
{
availableDate: "2023-12-22",
availableTimes: [38],
},
],
},
], ],
}; };
const [title, setTitle] = useState(meetingData.title); const [title, setTitle] = useState(meetingData.title);
...@@ -84,14 +93,19 @@ export default function ResultEndForm() { ...@@ -84,14 +93,19 @@ export default function ResultEndForm() {
return ( return (
<div <div
style={{ textAlign: "center", display: "flex", flexDirection: "column" }} style={{
textAlign: "center",
display: "flex",
flexDirection: "column",
alignItems: "center",
}}
> >
<span className="row1"> <span className="row1">
<h1 className="title-box">{title}</h1> <h1 className="title-box">{title}</h1>
<p>투표가 종료되었습니다.</p> <p>투표가 종료되었습니다.</p>
<p style={{ color: "blue" }}>약속 시간은 {resultTime}입니다.</p> <p style={{ color: "blue" }}>약속 시간은 {resultTime}입니다.</p>
<div> <div>
<h2>총 참여한 인원수</h2> <h2 style={{ flex: "none" }}>총 참여한 인원수</h2>
<p>{completedPeopleNum}</p> <p>{completedPeopleNum}</p>
<form className="form-container"> <form className="form-container">
{possibleDates.map((date, index) => ( {possibleDates.map((date, index) => (
...@@ -117,17 +131,16 @@ export default function ResultEndForm() { ...@@ -117,17 +131,16 @@ export default function ResultEndForm() {
랜덤으로 약속 시간 확정하기 랜덤으로 약속 시간 확정하기
</button> </button>
</div> </div>
<span style={{ display: "flex", flexDirection: "row" }}> <div style={{ display: "flex", flexDirection: "row" }}>
<div className="calander-container"> <CalendarWeek
<CalendarWeek participants={meetingData.participants}
participants={meetingData.participants} startDate={meetingData.startDate}
startDate={meetingData.startDate} endDate={meetingData.endDate}
endDate={meetingData.endDate} maxParticipants={meetingData.maxParticipants}
maxParticipants={meetingData.maxParticipants} hoveredInfo={hoveredInfo}
hoveredInfo={hoveredInfo} setHoveredInfo={setHoveredInfo}
setHoveredInfo={setHoveredInfo} />
/>
</div>
<div className="row2"> <div className="row2">
<span className="possible"> <span className="possible">
{hoveredInfo && ( {hoveredInfo && (
...@@ -144,7 +157,7 @@ export default function ResultEndForm() { ...@@ -144,7 +157,7 @@ export default function ResultEndForm() {
)} )}
</span> </span>
</div> </div>
</span> </div>
</span> </span>
</div> </div>
); );
......
...@@ -3,11 +3,9 @@ import "../styles/HomeMake.css"; ...@@ -3,11 +3,9 @@ import "../styles/HomeMake.css";
function ResultEnd() { function ResultEnd() {
return ( return (
<div <>
style={{ display: "flex", alignItems: "center", flexDirection: "column" }}
>
<ResultEndForm /> <ResultEndForm />
</div> </>
); );
} }
......
.calendar-container { .calendar-container {
margin-top: 20px;; margin-top: 20px;
width: 100%;
}
.button-container {
display: flex;
justify-content: space-between;
width: 65%;
} }
.wrap {
width: 70%;
}
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
......
.title-box {
width: 30%;
margin: 0 auto;
text-align: center;
}
.form-container { .form-container {
width: 100%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
...@@ -9,9 +14,8 @@ ...@@ -9,9 +14,8 @@
padding: 10px; padding: 10px;
} }
.possible { .possible {
margin-left: 0px;
position: fixed; position: fixed;
width: 20em; width: 20%;
border-width: 1px; border-width: 1px;
border-color: black; border-color: black;
border-style: solid; border-style: solid;
...@@ -21,3 +25,7 @@ ...@@ -21,3 +25,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.calendar-container {
width: 65%;
}
.title-box {
width: 30%;
margin: 0 auto;
text-align: center;
}
.column-container { .column-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -12,10 +17,6 @@ ...@@ -12,10 +17,6 @@
flex-direction: row; flex-direction: row;
} }
.calendar-container {
margin-right: 30px;
}
.mostTime { .mostTime {
background-color: white; background-color: white;
position: fixed; position: fixed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment