templates/base.html.twig line 1
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Tiny Knight Games{% endblock %}</title>
{% block stylesheets %}
{# {{ encore_entry_link_tags('main') }}#}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{# {{ encore_entry_script_tags('main') }}#}
{{ encore_entry_script_tags('app') }}
{# {{ encore_entry_script_tags('theta-wallet-connect') }}#}
<script type="application/javascript" src="//unpkg.com/@thetalabs/theta-wallet-connect@0.0.16/dist/theta-wallet-connect.umd.js"></script>
<script>var GlobalUnityInstance = null;</script>
{% endblock %}
</head>
<body data-turbo="false">
<div class="top-bar-container" style="z-index: 999;" data-sticky-container>
<div class="sticky" data-sticky data-options="anchor: page; marginTop: 0; stickyOn: small;">
<div class="grid-container fluid full-width" style="padding: 0;">
<div class="grid-x" style="margin: 0 auto;">
<div class="small-12 cell">
<div id="top-bar-main-color" class="top-bar">
<div class="top-bar-left">
<ul class="dropdown menu" data-dropdown-menu>
{# <li class="menu-text"><span style="letter-spacing: .05em;">TINY KNIGHT GAMES</span></li>#}
<li><img height="40" width="40" src="{{ asset('/build/images/web/tkg_knight_only.png') }}" /></li>
<li id="menu-home" class="menu-link"><a href="{{ path('default', { domain: app_domain }) }}">Home</a></li>
<li id="menu-game" class="is-dropdown-submenu-parent">
<a href="#">Games</a>
<ul class="menu vertical submenu is-dropdown-submenu" style="background: #222b38; width: 250px;">
<li class="menu-link"><a href="{{ url('fishers_quest_default', { subdomain: 'fishersquest', domain: app_domain }) }}"><span style="padding: 0 0 0 7px; vertical-align: middle;">Fisher's Quest</span></a></li>
{# <li class="menu-link"><a href="{{ url('occult_of_the_oculi_default', { subdomain: 'occultoftheoculi', domain: app_domain }) }}"><span style="padding: 0 0 0 7px; vertical-align: middle;">Occult of the Oculi</span></a></li>#}
</ul>
</li>
<li id="menu-explorer" class="menu-link"><a href="{{ path('explorer', { domain: app_domain }) }}">Explorer</a></li>
<li id="menu-marketplace" class="menu-link"><a href="{{ path('marketplace', { state: 1, domain: app_domain }) }}">Marketplace</a></li>
<li id="menu-leaderboard" class="is-dropdown-submenu-parent">
<a href="#">Leaderboards</a>
<ul class="menu vertical submenu is-dropdown-submenu" style="background: #222b38;">
<li class="menu-link"><a href="{{ url('leaderboard_catchable_season_four', { domain: app_domain }) }}"><span style="padding: 0 0 0 7px; vertical-align: middle;">Fisher's Quest</span></a></li>
{# <li class="menu-link"><a href="#"><span style="padding: 0 0 0 7px; vertical-align: middle;">Mystical Maze</span></a></li>#}
</ul>
</li>
<li id="menu-support" class="menu-link"><a href="{{ path('support', { domain: app_domain }) }}">Support</a></li>
{% if app.user is not null and 'ROLE_ADMIN' in app.user.getroles() %}
<li id="menu-admin" class="menu-link"><a href="{{ path('app_admin_dashboard', { domain: app_domain }) }}"><strong><span style="color: goldenrod;">ADMIN</span></strong></a></li>
{% endif %}
</ul>
</div>
<div class="top-bar-right">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<ul id="user-info" class="dropdown menu" data-dropdown-menu>
<li class="is-dropdown-submenu-parent" style="cursor: pointer; margin-right: 8px;">
<img id="notification-bell" height="40" width="40" src="{{ asset('build/images/web/notification.svg') }}" />
<ul id="notifications" class="menu vertical submenu is-dropdown-submenu" style="width: 500px; background: #222b38; font-size: .9em;">
<li id="no-unread" style="padding: 5px; font-size: .9em;">You have no unread notifications.</li>
<li id="clear-notifications" style="padding: 5px; display: none; text-align: right; font-size: .9em;"><a href="#">Mark all as read</a></li>
</ul>
</li>
<li class="is-dropdown-submenu-parent" style="cursor: pointer; margin-right: 8px;">
<img height="40" width="40" style="border-radius: 20px; border: 3px solid #fff; display: inline-block;" src="{{ asset('build/images/web/icon-profile-otter.png') }}" />
{# <div style="height: 40px; width: 40px; background: blue; border: 3px solid #fff; border-radius: 25px; display: inline-block;"></div>#}
{# Hello,#}
{# {% if app.user.email != app.user.username %}#}
{# {{ app.user.username }}!#}
{# {% else %}#}
{# {{ app.user.email }}#}
{# {% endif %}#}
<ul class="menu vertical submenu is-dropdown-submenu" style="background: #222b38;">
<li class="menu-link"><a href="{{ url('user_profile', { userId: app.user.id, domain: app_domain }) }}"><img height="20" width="20" src="{{ asset('build/images/web/icon-profile.svg') }}" /> <span style="padding: 0 0 0 7px; vertical-align: middle;">My Profile</span></a></li>
<li class="menu-link"><a href="{{ url('user_records', { domain: app_domain }) }}"><img height="20" width="20" src="{{ asset('build/images/web/icon-records.svg') }}" /> <span style="padding: 0 0 0 7px; vertical-align: middle;">My Records</span></a></li>
<li class="menu-link"><a href="{{ url('user_profile_settings', { domain: app_domain }) }}"><img height="20" width="20" src="{{ asset('build/images/web/settings.svg') }}" /> <span style="padding: 0 0 0 7px; vertical-align: middle;">Settings</span></a></li>
<li class="menu-link"><a href="{{ url('app_logout') }}"><img height="20" width="20" src="{{ asset('build/images/web/icon-logout.svg') }}" /> <span style="padding: 0 0 0 7px; vertical-align: middle;">Logout</span></a></li>
</ul>
</li>
<li id="market-contract-balance" class="is-dropdown-submenu-parent" style="cursor: pointer; margin-right: 8px; {% if not app.user.activeWallet %}display: none;{% endif %}">
<div class="contract-tfuel" style="margin-top: 5px;">
<span style="font-size: .8em; padding: 0 5px 0 3px; display: inline-block; vertical-align: top; font-weight: bold">Market</span>
<img height="20" width="20" src="{{ asset('build/images/web/tfuel-logo.svg') }}" style="vertical-align: top;" />
<span class="contract-tfuel-balance">-</span>
</div>
<ul class="menu vertical submenu is-dropdown-submenu" style="background: #222b38; width: 250px;">
<li class="menu-link"><a id="withdraw-balance" class="ext-{{ app.user.walletExtension == 1 ? 1 : 2 }}" href="#">Withdraw Balance</a></li>
</ul>
</li>
{# <li {% if not app.user.activeWallet %}style="display: none;"{% endif %} class="wallet-address is-dropdown-submenu-parent">#}
<li id="user-wallet-info" {% if not app.user.activeWallet %}style="display: none;"{% endif %}>
{# <div class="wallet-sdlr">#}
{# <img height="20" width="20" src="{{ asset('build/images/web/sdlr-logo-new.svg') }}" style="vertical-align: top;" />#}
{# <span class="wallet-sdlr-balance">-</span>#}
{# </div>#}
<div class="wallet-tfuel" style="margin-top: 5px;">
{% if app.user.activeWallet.address is defined %}
<span style="font-size: .8em; padding: 0 5px 0 3px; display: inline-block; vertical-align: top; font-weight: bold; color: #fff;">
<a id="user-wallet-address" href="https://explorer.thetatoken.org/account/{{ app.user.activeWallet.address }}" style="display: inline-block; padding: 0; color: #fff;" target="_blank">{{ app.user.activeWallet.address|slice(0,6) }}...{{ app.user.activeWallet.address|slice(38,42) }}</a>
</span>
{% endif %}
<img height="20" width="20" src="{{ asset('build/images/web/tfuel-logo.svg') }}" style="vertical-align: top;" />
<span class="wallet-tfuel-balance">-</span>
</div>
{# <div class="wallet">#}
{# <span class="wallet-address">#}
{# {% if app.user.activeWallet.address is defined %}#}
{# <a id="user-wallet-address" href="https://explorer.thetatoken.org/account/{{ app.user.activeWallet.address }}" style="display: inline-block; padding: 0; color: #333;" target="_blank">{{ app.user.activeWallet.address|slice(0,6) }}...{{ app.user.activeWallet.address|slice(38,42) }}</a>#}
{# {% endif %}#}
{# </span>#}
{# </div>#}
{# <img height="25" width="25" src="{{ asset('build/images/web/icon-thetawallet-01.svg') }}" style="vertical-align: middle;"/>#}
{# <ul class="menu vertical">#}
{# <li><a data-open="connect-wallet-modal">Connect New Wallet</a></li>#}
{# </ul>#}
</li>
{# <li><img height="25" width="25" src="{{ asset('build/images/web/icon-thetawallet-01.svg') }}" /></li>#}
{# <li><img height="25" width="25" src="{{ asset('build/images/web/metamask-fox.svg') }}" /></li>#}
<li id="connect-wallet"{% if app.user.activeWallet %} style="display: none;" {% endif %}><button class="button" data-open="connect-wallet-modal">Connect Theta Wallet</button></li>
<li><div id="metamask-info"></div></li>
{# <li><a href="/support#howtopurchasenft" class="button" style="color: #fff;">Get Sand Dollars</a></li>#}
{# <li><button class="button" id="buy-sdlr">Buy Sand Dollars</button></li>#}
{# <li><button class="button" id="nft-equipment-create">NFT Equipment Create</button></li>#}
</ul>
{% else %}
<a class="button" style="font-size: 1em; color: #fff; font-weight: bold; margin: 0;" href="{{ path('app_register') }}">Register</a>
<a class="button" style="font-size: 1em; color: #fff; font-weight: bold; margin: 0 10px 0 0;" href="{{ url('app_login') }}">Login</a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="loading" style="display: none;">
<div id="loading-info">
<img style="width: 200px; height: 200px;" src="{{ asset('build/images/web/icon-thetawallet-01.svg') }}" />
<p style="color: #fff; font-size: 2em; font-weight: bold;">Theta Network transaction pending...</p>
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
</div>
</div>
{% block body %}{% endblock %}
<div class="reveal" id="connect-wallet-modal" style="background: #333; border: none; border-radius: 5px; padding: 50px;" data-reveal>
<h1 style="text-align: center;">Connect a Wallet</h1>
<div class="connect-prompt" style="text-align: center;">
<p>Please choose an option below to connect a wallet.</p>
<button class="button" id="connect-thetawallet" style="background: #29cad2; border-radius: 15px; width: 300px; margin: 8px auto; border: 2px solid #f2f2f2; font-weight: bold; font-size: 1.1em; vertical-align: middle;">
<img height="30" width="30" style="background: #ffffff; border-radius: 15px; border: 5px solid #fff;" src="{{ asset('build/images/web/icon-thetawallet-01.svg') }}" />
Theta Wallet Extension
</button>
<button class="button" id="connect-metamask" style="background: #f18800; border-radius: 15px;width: 300px; margin: 8px auto; border: 2px solid #f2f2f2; font-weight: bold; font-size: 1.1em; vertical-align: middle;">
<img height="30" width="30" style="background: #ffffff; border-radius: 15px; border: 5px solid #fff;" src="{{ asset('build/images/web/metamask-fox.svg') }}" />
MetaMask Extension
</button>
</div>
<div class="connect-success-container" style="display: none; text-align: center;">
<h2 style="text-align: center;">Success!</h2>
<span class="connect-success"></span>
</div>
<button id="connect-wallet-modal-close" class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="grid-container full">
<div class="grid-x">
<div class="small-12 cell" style="background-color: #17171f; min-height:400px;">
<div class="grid-x grid-padding-x" style="padding-top: 50px;">
<div class="small-12 medium-3 medium-offset-2 cell">
<p style="padding: 20px 20px 10px 20px;">Tiny Knight Games is powered by</p>
<p><img style="height: 50px;" src="{{ asset('/build/images/web/unity.png') }}" /> <a target="_blank" href="https://www.thetatoken.org/"><img style="width: 50px; height: 50px;" src="{{ asset('/build/images/web/theta.png') }}" /></a> <a target="_blank" href="https://www.thetatoken.org/"><img style="width: 50px; height: 50px;" src="{{ asset('/build/images/web/tfuel.png') }}" /></a></p>
</div>
<div class="small-12 medium-2 cell" style="padding: 20px 0 0 0; border-left: 1px solid #444;">
<ul style="list-style-type: none; margin-top: 0; padding-top: 0; font-size: .9em;">
<li>In the News
<ul style="list-style-type: none;"><li><a style="font-size: .9em;" href="{{ path('patch_notes', { domain: app_domain }) }}">Patch Notes</a></li></ul>
</li>
<li style="padding-top: 10px;">Support
<ul style="list-style-type: none;">
<li><a style="font-size: .9em;" href="{{ path('support', { domain: app_domain }) }}">Support</a></li>
<li><a style="font-size: .9em;" href="{{ path('privacy', { domain: app_domain }) }}">Privacy Notice</a></li>
</ul>
</li>
<li style="padding-top: 10px;">Contact
<ul style="list-style-type: none;"><li><a style="font-size: .9em;" href="https://discord.gg/HeSe9rPxjc">Discord</a></li></ul>
</li>
</ul>
</div>
<div class="small-12 medium-3 end cell">
<p style="padding: 0px 20px 0 20px;"><img style="width: 50px; height: 50px;" src="{{ asset('/build/images/web/discord.png') }}" /> <a class="button" style="background: #6a89d6; color: #fff; border-radius: 5px; margin-top: 15px;" target="_blank" href="https://discord.gg/HeSe9rPxjc">Join us on Discord!</a></p>
</div>
</div>
</div>
</div>
</div>
<script type="application/javascript">
document.addEventListener("DOMContentLoaded", async function() {
await window.ThetaWalletConnect.connect();
});
</script>
</body>
</html>