Skip to content

Commit e4ff594

Browse files
authored
Merge pull request #886 from Codeinwp/feat/opml-service/1335
feat: improve plugin first screen
2 parents f7cc90e + ef277d4 commit e4ff594

File tree

2 files changed

+46
-17
lines changed

2 files changed

+46
-17
lines changed

assets/src/dashboard/parts/connect/index.js

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,27 +166,47 @@ const ConnectLayout = () => {
166166

167167
<div className={ connectContainerClasses }>
168168
<div className="optml-connect__content basis-8/12">
169-
<div className="text-gray-700 font-serif text-2 font-bold leading-7 m-0">{ optimoleDashboardApp.strings.account_needed_heading }</div>
169+
<div className="inline-block bg-light-blue text-gray-500 text-sm font-medium px-4 py-1.5 rounded-full mb-4">{ optimoleDashboardApp.strings.account_needed_trust_badge }</div>
170+
171+
<div className="text-gray-700 font-serif text-2xl font-bold leading-7 m-0">{ optimoleDashboardApp.strings.account_needed_heading }</div>
170172
<p
171-
className="text-xl font-normal text-gray-800"
173+
className="text-base font-normal text-gray-500"
174+
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_sub_heading } }
175+
/>
176+
177+
<div className="inline-flex items-center bg-light-blue px-4 py-1.5 rounded-full mb-5 text-sm text-gray-800">
178+
<span className="mr-2">⏱️</span>{ optimoleDashboardApp.strings.account_needed_setup_time }
179+
</div>
180+
181+
<p
182+
className="text-sm text-gray-700 mb-5 leading-normal"
172183
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_title } }
173184
/>
174185

175-
<div className="flex py-3">
186+
187+
<div className="flex py-3 items-center">
176188
<Icon icon="yes-alt" />
177189
<p
178190
className="text-base ml-3 m-0"
179191
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_subtitle_1 } }
180192
/>
181193
</div>
182194

183-
<div className="flex py-3">
195+
<div className="flex py-3 items-center">
184196
<Icon icon="yes-alt" />
185197
<p
186198
className="text-base ml-3 m-0"
187199
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_subtitle_2 } }
188200
/>
189201
</div>
202+
203+
<div className="flex py-3 items-center">
204+
<Icon icon="yes-alt" />
205+
<p
206+
className="text-base ml-3 m-0"
207+
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_subtitle_4 } }
208+
/>
209+
</div>
190210
</div>
191211

192212
<div className="optml-connect__form basis-4/12 p-8 bg-light-blue border border-blue-300 rounded-md">
@@ -233,24 +253,22 @@ const ConnectLayout = () => {
233253

234254
<Button
235255
variant="secondary"
236-
className="optml__button flex w-full justify-center rounded font-bold mt-4 min-h-40"
256+
className="optml__button flex w-full justify-center rounded font-bold mt-4 min-h-40 mb-4"
237257
onClick={ () => setMethod( 'key' ) }
238258
>
239259
{ optimoleDashboardApp.strings.api_exists }
240260
</Button>
241261

262+
<div class="flex items-center justify-center text-gray-600 mb-4">
263+
<span class="mr-1.5">🔒</span>{ optimoleDashboardApp.strings.secure_connection }
264+
</div>
265+
242266
<p
243267
className="mb-0"
244268
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.signup_terms } }
245269
/>
246270
</div>
247271
</div>
248-
249-
<div className="bg-grayish-blue text-gray-800 text-center font-bold uppercase p-2.5 rounded-b-lg">
250-
<p
251-
dangerouslySetInnerHTML={ { __html: optimoleDashboardApp.strings.account_needed_footer } }
252-
/>
253-
</div>
254272
</div>
255273
);
256274
};

inc/admin.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,10 @@ private function get_dashboard_strings() {
14231423
'refresh_stats_cta' => __( 'Refresh Stats', 'optimole-wp' ),
14241424
'updating_stats_cta' => __( 'UPDATING STATS', 'optimole-wp' ),
14251425
'api_key_placeholder' => __( 'API Key', 'optimole-wp' ),
1426-
'account_needed_heading' => __( 'Sign-up for API key', 'optimole-wp' ),
1426+
'account_needed_heading' => __( 'Supercharge Your WordPress Images in 60 Seconds', 'optimole-wp' ),
1427+
'account_needed_sub_heading' => __( 'Stop sacrificing image quality for page speed. Optimole delivers both.', 'optimole-wp' ),
1428+
'account_needed_trust_badge' => __( 'TRUSTED BY 200,000+ HAPPY USERS', 'optimole-wp' ),
1429+
'account_needed_setup_time' => __( 'Setup is instant - just click connect', 'optimole-wp' ),
14271430
'invalid_key' => __( 'Invalid API Key', 'optimole-wp' ),
14281431
'keep_connected' => __( 'Ok, keep me connected', 'optimole-wp' ),
14291432
'cloud_library' => __( 'Cloud Library', 'optimole-wp' ),
@@ -1437,6 +1440,7 @@ private function get_dashboard_strings() {
14371440
'email_address_label' => __( 'Your email address', 'optimole-wp' ),
14381441
'steps_connect_api_title' => __( 'Connect your account', 'optimole-wp' ),
14391442
'register_btn' => __( 'Create & connect your account', 'optimole-wp' ),
1443+
'secure_connection' => __( 'Secure connection - your data is protected', 'optimole-wp' ),
14401444
'step_one_api_title' => __( 'Enter your API key.', 'optimole-wp' ),
14411445
'optml_dashboard' => sprintf(
14421446
/* translators: 1 is the opening anchor tag, 2 is the closing anchor tag */
@@ -1468,17 +1472,15 @@ private function get_dashboard_strings() {
14681472
'premium_support' => __( 'Access our Premium Support', 'optimole-wp' ),
14691473
'account_needed_title' => sprintf(
14701474
/* translators: 1 is the link to optimole.com */
1471-
__( 'In order to get access to free image optimization service you will need an API key from %s.', 'optimole-wp' ),
1475+
__( 'Connect to Optimole\'s powerful image optimization service with a free API key from %s.', 'optimole-wp' ),
14721476
' <a href="' . esc_url( tsdk_translate_link( 'https://dashboard.optimole.com/register', 'query' ) ) . '" target="_blank">optimole.com</a>'
14731477
),
14741478
'account_needed_subtitle_1' => sprintf(
14751479
/* translators: 1 is starting bold tag, 2 is ending bold tag, 3 is the starting bold tag, 4 is the limit number, 5 is ending bold tag, 6 is the starting anchor tag for the docs link on how we count visits, 7 is the ending anchor tag. */
1476-
__( 'You will get access to our %1$simage optimization service for FREE%2$s in the limit of %3$s%4$s%5$s %6$svisitors%7$s per month.', 'optimole-wp' ),
1480+
__( '%1$sOptimize unlimited images%2$s for up to %3$s monthly %4$svisitors%5$s - completely FREE.', 'optimole-wp' ),
14771481
'<strong>',
14781482
'</strong>',
14791483
number_format_i18n( 1000 ),
1480-
'<strong>',
1481-
'</strong>',
14821484
'<a href="https://docs.optimole.com/article/1134-how-optimole-counts-the-number-of-visitors" target="_blank">',
14831485
'</a>'
14841486
),
@@ -1491,7 +1493,16 @@ private function get_dashboard_strings() {
14911493
'account_needed_subtitle_2' => sprintf(
14921494
/* translators: 1 is the starting bold tag, 2 is the ending bold tag */
14931495
__(
1494-
'Bonus, if you dont use a CDN, we got you covered, %1$swe will serve the images using CloudFront CDN%2$s from 450+ locations.',
1496+
'%1$sInstant global delivery%2$s with CloudFront CDN - your images load 2-3x faster worldwide from 450+ locations.',
1497+
'optimole-wp'
1498+
),
1499+
'<strong>',
1500+
'</strong>'
1501+
),
1502+
'account_needed_subtitle_4' => sprintf(
1503+
/* translators: 1 is the starting bold tag, 2 is the ending bold tag */
1504+
__(
1505+
'%1$sAdaptive optimization%2$s that perfectly sizes images for every visitor\'s device and connection speed.',
14951506
'optimole-wp'
14961507
),
14971508
'<strong>',

0 commit comments

Comments
 (0)