| @@ -1,15 +1,46 @@ | ||
| 1 | -<?php | |
| 2 | -if (!defined('ABSPATH') && !defined('BITFORMS_ASSET_URI')) { | |
| 1 | +<?php if (!defined('ABSPATH') && !defined('BITFORMS_ASSET_URI')) { | |
| 3 | 2 | exit; |
| 4 | 3 | } |
| 4 | + | |
| 5 | +$logoUrl = BITFORMS_ASSET_URI . '/logo.svg'; | |
| 6 | + | |
| 5 | 7 | ?> |
| 8 | + | |
| 6 | 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 | + | |
| 7 | 32 | <div id="btcd-app"> |
| 8 | - <div | |
| 9 | - style="display: flex;flex-direction: column;justify-content: center;align-items: center;height: 90vh;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;"> | |
| 10 | - <img alt="bitform-logo" class="bit-logo" width="70" src="<?php echo BITFORMS_ASSET_URI; ?>/img/logo.svg"> | |
| 11 | - <h1>Welcome to Bit Form.</h1> | |
| 12 | - <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> | |
| 13 | 37 | </div> |
| 14 | 38 | </div> |
| 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 | |
| 45 | +</script> | |
| 15 | 46 | <script defer type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.8/xlsx.full.min.js"></script> |