-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
109 lines (95 loc) · 3.3 KB
/
Copy pathindex.php
File metadata and controls
109 lines (95 loc) · 3.3 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
<?php
// index.php – główny kontener aplikacji (nowy layout + tło)
?>
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Algo – Inteligentna Szachownica</title>
<!-- Style globalny i styl planszy -->
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./chessboard/chessboard.css" />
<script>
// Adres Twojego backendu Symfony (Docker/localhost)
window.CHESS_BACKEND_URL = 'http://127.0.0.1:8000';
</script>
</head>
<body>
<!-- TŁO: particles (pełny ekran, pod całym layoutem) -->
<canvas id="bgParticles" aria-hidden="true"></canvas>
<div id="app">
<main class="layout">
<!-- LEWA KOLUMNA: SZACHOWNICA -->
<section id="board-col">
<?php include __DIR__ . '/chessboard/chessboard.php'; ?>
</section>
<!-- PRAWA KOLUMNA: PANEL GRY -->
<aside id="panel-col">
<!-- RUCH TERAZ -->
<div class="panel-card" id="turn-card">
<h3>Ruch teraz</h3>
<div id="turn-indicator" class="turn-indicator white">
<span class="dot"></span><span class="label">Białe</span>
</div>
</div>
<!-- ZBITE FIGURY -->
<div class="panel-card">
<h3>Zbite figury przeciwnika</h3>
<div id="captured-opponent" class="captured-grid"></div>
</div>
<div class="panel-card">
<h3>Twoje zbite figury</h3>
<div id="captured-player" class="captured-grid"></div>
</div>
<!-- LOGI RUCHÓW -->
<div class="panel-card" id="logs-card">
<h3>Logi ruchów</h3>
<div class="logs-wrap">
<table class="moves-table">
<thead>
<tr>
<th>#</th>
<th>Białe</th>
<th>Czarne</th>
</tr>
</thead>
<tbody id="moves-tbody"></tbody>
</table>
</div>
</div>
<!-- STATUS + AKCJE -->
<div class="panel-row">
<div class="panel-card status-card">
<h3>Status</h3>
<div class="status-badges">
<span id="status-raspi" class="badge badge-muted">RPi: —</span>
<span id="status-engine" class="badge badge-muted">Silnik: —</span>
</div>
</div>
<div class="panel-card actions-card">
<h3>Akcje</h3>
<button class="btn-reset" data-action="reset-game">Resetuj grę</button>
</div>
</div>
</aside>
</main>
</div>
<!-- MODAL: KONIEC GRY -->
<div id="gameOverOverlay" class="go-overlay" aria-hidden="true">
<div class="go-modal" role="dialog" aria-modal="true">
<h3 id="goTitle">Koniec gry</h3>
<p id="goSubtitle">Biali wygrali (szach mat)</p>
<div class="go-actions">
<button id="goResume" class="go-btn go-btn-ghost">Wróć do partii</button>
<button class="go-btn go-btn-primary" data-action="reset-game">Zacznij od nowa</button>
</div>
</div>
<canvas id="goConfetti"></canvas>
</div>
<!-- Skrypty -->
<script src="./chessboard/chessboard.js"></script>
<script src="./promotion.js"></script>
<script src="./validation/backend-integration.js"></script>
</body>
</html>