change dir stucture

This commit is contained in:
Zutatensuppe 2021-05-01 00:16:08 +02:00
parent e18b8d3b98
commit 62f8991e11
26 changed files with 8718 additions and 804 deletions

18
templates/game.html.twig Normal file
View file

@ -0,0 +1,18 @@
<html>
<head>
<link rel="stylesheet" href="/style.css" />
<style type="text/css">
html,
body {
overflow: hidden;
}
</style>
<title>🧩 jigsaw.hyottoko.club</title>
</head>
<body>
<script>window.GAME_ID = '{{GAME_ID}}'</script>
<script>window.WS_ADDRESS = '{{WS_ADDRESS}}'</script>
<script>window.MODE = 'play'</script>
<script src="/game.js" type="module"></script>
</body>
</html>

23
templates/index.html.twig Normal file
View file

@ -0,0 +1,23 @@
<html>
<head>
<link rel="stylesheet" href="/style.css" />
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>
<title>🧩 jigsaw.hyottoko.club</title>
</head>
<body>
<div id="app"></div>
<script type="module">
import Page from "/index.js"
new Vue({
el: '#app',
render: (h) => h(Page, {
props: {
gamesRunning: {{ gamesRunning|json_encode|raw }},
gamesFinished: {{ gamesFinished|json_encode|raw }},
images: {{ images|json_encode|raw }},
},
}),
})
</script>
</body>
</html>

View file

@ -0,0 +1,21 @@
<html>
<head>
<link rel="stylesheet" href="/style.css" />
<style type="text/css">
html,
body {
overflow: hidden;
}
canvas {
cursor: grab;
}
</style>
<title>🧩 jigsaw.hyottoko.club</title>
</head>
<body>
<script>window.GAME_ID = '{{GAME_ID}}'</script>
<script>window.WS_ADDRESS = '{{WS_ADDRESS}}'</script>
<script>window.MODE = 'replay'</script>
<script src="/game.js" type="module"></script>
</body>
</html>