Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landing page video #104

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion omnisend/build/notices.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-element'), 'version' => '852e81e333ddf505a95c');
<?php return array('dependencies' => array('react', 'wp-element'), 'version' => 'a49aaac4addf85e5c7d3');
2 changes: 1 addition & 1 deletion omnisend/build/notices.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion omnisend/build/notices.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions omnisend/class-omnisend-core-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,19 @@ public static function hide_notices(): void {
}

public static function admin_notices(): void {
if ( Options::is_connected() && self::is_omnisend_woocommerce_plugin_active() && ! get_option( OMNISEND_CORE_WOOCOMMERCE_PLUGIN_API_KEY_OPTION ) ) {
echo '<div class="notice notice-error omnisend-notice"><p>Since you have already connected the <strong>Omnisend</strong> plugin, to use <strong>Omnisend for Woocommerce</strong> please contact <a href=mailto:"[email protected]">customer support</a>.</p></div>';
} elseif ( ! Options::is_connected() && ( is_plugin_active( 'woocommerce/woocommerce.php' ) || self::is_omnisend_woocommerce_plugin_active() ) && ! self::is_omnisend_woocommerce_plugin_connected() ) {
echo '<div class="notice notice-error omnisend-notice"><p>If you are using WooCommerce, we strongly recommend starting with the <a href="https://wordpress.org/plugins/omnisend-connect/" target="_blank"><strong>Omnisend for WooCommerce</strong></a> plugin. Install it and follow the instructions.</p></div>';
}

if ( isset( $_SERVER['REQUEST_URI'] ) ) {
$request_uri = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
if ( strpos( $request_uri, '/wp-admin/admin.php?page=omnisend' ) !== false && self::is_hostinger_plugin_active() ) {
self::omnisend_hostinger_discount_notice();

}
}
if ( Options::is_connected() && self::is_omnisend_woocommerce_plugin_active() && ! get_option( OMNISEND_CORE_WOOCOMMERCE_PLUGIN_API_KEY_OPTION ) ) {
echo '<div class="notice notice-error omnisend-notice"><p>Since you have already connected the <strong>Omnisend</strong> plugin, to use <strong>Omnisend for Woocommerce</strong> please contact <a href=mailto:"[email protected]">customer support</a>.</p></div>';
} elseif ( ! Options::is_connected() && ( is_plugin_active( 'woocommerce/woocommerce.php' ) || self::is_omnisend_woocommerce_plugin_active() ) && ! self::is_omnisend_woocommerce_plugin_connected() ) {
echo '<div class="notice notice-error omnisend-notice"><p>If you are using WooCommerce, we strongly recommend starting with the <a href="https://wordpress.org/plugins/omnisend-connect/" target="_blank"><strong>Omnisend for WooCommerce</strong></a> plugin. Install it and follow the instructions.</p></div>';
}
}

public static function load_react(): void {
Expand Down
2 changes: 1 addition & 1 deletion omnisend/src/notices/components/discount-notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const DiscountNotice = () =>
<img src="/wp-content/plugins/omnisend/assets/img/omnisend-notice-discount-icon.svg" />

<div>Get 30% off Omnisend for 6 months with code <span class="omnisend-notice omnisend-custom-notice-strong-text">ONLYHOSTINGER30</span></div>
<a href="https://your.omnisend.com/LXqyZ0" target="_blank" class="omnisend-notice omnisend-custom-notice-discount-button">Get Omnisend discount</a>
<a href="https://app.omnisend.com/registrationv2?utm_source=wordpress_plugin" target="_blank" class="omnisend-notice omnisend-custom-notice-discount-button">Get Omnisend discount</a>
</div>
);
};
Expand Down
3 changes: 1 addition & 2 deletions omnisend/styles/notice-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
align-items: center;
border-color: #673de6;
color: #fff;
padding: 8px 24px;
margin-bottom: 1rem;
padding: 8px 10px;
font-weight: 400;
font-family: Roboto;
font-size: 14px;
Expand Down
75 changes: 72 additions & 3 deletions omnisend/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
border: 2px #fff solid;
border-radius: 8px;
text-align: center;
font-weight: 600;
font-weight: 500;
font-size: 18px;
line-height: 24px;
transition: ease all 0.3s;
Expand All @@ -202,6 +202,38 @@
color: #1e2423;
}

.omnisend-button-primary {
text-decoration: none;

font-family: Roboto;

display: inline-block;
padding: 12px 32px;
background: #2f8481;
border-radius: 8px;
text-align: center;
font-weight: 500;
font-size: 18px;
line-height: 24px;
transition: ease all 0.3s;
margin-bottom: 24px;
color: #fff;
}
.omnisend-button-primary:hover,
.omnisend-button-primary:focus {
background-color: #5da9a5;
color: #fff;
outline: none;
box-shadow: none;
}

.omnisend-button-primary:active {
background-color: #2f8481;
outline: none;
box-shadow: none;
color: #fff;
}

.omnisend-button-green {
text-decoration: none;

Expand All @@ -213,7 +245,7 @@
border: 2px solid #a6f41c;
border-radius: 8px;
text-align: center;
font-weight: 600;
font-weight: 500;
font-size: 18px;
line-height: 24px;
transition: ease all 0.3s;
Expand All @@ -227,13 +259,50 @@
}

.omnisend-landing-page {
margin: 80px 70px;
margin: 80px 70px 80px 50px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.omnisend-landing-header-container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.omnisend-landing-page-video-block {
display: flex;
margin-top: 55px;
margin-left: -20px;
}

.omnisend-landing-page-video-container {
padding: 0 20px;
height: 100%;
}

.omnisend-landing-page-header {
background-color: #c3ebbf;
margin-left: -20px;
padding-top: 80px;
padding-bottom: 175px;
}

.omnisend-landing-page-video {
max-width: 100%;
border-radius: 10px;
height: 100%;
aspect-ratio: 3 / 2;
}

.omnisend-landing-page-video-container {
max-width: 800px;
margin: -240px auto 0;
}

.omnisend-landing-page-content {
display: flex;
flex-direction: column;
Expand Down
Loading
Loading