-
Notifications
You must be signed in to change notification settings - Fork 2
/
noticeboard.html
168 lines (153 loc) · 4.61 KB
/
noticeboard.html
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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>게시판</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 80vh;
}
h1 {
text-align: center;
}
.table-container {
width: 100%;
max-width: 600px; /* 표의 최대 너비를 지정하세요 */
margin-top: 20px;
overflow-x: auto; /* 가로 스크롤이 필요한 경우 스크롤 허용 */
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
.status {
display: inline-block;
padding: 5px 10px;
border-radius: 5px;
color: #fff;
font-weight: bold;
}
.pending { background-color: #E2D9FC; }
.completed { background-color: #734CEB; }
.btn-write {
display: none; /* 버튼 숨기기 */
}
.btn-image {
display: block;
position: fixed;
bottom: 20px; /* 아래로 20px 이동 */
right: 20px; /* 오른쪽으로 20px 이동 */
text-align: center;
}
.btn-image img {
width: 50px; /* 이미지 크기 조절 */
height: 50px;
cursor: pointer;
}
.btn-image p {
position: absolute;
bottom: -20px; /* 이미지 바로 아래에 위치 */
right: 0;
left: 0;
margin: 0;
font-size: 12px;
color: #333;
}
</style>
</head>
<body>
<h1>게시판</h1>
<table>
<thead>
<tr>
<th>ID</th>
<th>제목</th>
<th>작성일</th>
<th>상태</th>
</tr>
</thead>
<tbody>
<!-- 10개의 게시물 예시 -->
<tr>
<td>1</td>
<td>게시물 제목 1</td>
<td>2023-01-01</td>
<td><span class="status pending">대기중</span></td>
</tr>
<tr>
<td>2</td>
<td>게시물 제목 2</td>
<td>2023-01-02</td>
<td><span class="status completed">완료</span></td>
</tr>
<tr>
<td>1</td>
<td>게시물 제목 1</td>
<td>2023-01-01</td>
<td><span class="status pending">대기중</span></td>
</tr>
<tr>
<td>2</td>
<td>게시물 제목 2</td>
<td>2023-01-02</td>
<td><span class="status completed">완료</span></td>
</tr> <tr>
<td>1</td>
<td>게시물 제목 1</td>
<td>2023-01-01</td>
<td><span class="status pending">대기중</span></td>
</tr>
<tr>
<td>2</td>
<td>게시물 제목 2</td>
<td>2023-01-02</td>
<td><span class="status completed">완료</span></td>
</tr> <tr>
<td>1</td>
<td>게시물 제목 1</td>
<td>2023-01-01</td>
<td><span class="status pending">대기중</span></td>
</tr>
<tr>
<td>2</td>
<td>게시물 제목 2</td>
<td>2023-01-02</td>
<td><span class="status completed">완료</span></td>
</tr> <tr>
<td>1</td>
<td>게시물 제목 1</td>
<td>2023-01-01</td>
<td><span class="status pending">대기중</span></td>
</tr>
<tr>
<td>2</td>
<td>게시물 제목 2</td>
<td>2023-01-02</td>
<td><span class="status completed">완료</span></td>
</tr>
</tbody>
</table>
<!-- 이미지로 대체된 "글 작성하기" 버튼 -->
<div class="btn-image">
<a href="notibeboardtyping.html">
<img src="images/+.png" alt="글 작성하기">
<p>1</p>
</a>
</div>
</body>
</html>