2019-10-27 13:35:33 +01:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
|
|
{% block title %} - Play!{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
<a class="back-from-game" href="{{ path('MineSeekerBundle_homepage') }}">
|
|
|
|
|
<img src="{{ asset('/images/mine-logo-txt.png') }}" alt="Mineseeker Logo">
|
|
|
|
|
</a>
|
|
|
|
|
<div class="mine-container">
|
|
|
|
|
<div id="mine-wrapper"
|
|
|
|
|
data-env="{{ env }}"
|
2026-04-09 22:00:53 +02:00
|
|
|
data-game-id="{{ app.request.get('gameAssoc') }}"
|
2026-04-19 18:04:01 +02:00
|
|
|
data-opponent-name="{{ opponent_name }}"
|
2026-04-09 22:00:53 +02:00
|
|
|
data-mercure-hub-url="{{ mercure_hub_url }}"
|
2026-04-14 21:07:54 +02:00
|
|
|
data-mercure-subscriber-jwt="{{ mercure_subscriber_jwt }}"
|
|
|
|
|
data-recaptcha-site-key="{{ recaptcha_site_key }}">
|
2019-10-27 13:35:33 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block metas %}
|
2026-04-16 10:40:56 +02:00
|
|
|
<meta property="og:url" content="{{ url('MineSeekerBundle_gamePlay') | replace({'http://': 'https://'}) }}"/>
|
2019-10-27 13:35:33 +01:00
|
|
|
<meta property="og:type" content="website"/>
|
|
|
|
|
<meta property="og:title" content="Your friend challenges YOU!"/>
|
|
|
|
|
<meta property="og:description" content="Do you accept the challenge?"/>
|
|
|
|
|
<meta property="og:image"
|
2026-04-16 11:56:10 +02:00
|
|
|
content="https://{{ app.request.host }}{{ asset('/images/mine-1600x627.png') }}"/>
|
2019-10-27 13:35:33 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block stylesheets %}
|
2026-04-10 21:06:22 +02:00
|
|
|
{{ vite_entry_link_tags('mineseekerStyle') }}
|
2026-04-09 22:00:53 +02:00
|
|
|
<style>
|
2019-10-27 13:35:33 +01:00
|
|
|
.mine-container {
|
|
|
|
|
background: url('/images/bg-mineseeker-{{ random(1) }}-outbg.jpg') no-repeat;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block javascripts %}
|
|
|
|
|
{{ parent() }}
|
2026-04-14 21:07:54 +02:00
|
|
|
<script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_site_key }}" async defer></script>
|
2026-04-11 15:50:53 +02:00
|
|
|
{{ vite_entry_script_tags('mineseeker', { dependency: 'react' }) }}
|
2019-10-27 13:35:33 +01:00
|
|
|
{% endblock %}
|