Skip to content

Commit 758e7b5

Browse files
committed
Added Coming Soon pages ⌛
1 parent b1893d8 commit 758e7b5

File tree

7 files changed

+102
-6
lines changed

7 files changed

+102
-6
lines changed

assets/admin/css/admin-styles.css

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ button {
127127

128128
.switch-label,
129129
.switch-handle {
130-
transition: all 0.5s cubic-bezier(0.85, -0.28, 0, 1.38);
130+
transition: all 0.5s cubic-bezier(0.79, -0.54, 0, 1.51);
131131
}
132132

133133
.switch-handle {
@@ -597,4 +597,42 @@ button {
597597

598598
.updated-widgets {
599599
margin-top: 3px;
600+
}
601+
602+
.text-muted {
603+
color: #78909C;
604+
}
605+
606+
/* Extension (Coming Soon) */
607+
608+
.coming-soon .mt-illustration {
609+
width: 600px;
610+
height: 600px;
611+
display: flex;
612+
}
613+
614+
.coming-soon .ma-col-full {
615+
height: 500px;
616+
display: flex;
617+
align-items: center;
618+
justify-content: space-evenly;
619+
}
620+
621+
.coming-soon .under-construction {
622+
width: 100%
623+
}
624+
625+
.coming-soon .cs-cta {
626+
margin-top: 26px;
627+
text-transform: capitalize;
628+
}
629+
630+
.coming-soon .cs-cta:hover {
631+
background: #6000ff;
632+
color: white;
633+
}
634+
635+
.coming-soon .cs-cta:focus {
636+
background: #5A00F0;
637+
color: #fff;
600638
}

assets/admin/images/undraw_on_the_way.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/admin/images/undraw_under_construction.svg

Lines changed: 1 addition & 0 deletions
Loading

classes/panel.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ public static function add_menu() {
146146
'mighty-addons-extensions',
147147
[ __CLASS__, 'generate_extensions_page' ]
148148
);
149+
150+
add_submenu_page(
151+
'mighty-addons-home',
152+
__( 'Mighty Pro', 'mighty-addons' ),
153+
__( 'Go Pro 🔥', 'mighty-addons' ),
154+
'manage_options',
155+
'mighty-addons-pro',
156+
[ __CLASS__, 'generate_pro_page' ]
157+
);
149158
}
150159

151160
public static function enqueue_scripts( $hook ) {
@@ -255,6 +264,10 @@ public static function generate_extensions_page() {
255264
self::load_html( 'extension-settings' );
256265
}
257266

267+
public static function generate_pro_page() {
268+
self::load_html( 'go-pro' );
269+
}
270+
258271
public static function mighty_addons_status() {
259272

260273
check_ajax_referer( 'mighty-addons', 'security' );

panel/extension-settings.php

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
<?php
22
/**
3-
* Mighty Extension Command Template
3+
* Mighty Extensions
44
*/
55

66
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
7+
$page = 'extensions';
78
?>
8-
<div class="ma-extension-panel">
9-
<h1 class="mighty-heading">Mighty Extensions Panel</h1>
10-
</div>
9+
10+
<?php include_once('includes/header.php'); ?>
11+
12+
<div id="extensions" class="ma-tabs-content coming-soon">
13+
<div class="ma-row">
14+
<div class="ma-col-full">
15+
<div class="text-center">
16+
<h1>Coming Soon_</h1>
17+
<p>: :&nbsp;&nbsp;&nbsp;&nbsp;: :&nbsp;&nbsp;&nbsp;&nbsp;: :</p>
18+
<div class="text-muted">Something cool is coming. Stay tuned.</div>
19+
</div>
20+
<div class="mt-illustration">
21+
<img class="under-construction" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/undraw_under_construction.svg' ?>" alt="">
22+
</div>
23+
</div>
24+
</div>
25+
</div>
26+
<?php include_once('includes/footer.php'); ?>

panel/go-pro.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
* Mighty Extensions
4+
*/
5+
6+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
7+
$page = 'go-pro';
8+
?>
9+
10+
<?php include_once('includes/header.php'); ?>
11+
12+
<div id="go-pro" class="ma-tabs-content coming-soon">
13+
<div class="ma-row">
14+
<div class="ma-col-full">
15+
<div class="mt-illustration">
16+
<img class="under-construction" src="<?php echo MIGHTY_ADDONS_PLG_URL . 'assets/admin/images/undraw_on_the_way.svg' ?>" alt="">
17+
</div>
18+
<div class="text-center">
19+
<h1>On the way ..</h1>
20+
<p>: :&nbsp;&nbsp;&nbsp;&nbsp;: :&nbsp;&nbsp;&nbsp;&nbsp;: :</p>
21+
<div class="text-muted">Mighty Addons is coming up with a pro version very soon.<br> Sign Up for an exclusive launch offer. </div>
22+
<a href="https://mailchi.mp/58871d7350d3/mightyaddonspro" target="_BLANK" class="button ma-btn cs-cta"><?php echo __('Get Aboard', 'mighty-addons'); ?></a>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
<?php include_once('includes/footer.php'); ?>

panel/includes/tabs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<li <?php echo $page == "home" ? 'class="active"' : ''; ?>><a href="admin.php?page=mighty-addons-home"><span>General</span></a></li>
33
<li <?php echo $page == "widgets" ? 'class="active"' : ''; ?>><a href="admin.php?page=mighty-addons-widgets"><span>Widgets</span></a></li>
44
<li <?php echo $page == "extensions" ? 'class="active"' : ''; ?>><a href="admin.php?page=mighty-addons-extensions"><span>Extensions</span></a></li>
5-
<li><a href="#GoPro"><span>Go Pro</span></a></li>
5+
<li <?php echo $page == "go-pro" ? 'class="active"' : ''; ?>><a href="admin.php?page=mighty-addons-pro"><span>Go Pro 🔥</span></a></li>
66
</ul>

0 commit comments

Comments
 (0)