game stuff
This commit is contained in:
parent
07da40dce7
commit
e75cd7406f
20 changed files with 1527 additions and 387 deletions
21
game/templates/index.html.twig
Normal file
21
game/templates/index.html.twig
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/style.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module">
|
||||
import Page from "/index.js"
|
||||
new Vue({
|
||||
el: '#app',
|
||||
render: (h) => h(Page, {
|
||||
props: {
|
||||
games: {{ games|json_encode|raw }},
|
||||
images: {{ images|json_encode|raw }},
|
||||
},
|
||||
}),
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue