Skip to content
Snippets Groups Projects
Commit 2fb6c5fd authored by 이권민's avatar 이권민
Browse files

[EDIT] CSS

parent 268d524e
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ const CalendarWeek = ({ ...@@ -113,7 +113,7 @@ const CalendarWeek = ({
}; };
const weekDates = weeks[currentWeekIndex] || []; const weekDates = weeks[currentWeekIndex] || [];
console.log(endTimeSlot, startTimeSlot);
return ( return (
<div className="calendarWeekContainer wrap"> <div className="calendarWeekContainer wrap">
<div className="button-container"> <div className="button-container">
......
...@@ -74,7 +74,7 @@ function CaculateWeek({ ...@@ -74,7 +74,7 @@ function CaculateWeek({
const weekArr = []; const weekArr = [];
const selectArr = []; const selectArr = [];
weekArr.push(<td></td>); weekArr.push(<td className="tt"></td>);
for (let i = startTime; i < endTime; i++) { for (let i = startTime; i < endTime; i++) {
const forSelect = []; const forSelect = [];
const minute = i * 30; const minute = i * 30;
...@@ -135,7 +135,7 @@ function CaculateWeek({ ...@@ -135,7 +135,7 @@ function CaculateWeek({
selectArr.push( selectArr.push(
<tr key={i}> <tr key={i}>
<td>{time}</td> <td className="tt">{time}</td>
{forSelect} {forSelect}
</tr> </tr>
); );
...@@ -227,7 +227,7 @@ function CalendarWeek2({ ...@@ -227,7 +227,7 @@ function CalendarWeek2({
return ( return (
<div className="calendar"> <div className="calendar">
<div className="header"> <div className="header">
<h2> <h2 className="UTH2">
<button onClick={prevWeek}>prev</button> <button onClick={prevWeek}>prev</button>
{nowYear}{nowMonth}{nowWeek}주차 {nowYear}{nowMonth}{nowWeek}주차
<button onClick={nextWeek}>next</button> <button onClick={nextWeek}>next</button>
......
...@@ -9,7 +9,7 @@ export default function MakeDay2() { ...@@ -9,7 +9,7 @@ export default function MakeDay2() {
return ( return (
<thead> <thead>
<tr> <tr>
<th className="table_head"></th> <th className="table_head tt"></th>
{days} {days}
</tr> </tr>
</thead> </thead>
......
...@@ -194,7 +194,8 @@ function UserTimeInfo() { ...@@ -194,7 +194,8 @@ function UserTimeInfo() {
}; };
return ( return (
<div className="center-container"> <div className="what">
<div className="center-container3">
<div className="calendarForm"> <div className="calendarForm">
<div className="cc1"> <div className="cc1">
<button <button
...@@ -229,6 +230,7 @@ function UserTimeInfo() { ...@@ -229,6 +230,7 @@ function UserTimeInfo() {
</div> </div>
</div> </div>
</div> </div>
</div>
); );
} }
......
* { * {
font-family: 'Noto Sans KR', sans-serif; font-family: "Noto Sans KR", sans-serif;
} }
/* Media queries for responsiveness */ /* Media queries for responsiveness */
......
.center-container3 {
display: flex;
flex-direction: column; /* 세로 방향으로 정렬 */
align-items: center;
height: 100vh;
margin: auto;
}
.what {
width: 30%;
padding: 20px;
/* background-color: #00adb5;s */
text-align: center;
margin: auto;
}
.tt {
font-size: 10px;
}
h2.UTH2 {
font-size: 16px;
}
.calendarTable table {
width: 100%;
border-collapse: collapse;
text-align: center;
margin-bottom: 4%;
}
.calendarTable td {
border: 1px solid #ddd;
padding: 10px;
}
.calendarTable table tbody td.tt {
text-align: center;
}
.calendarTable th {
background-color: #f4f4f4;
}
.calendarTable td {
background-color: #f4f4f4;
cursor: pointer;
}
.calendarForm { .calendarForm {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 20px; padding: 20px;
text-align: center; text-align: center;
align-items: stretch;
width: auto;
margin: 0 auto; /* 가운데 정렬을 위한 추가 */
} }
.calendarForm .calendar { .calendarForm .calendar {
height: auto; height: auto;
...@@ -23,6 +69,13 @@ ...@@ -23,6 +69,13 @@
background-color: skyblue; /* 배경색 지정 */ background-color: skyblue; /* 배경색 지정 */
} }
.header button:first-child {
margin-right: 10%;
}
.header button:last-child {
margin-left: 10%;
}
.cc1 { .cc1 {
display: flex; display: flex;
gap: 30px; gap: 30px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment