complete.php
79 lines
| 1 | <style> |
| 2 | #wpwrap { |
| 3 | color: var(--sc-color-brand-body); |
| 4 | background: var(--sc-color-brand-main-background); |
| 5 | } |
| 6 | |
| 7 | |
| 8 | .wrap { |
| 9 | display: grid; |
| 10 | height: calc(100vh - 32px); |
| 11 | } |
| 12 | |
| 13 | .sc-container { |
| 14 | margin: auto; |
| 15 | max-width: 500px; |
| 16 | width: 100%; |
| 17 | padding: 2rem; |
| 18 | } |
| 19 | |
| 20 | .sc-section-heading { |
| 21 | margin-bottom: 0.5rem; |
| 22 | display: flex; |
| 23 | align-items: center; |
| 24 | justify-content: space-between; |
| 25 | } |
| 26 | |
| 27 | .sc-section-heading h3 { |
| 28 | margin: 0; |
| 29 | overflow: hidden; |
| 30 | text-overflow: ellipsis; |
| 31 | white-space: nowrap; |
| 32 | font-size: 1.25rem; |
| 33 | line-height: 1.75rem; |
| 34 | font-weight: 600; |
| 35 | color: rgba(17, 24, 39, 1); |
| 36 | display: flex; |
| 37 | align-items: center; |
| 38 | gap: 0.5em; |
| 39 | color: var(--sc-color-brand-heading); |
| 40 | } |
| 41 | </style> |
| 42 | |
| 43 | <div class="wrap"> |
| 44 | <div class="sc-container"> |
| 45 | |
| 46 | <?php if ( ! empty( $status ) && 'missing' === $status ) : ?> |
| 47 | <div class="notice notice-error is-dismissible"> |
| 48 | <p><?php esc_html_e( 'Please enter an API key.', 'surecart' ); ?></p> |
| 49 | </div> |
| 50 | <?php endif; ?> |
| 51 | |
| 52 | |
| 53 | <div class="sc-section-heading"> |
| 54 | <h3> |
| 55 | <sc-icon name="download-cloud"></sc-icon> |
| 56 | <?php esc_html_e( 'Just one last step!', 'surecart' ); ?> |
| 57 | </h3> |
| 58 | </div> |
| 59 | |
| 60 | <form action="" method="post"> |
| 61 | <?php wp_nonce_field( 'update_plugin_settings', 'nonce' ); ?> |
| 62 | |
| 63 | <sc-flex flex-direction="column" style="--spacing: var(--sc-spacing-xxx-large)"> |
| 64 | <sc-flex flex-direction="column"> |
| 65 | <sc-dashboard-module> |
| 66 | <sc-card> |
| 67 | <sc-input size="large" label="<?php echo esc_attr_e( 'Enter your API Token', 'surecart' ); ?>" type="password" name="api_token" placeholder="<?php echo esc_attr_e( 'Api token', 'surecart' ); ?>" autofocus></sc-input> |
| 68 | <sc-button type="primary" size="large" full submit> |
| 69 | <?php esc_html_e( 'Complete Installation', 'surecart' ); ?> |
| 70 | <sc-icon name="arrow-right" slot="suffix"></sc-icon> |
| 71 | </sc-button> |
| 72 | </sc-card> |
| 73 | </sc-dashboard-module> |
| 74 | </sc-flex> |
| 75 | </sc-flex> |
| 76 | </form> |
| 77 | </div> |
| 78 | </div> |
| 79 |