-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui_view.html
More file actions
157 lines (143 loc) · 4.23 KB
/
Copy pathui_view.html
File metadata and controls
157 lines (143 loc) · 4.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MidTermUi - Tic-Tac-Toe</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.window {
width: 800px;
height: 600px;
background-color: #ffffff;
border: 1px solid #c0c0c0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}
.title-bar {
background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
border-bottom: 1px solid #b0b0b0;
padding: 8px 12px;
font-weight: 600;
color: #333;
display: flex;
align-items: center;
}
.title-bar::before {
content: "●●●";
margin-right: 10px;
color: #888;
font-size: 10px;
letter-spacing: 2px;
}
.content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
}
.game-board {
display: flex;
flex-direction: column;
gap: 0;
}
.row {
display: flex;
gap: 0;
}
.cell {
width: 100px;
height: 100px;
background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
border: 1px solid #999;
display: flex;
justify-content: center;
align-items: center;
font-size: 48px;
font-weight: bold;
color: #333;
cursor: pointer;
user-select: none;
transition: all 0.15s ease;
}
.cell:hover {
background: linear-gradient(to bottom, #e8f4ff, #d0e8ff);
border-color: #0078d7;
}
.cell:active {
background: linear-gradient(to bottom, #c0d8ef, #a8c8ef);
transform: translateY(1px);
}
.info {
margin-top: 30px;
text-align: center;
color: #666;
font-size: 14px;
}
.info h2 {
font-size: 18px;
margin-bottom: 10px;
color: #333;
}
.pattern {
font-family: monospace;
background-color: #f5f5f5;
padding: 10px 20px;
border-radius: 5px;
display: inline-block;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="window">
<div class="title-bar">MidTermUi</div>
<div class="content">
<div class="game-board">
<div class="row">
<button class="cell">O</button>
<button class="cell">X</button>
<button class="cell">X</button>
</div>
<div class="row">
<button class="cell">X</button>
<button class="cell">O</button>
<button class="cell">X</button>
</div>
<div class="row">
<button class="cell">X</button>
<button class="cell">X</button>
<button class="cell">O</button>
</div>
</div>
<div class="info">
<h2>Tic-Tac-Toe Board</h2>
<div class="pattern">|OXX|<br>|XOX|<br>|XXO|</div>
</div>
</div>
</div>
<script>
// Add interactive behavior (optional)
document.querySelectorAll('.cell').forEach(cell => {
cell.addEventListener('click', function() {
console.log('Button clicked:', this.textContent);
});
});
</script>
</body>
</html>