| @@ -1,24 +1,46 @@ | ||
| 1 | -<?php if (!defined('ABSPATH') && !defined('BITFORMS_ASSET_URI')) { exit; } ?> | |
| 1 | +<?php if (!defined('ABSPATH') && !defined('BITFORMS_ASSET_URI')) { | |
| 2 | + exit; | |
| 3 | +} | |
| 2 | 4 | |
| 5 | +$logoUrl = BITFORMS_ASSET_URI . '/logo.svg'; | |
| 6 | + | |
| 7 | +?> | |
| 8 | + | |
| 3 | 9 | <noscript>You need to enable JavaScript to run this app.</noscript> |
| 10 | +<style> | |
| 11 | +.__root-wrp { | |
| 12 | + display: grid; | |
| 13 | + place-content: center; | |
| 14 | + height: 90vh; | |
| 15 | + text-align: center; | |
| 16 | + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| 17 | +} | |
| 18 | + | |
| 19 | +.__root-logo { | |
| 20 | + margin-inline: auto; | |
| 21 | +} | |
| 22 | + | |
| 23 | +.__root-title { | |
| 24 | + color: white; | |
| 25 | +} | |
| 26 | + | |
| 27 | +.__root-subtitle { | |
| 28 | + color: gray; | |
| 29 | +} | |
| 30 | +</style> | |
| 31 | + | |
| 4 | 32 | <div id="btcd-app"> |
| 5 | - <div | |
| 6 | - style="display: flex;flex-direction: column;justify-content: center;align-items: center;height: 90vh;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;"> | |
| 7 | - <img alt="bitform-logo" class="bit-logo" width="70" src="<?php echo BITFORMS_ASSET_URI; ?>/img/logo.svg"> | |
| 8 | - <h1>Welcome to Bit Form.</h1> | |
| 9 | - <p>Modern Form builder and database management system for Wordpress</p> | |
| 33 | + <div class="__root-wrp"> | |
| 34 | + <img alt="bitform-logo" class="__root-logo" width="40" src="<?php echo esc_url($logoUrl) ?>"> | |
| 35 | + <h1 class="__root-title">Welcome to Bit Form.</h1> | |
| 36 | + <p class="__root-subtitle">Modern form solution in Wordpress</p> | |
| 10 | 37 | </div> |
| 11 | 38 | </div> |
| 12 | -<script defer type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.8/xlsx.full.min.js"></script> | |
| 13 | - | |
| 14 | -<?php if(defined('BIT_DEV') && BIT_DEV){ ?> | |
| 15 | -<script type="module"> | |
| 16 | - import RefreshRuntime from "<?php echo BIT_DEV; ?>/@react-refresh" | |
| 17 | - RefreshRuntime.injectIntoGlobalHook(window) | |
| 18 | - window.$RefreshReg$ = () => { } | |
| 19 | - window.$RefreshSig$ = () => (type) => type | |
| 20 | - window.__vite_plugin_react_preamble_installed__ = true | |
| 39 | +<script> | |
| 40 | +const { | |
| 41 | + backgroundColor | |
| 42 | +} = window.getComputedStyle(document.querySelector('#wpadminbar')) | |
| 43 | +document.querySelector('#wpbody').style.backgroundColor = backgroundColor | |
| 44 | +document.querySelector('#wpcontent').style.paddingLeft = 0 | |
| 21 | 45 | </script> |
| 22 | -<script type="module" src="<?php echo BIT_DEV; ?>/@vite/client"></script> | |
| 23 | -<script type="module" src="<?php echo BIT_DEV; ?>/index.jsx"></script> | |
| 24 | -<?php } ?> | |
| 46 | +<script defer type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.8/xlsx.full.min.js"></script> | |