show.php
75 lines
| 1 | <style> |
| 2 | #wpwrap { |
| 3 | color: var(--sc-color-brand-body); |
| 4 | background: var(--sc-color-brand-main-background); |
| 5 | } |
| 6 | |
| 7 | .wrap { |
| 8 | display: grid; |
| 9 | height: calc(100vh - 32px); |
| 10 | } |
| 11 | |
| 12 | .sc-container { |
| 13 | margin: auto; |
| 14 | max-width: 500px; |
| 15 | padding: 2rem; |
| 16 | } |
| 17 | |
| 18 | .sc-section-heading { |
| 19 | margin-bottom: 1rem; |
| 20 | display: flex; |
| 21 | align-items: center; |
| 22 | flex-direction: column; |
| 23 | gap: 1em; |
| 24 | justify-content: space-between; |
| 25 | /* border-bottom: 1px solid rgba(229, 231, 235, 1); */ |
| 26 | /* padding-bottom: 1rem; */ |
| 27 | } |
| 28 | .sc-heading { |
| 29 | margin: 0; |
| 30 | margin-bottom: 0.25em; |
| 31 | overflow: hidden; |
| 32 | text-overflow: ellipsis; |
| 33 | white-space: nowrap; |
| 34 | font-size: 1.25rem; |
| 35 | line-height: 1.75rem; |
| 36 | font-weight: 600; |
| 37 | color: rgba(17, 24, 39, 1); |
| 38 | display: flex; |
| 39 | align-items: center; |
| 40 | gap: 0.5em; |
| 41 | color: var(--sc-color-brand-heading); |
| 42 | } |
| 43 | </style> |
| 44 | |
| 45 | <div class="wrap"> |
| 46 | <div class="sc-container"> |
| 47 | <div class="sc-section-heading"> |
| 48 | <div class="sc-section-logo"> |
| 49 | <img style="display: block" src="<?php echo esc_url( trailingslashit( plugin_dir_url( SURECART_PLUGIN_FILE ) ) . 'images/logo.svg' ); ?>" alt="SureCart" width="125"> |
| 50 | </div> |
| 51 | |
| 52 | </div> |
| 53 | <sc-dashboard-module> |
| 54 | <sc-card> |
| 55 | <sc-text style="--font-size: var(--sc-font-size-x-large); --line-height: var(--sc-line-height-normal)"> |
| 56 | <?php esc_html_e( 'Get started by creating your first product or creating a new checkout form.', 'surecart' ); ?> |
| 57 | </sc-text> |
| 58 | <sc-button type="primary" full size="large" href="<?php echo esc_url_raw( $product_url ); ?>"> |
| 59 | <sc-icon name="shopping-bag" slot="prefix"></sc-icon> |
| 60 | <?php esc_html_e( 'Create A Product', 'surecart' ); ?> |
| 61 | </sc-button> |
| 62 | <sc-button type="primary" outline full size="large" href="<?php echo esc_url_raw( $form_url ); ?>"> |
| 63 | <sc-icon name="layers" slot="prefix"></sc-icon> |
| 64 | <?php esc_html_e( 'Create A Form', 'surecart' ); ?> |
| 65 | </sc-button> |
| 66 | </sc-card> |
| 67 | <sc-button full type="text" size="large" href="mailto:hello@surecart.com" target="_blank"> |
| 68 | <sc-icon name="life-buoy" slot="prefix"></sc-icon> |
| 69 | <?php esc_html_e( 'Get Help', 'surecart' ); ?> |
| 70 | <sc-icon name="external-link" slot="suffix"></sc-icon> |
| 71 | </sc-button> |
| 72 | </sc-dashboard-module> |
| 73 | </div> |
| 74 | </div> |
| 75 |