This repository was archived by the owner on Dec 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodels.html
More file actions
182 lines (173 loc) · 6.46 KB
/
models.html
File metadata and controls
182 lines (173 loc) · 6.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3차원 대장간 | Models</title>
<link rel="stylesheet" href="/style/style.css">
<style>
/* Models 페이지 전용 추가 스타일 */
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
/* 파일 업로드 버튼 (메인) */
.btn-upload-new {
background-color: #007bff;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
display: flex;
align-items: center;
gap: 5px;
}
.btn-upload-new:hover {
background-color: #0056b3;
}
/* 테이블 내 액션 버튼들 */
.action-btn {
padding: 5px 10px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.85rem;
margin-right: 5px;
}
.btn-print {
background-color: #28a745; /* 초록색 */
color: white;
}
.btn-print:hover {
background-color: #218838;
}
.btn-delete {
background-color: #dc3545; /* 빨간색 */
color: white;
}
.btn-delete:hover {
background-color: #c82333;
}
/* 테이블 스타일 보강 */
.model-table {
width: 100%;
border-collapse: collapse;
}
.model-table th, .model-table td {
text-align: left;
padding: 12px;
border-bottom: 1px solid #ddd;
}
.model-table th {
background-color: #f8f9fa;
font-weight: 600;
}
</style>
</head>
<body>
<header class="header">
<img src="/public/logo.png" alt="3차원 대장간" class="header-logo" />
<a href="/login.html"><button class="login-btn">Log In</button></a>
</header>
<aside class="sidebar">
<nav class="sidebar-nav">
<ul>
<li>
<a href="dashboard.html"
style="color: inherit; text-decoration: none; display: flex; align-items: center; width: 100%;">
<span class="icon">🟧</span> Dashboard
</a>
</li>
<li>
<a href="printers.html"
style="color: inherit; text-decoration: none; display: flex; align-items: center; width: 100%;">
<span class="icon">🖨️</span> Printers
</a>
</li>
<li class="active">
<a href="models.html"
style="color: inherit; text-decoration: none; display: flex; align-items: center; width: 100%;">
<span class="icon">🧊</span> Models
</a>
</li>
<li>
<a href="history.html"
style="color: inherit; text-decoration: none; display: flex; align-items: center; width: 100%;">
<span class="icon">📜</span> History
</a>
</li>
<li>
<a href="settings.html"
style="color: inherit; text-decoration: none; display: flex; align-items: center; width: 100%;">
<span class="icon">⚙️</span> Settings
</a>
</li>
</ul>
</nav>
</aside>
<main class="main-content">
<div class="card full-width">
<div class="card-header">
<h3>저장된 모델 (G-code / STL)</h3>
<button class="btn-upload-new" onclick="document.location='/upload.html'">
<span>📤</span> 파일 업로드
</button>
</div>
<table class="model-table">
<thead>
<tr>
<th style="width: 10%;">ID</th>
<th style="width: 40%;">모델 이름</th>
<th style="width: 30%;">업로드 시간</th>
<th style="width: 30%;">작업 (Actions)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><strong>IronMan_Mask_v2.stl</strong></td>
<td>2024-05-20 14:30</td>
<td>
<button class="action-btn btn-print">🖨️ 출력하기</button>
<button class="action-btn btn-delete">🗑️ 삭제</button>
</td>
</tr>
<tr>
<td>2</td>
<td><strong>Calibration_Cube.gcode</strong></td>
<td>2024-05-19 09:15</td>
<td>
<button class="action-btn btn-print">🖨️ 출력하기</button>
<button class="action-btn btn-delete">🗑️ 삭제</button>
</td>
</tr>
<tr>
<td>3</td>
<td><strong>Phone_Stand_Holder.stl</strong></td>
<td>2024-05-18 18:45</td>
<td>
<button class="action-btn btn-print">🖨️ 출력하기</button>
<button class="action-btn btn-delete">🗑️ 삭제</button>
</td>
</tr>
<tr>
<td>4</td>
<td><strong>Cable_Clip_x10.gcode</strong></td>
<td>2024-05-15 11:20</td>
<td>
<button class="action-btn btn-print">🖨️ 출력하기</button>
<button class="action-btn btn-delete">🗑️ 삭제</button>
</td>
</tr>
</tbody>
</table>
</div>
</main>
<script src="/src/confirm-login.js"></script>
<script src="/src/models.js"></script>
</body>
</html>