first commit

This commit is contained in:
2026-08-04 14:30:00 +09:00
commit 4176f04a61
25 changed files with 5294 additions and 0 deletions

258
static/css/layer.css Normal file
View File

@@ -0,0 +1,258 @@
.container {
margin: 20px;
border: solid 1px black;
}
main {
display: grid;
grid-template-columns: 1fr 1.5fr 1fr;
}
.leftContainer {
display: flex;
flex-direction: column;
align-items: center;
border: solid 1px black;
}
.leftbuttonBox {
margin-top: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.leftContainer button {
margin-top: 20px;
width: 200px;
height: 72px;
}
.leftContainer button.selected {
color: rgb(54, 54, 54);
background-color: rgb(61, 230, 69);
}
.middleContainer {
display: grid;
grid-template-rows: auto;
border: solid 1px black;
}
.middleBoxContainer {
margin-bottom: 20px;
}
.buttonBox {
display: flex;
flex-direction: column;
margin-top: 30px;
}
.buttonBox button {
padding: 15px 20px;
font-size: 32px;
}
.buttonWithImage {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.buttonWithImage img {
width: 140px;
height: 140px;
margin-right: 10px;
margin-left: 17px;
}
.buttonBox button.selected {
color: rgb(54, 54, 54);
background-color: rgb(61, 230, 69);
}
.rightContainer {
display: grid;
grid-template-rows: 60px 60px 238px 60px 60px;
border: solid 1px black;
}
button {
margin: 0 20px;
margin-bottom: 10px;
padding: 10px 20px;
font-size: 32px;
font-weight: bold;
color: rgb(54, 54, 54);
background-color: #3396ff;
border: solid 2px black;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
#sendPaletteInfo {
margin: 0;
width: 100%;
height: 72px;
margin-bottom: 20px;
background-color: #3396ff;
}
#startRobotButton {
margin: 0;
width: 100%;
height: 72px;
margin-bottom: 55px;
margin-top: 10px;
padding: 10px 15px;
background-color: #3396ff;
}
#startRobotButton:disabled {
background-color: gray;
color: white;
cursor: not-allowed;
}
#woodenFlatPallet:disabled {
background-color: gray;
color: white;
cursor: not-allowed;
}
#exitAppButton {
margin: 0;
width: 100%;
color: rgb(54, 54, 54);
background-color: rgb(252, 101, 101);
padding: 10px;
cursor: pointer;
font-size: 22px;
}
#resetButton {
margin: 0;
width: 100%;
color: rgb(54, 54, 54);
background-color: rgb(252, 169, 101);
padding: 10px;
cursor: pointer;
font-size: 22px;
}
#bookHeight {
width: 100px;
height: 40px;
margin-top: 10px;
padding: 10px;
font-size: 19px;
border: 1px solid #ccc;
border-radius: 5px;
}
#palletHeight {
width: 180px;
height: 40px;
margin-top: 10px;
padding: 10px;
font-size: 19px;
border: 1px solid #ccc;
border-radius: 5px;
}
.inputContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.inputBox {
display: flex;
}
p {
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 40px;
margin-top: 10px;
padding: 10px;
font-size: 19px;
border: 1px solid #ccc;
border-radius: 5px;
}
#bookHeight::placeholder,
#palletHeight::placeholder {
color: #999;
}
#bookHeightTitle,
#palletHeightTitle {
margin-top: 20px;
font-size: 19px;
font-weight: 600;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
#alert {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
position: absolute;
justify-content: center;
display: none;
}
#alertBox{
width: 80%;
height: 50%;
background-color: white;
display: flex;
align-self: center;
border-radius: 10px;
border:2px solid black;
justify-content: center;
align-items: center;
flex-direction: column;
}
#loader {
border: 16px solid #f3f3f3; /* Light gray */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 100px;
height: 100px;
animation: spin 1s linear infinite;
margin: 10px auto; /* Center the loader */
}
#alert_msg {
font-size: 32px;
font-weight: bold;
color: rgb(54, 54, 54);
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

View File

@@ -0,0 +1,249 @@
.container {
margin: 20px;
border: solid 1px black;
}
main {
display: grid;
grid-template-columns: 2fr 1.5fr;
}
.leftContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: solid 1px black;
min-height: 90vh;
}
.gridContainer {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
width: 100%;
max-width: 380px;
margin: 0 auto;
margin-top: 0px;
}
.gridItem {
width: 180px;
height: 120px;
background-color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #ccc;
cursor: pointer;
font-size: 45px;
font-weight: 600;
}
.gridItem.selected {
background-color: #34b800;
color: #fff;
}
.gridItem.disabled {
pointer-events: none;
opacity: 0.5; /* 비활성화 상태를 시각적으로 나타내기 위해 투명도를 줄입니다 */
}
.buttonContainer {
margin-top: 10px;
display: flex;
flex-direction: column;
align-items: center;
}
.buttonContainer button {
width: 330px;
height: 72px;
margin-top: 10px;
}
.buttonContainer button:disabled {
background-color: gray;
color: white;
cursor: not-allowed;
}
.rightContainer {
border: solid 1px black;
display: grid;
grid-template-rows: repeat(4, 60px);
}
#finishAction {
margin: 0;
width: 100%;
height: 70px;
}
#terminateAction {
margin: 0;
width: 100%;
height: 70px;
background-color: #ff3c00;
}
#currentLayerIndexDisplay {
font-weight: 600;
font-size: 23px;
}
button {
margin: 0 20px;
margin-bottom: 10px;
padding: 10px 20px;
font-size: 37px;
font-weight: 700;
color: rgb(54, 54, 54);
background-color: #3396ff;
border: solid 20x black;
cursor: pointer;
transition: background-color 0.3s ease;
}
#exitAppButton {
width: 100%;
margin: 0;
height: 60px;
border-radius: 0px;
color: rgb(54, 54, 54);
background-color: rgb(252, 101, 101);
font-size: 22px;
border: solid 1px black;
}
.buttonBox {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.buttonBox button {
margin: 0;
height: 60px;
width: 50%;
border-radius: 0px;
font-size: 22px;
border: solid 1px black;
}
#stackerStartButton,
#upDownOnButton,
#leftRightOnButton {
color: rgb(54, 54, 54);
background-color: rgb(61, 230, 69);
}
#stackerStopButton,
#upDownOffButton,
#leftRightOffButton {
color: rgb(54, 54, 54);
background-color: rgb(252, 169, 101);
}
.inputContainer {
display: flex;
flex-direction: column;
justify-content: end;
align-items: center;
}
.inputBox {
display: flex;
}
p {
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 35px;
margin-top: 10px;
padding: 10px;
font-size: 19px;
border: 1px solid #ccc;
border-radius: 5px;
}
span {
font-size: 21px;
font-weight: 600;
}
#bookHeight {
width: 100px;
height: 35px;
margin-top: 10px;
padding: 10px;
font-size: 19px;
border: 1px solid #ccc;
border-radius: 5px;
}
#bookHeight::placeholder {
color: #999;
}
#bookHeightTitle {
margin-top: 10px;
font-size: 19px;
font-weight: 600;
}
/* 팝업을 화면 중앙에 표시하기 위한 스타일 */
#bookCountPopup {
display: none; /* 기본적으로 보이지 않음 */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* 창을 중앙에 위치하게 함 */
width: 300px;
padding: 20px;
background-color: white;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 8px;
z-index: 1001;
text-align: center;
}
/* 배경을 어둡게 처리 */
#popupOverlay {
display: none; /* 기본적으로 보이지 않음 */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
}
/* 제출 버튼 스타일 */
#submitBookCount {
margin-top: 15px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#submitBookCount:hover {
background-color: #45a049;
}
/* 입력 필드 스타일 */
#bookCountInput {
margin-top: 10px;
padding: 8px;
width: 80%;
border: 1px solid #ccc;
border-radius: 5px;
}

109
static/css/progress.css Normal file
View File

@@ -0,0 +1,109 @@
.container {
margin: 0;
margin: 20px;
border: solid 1px black;
}
main {
display: grid;
grid-template-columns: 2fr 1fr;
}
.leftContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 90vh;
border: solid 1px black;
}
.rightContainer {
border: solid 1px black;
}
.msg {
margin-top: 70px;
font-size: 45px;
font-weight: 700;
}
#finishAction {
margin-top: 20px;
width: 343px;
height: 74px;
}
#terminateAction {
margin-top: 25px;
width: 343px;
height: 74px;
background-color: rgb(252, 101, 101);
}
button {
margin: 0 20px;
margin-bottom: 10px;
padding: 10px 20px;
font-size: 38px;
font-weight: 700;
color: rgb(54, 54, 54);
background-color: #3396ff;
border: solid 2px black;
cursor: pointer;
transition: background-color 0.3s ease;
}
p {
font-size: 30px;
font-weight: 600;
}
span {
font-size: 30px;
font-weight: 600;
}
.rightContainer {
display: grid;
grid-template-rows: repeat(4, 60px);
}
.buttonBox {
display: flex;
height: 70px;
}
#exitAppButton {
width: 100%;
margin: 0;
height: 60px;
border-radius: 0px;
color: rgb(54, 54, 54);
background-color: rgb(252, 101, 101);
font-size: 22px;
border: solid 1px black;
}
.buttonBox button {
margin: 0;
height: 60px;
width: 16vw;
border-radius: 0px;
font-size: 22px;
border: solid 1px black;
}
#stackerStartButton,
#upDownOnButton,
#leftRightOnButton {
color: rgb(54, 54, 54);
background-color: rgb(61, 230, 69);
}
#stackerStopButton,
#upDownOffButton,
#leftRightOffButton {
color: rgb(54, 54, 54);
background-color: rgb(252, 169, 101);
}