Private
Public Access
1
0
Files
MineSeeker/templates/Game/play.html.twig
Lang 5a8799bb7f
All checks were successful
Deploy to Production / deploy (push) Successful in 2m26s
fix: usr: the meta tags does not have https scheme - nothing worked in configuration #4
2026-04-16 10:40:56 +02:00

43 lines
1.6 KiB
Twig

{% 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 }}"
data-game-id="{{ app.request.get('gameAssoc') }}"
data-mercure-hub-url="{{ mercure_hub_url }}"
data-mercure-subscriber-jwt="{{ mercure_subscriber_jwt }}"
data-recaptcha-site-key="{{ recaptcha_site_key }}">
</div>
</div>
{% endblock %}
{% block metas %}
<meta property="og:url" content="{{ url('MineSeekerBundle_gamePlay') | replace({'http://': 'https://'}) }}"/>
<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"
content="{{ app.request.getSchemeAndHttpHost() }}{{ asset('/images/mine-1600x627.png') }}"/>
{% endblock %}
{% block stylesheets %}
{{ vite_entry_link_tags('mineseekerStyle') }}
<style>
.mine-container {
background: url('/images/bg-mineseeker-{{ random(1) }}-outbg.jpg') no-repeat;
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_site_key }}" async defer></script>
{{ vite_entry_script_tags('mineseeker', { dependency: 'react' }) }}
{% endblock %}