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

[EDIT] CSS

parent 957efc7a
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },
"scripts": { "scripts": {
"start": "export PORT=80 && react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
......
function Button({ type, text, onClick, disabled }) { function Button({ type, text, onClick, disabled }) {
return ( return (
<button <button
className={disabled ? 'disabled' : 'active'} className={disabled ? "disabled" : "active"}
type={type} type={type}
onClick={onClick} onClick={onClick}
disabled={disabled} disabled={disabled}
...@@ -12,5 +11,4 @@ function Button({type,text,onClick,disabled}){ ...@@ -12,5 +11,4 @@ function Button({type,text,onClick,disabled}){
); );
} }
export default Button; export default Button;
...@@ -197,8 +197,20 @@ function UserTimeInfo() { ...@@ -197,8 +197,20 @@ function UserTimeInfo() {
<div className="center-container"> <div className="center-container">
<div className="calendarForm"> <div className="calendarForm">
<div className="cc1"> <div className="cc1">
<Button type="button" text="가능한 시간" onClick={handleState1} /> <button
<Button type="button" text="불가능한 시간" onClick={handleState2} /> type="button"
className={"now" + !state}
onClick={handleState1}
>
가능한 시간
</button>
<button
type="button"
className={"now" + state}
onClick={handleState2}
>
불가능한 시간
</button>
</div> </div>
<CalendarWeek2 <CalendarWeek2
state={state} state={state}
......
.calendar-month .calendar {
min-height: 430px;
}
.header { .header {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -4,6 +4,12 @@ body { ...@@ -4,6 +4,12 @@ body {
padding: 0; padding: 0;
} }
.calendar-month .calendar {
border: 0px;
padding: 0px;
min-height: 26em;
}
.center-container { .center-container {
display: flex; display: flex;
flex-direction: column; /* 세로 방향으로 정렬 */ flex-direction: column; /* 세로 방향으로 정렬 */
...@@ -52,7 +58,7 @@ input { ...@@ -52,7 +58,7 @@ input {
} }
button { button {
width: 60%; width: 100%;
padding: 10px; padding: 10px;
margin-top: 16px; margin-top: 16px;
background-color: #3498db; background-color: #3498db;
...@@ -109,13 +115,19 @@ button:hover { ...@@ -109,13 +115,19 @@ button:hover {
} }
.calendarTable .dragging { .calendarTable .dragging {
background-color: red; background-color: skyblue;
} }
.calendarTable .noDate { .calendarTable .noDate {
background-color: gray; background-color: gray;
} }
.calendarTable td.dragging {
text-align: center; /* 텍스트를 가운데 정렬 */
vertical-align: middle; /* 텍스트를 수직 가운데 정렬 */
background-color: skyblue; /* 배경색 지정 */
}
.title-box { .title-box {
text-align: center; text-align: center;
border-width: 1px; border-width: 1px;
......
...@@ -9,6 +9,18 @@ ...@@ -9,6 +9,18 @@
} }
.calendarForm .calendar { .calendarForm .calendar {
height: auto; height: auto;
border: 0px;
padding: 0px;
}
.calendarForm button.nowtrue {
background-color: gray;
}
.calendarTable td.dragging {
text-align: center; /* 텍스트를 가운데 정렬 */
vertical-align: middle; /* 텍스트를 수직 가운데 정렬 */
background-color: skyblue; /* 배경색 지정 */
} }
.cc1 { .cc1 {
...@@ -40,13 +52,14 @@ ...@@ -40,13 +52,14 @@
width: 30%; width: 30%;
} }
@media (max-width: 768px) { /* @media (max-width: 768px) {
form { .calendarForm {
width: 80%; width: 80%;
} }
} }
@media (max-width: 576px) { @media (max-width: 576px) {
form { .calendarForm {
width: 90%; width: 90%;
} }
} } */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment