Skip to content

Commit df18616

Browse files
committed
fix: add logo option to onboarding
1 parent c23bdc4 commit df18616

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
lines changed

assets/css/src/welcome-notice.scss

+14-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
position: relative;
66
padding-bottom: 0;
77
border-left: 1px solid #c3c4c7;
8+
padding-left: 0;
9+
10+
@media (--tablet) {
11+
padding-left: 10px;
12+
}
813

914
.notice-content {
1015
display: flex;
@@ -33,22 +38,25 @@
3338
.notice-title {
3439
line-height: 1.5;
3540
max-width: 700px;
41+
font-weight: 600;
42+
}
3643

37-
span {
38-
font-weight: 600;
39-
color: #e57451;
40-
}
44+
.notice-subtitle {
45+
color: #3b5de6;
46+
font-size: 14px;
47+
font-style: normal;
48+
font-weight: 400;
49+
line-height: 20px;
4150
}
4251

4352
.actions {
4453
display: flex;
45-
margin-top: 40px;
54+
margin-top: 20px;
4655
gap: 20px;
4756
align-items: center;
4857

4958

5059
@media (--desktop) {
51-
margin-top: 20px;
5260
gap: 10px;
5361
justify-content: center;
5462
}
@@ -85,7 +93,6 @@
8593
display: block;
8694
max-height: 300px;
8795
max-width: 60%;
88-
padding: 30px 0;
8996

9097
@media (--desktop) {
9198
max-width: 80%;

assets/img/logo.svg

+2
Loading

assets/img/welcome-notice.png

209 KB
Loading

inc/Admin.php

+11-5
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,23 @@ public function render_welcome_notice() {
8989
$notice_html .= '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>';
9090
$notice_html .= '<div class="notice-content">';
9191

92-
$notice_html .= '<img class="otter-preview" src="' . esc_url( Assets_Manager::get_image_url( 'welcome-notice.png' ) ) . '" alt="' . __( 'Otter Blocks preview', 'raft' ) . '"/>';
92+
$notice_html .= '<img class="otter-preview" src="' . esc_url( Assets_Manager::get_image_url( 'welcome-notice.png?1' ) ) . '" alt="' . __( 'Otter Blocks preview', 'raft' ) . '"/>';
9393

9494
$notice_html .= '<div class="notice-copy">';
9595

96+
$notice_html .= '<h1 class="notice-subtitle">';
97+
/* translators: %s: Otter Blocks */
98+
$notice_html .= __( 'Thanks for installing Raft theme 🎉', 'raft' );
99+
100+
$notice_html .= '</h1>';
101+
96102
$notice_html .= '<h1 class="notice-title">';
97103
/* translators: %s: Otter Blocks */
98-
$notice_html .= sprintf( __( 'Power-up your website building experience with %s: Seamless theme setup, advanced blocks and extra functionality for your site.', 'raft' ), '<strong>Otter Blocks</strong>' );
104+
$notice_html .= sprintf( __( 'Please install our builder', 'raft' ), '<strong>Otter Blocks</strong>' );
99105

100106
$notice_html .= '</h1>';
101107

102-
$notice_html .= '<p class="description">' . __( 'Otter is a Gutenberg Blocks page builder plugin that adds new blocks and functionality to your theme, while optimising your page building experience. Now with Otter\'s new theme onboarding wizard, you can experience a streamlined and intuitive setup of your Raft theme in minutes.', 'raft' ) . '</p>';
108+
$notice_html .= '<p class="description">' . __( 'Install Otter and start building stunning, super-fast websites. Discover new blocks, enhanced functionality and seamless theme setup.', 'raft' ) . '</p>';
103109

104110
$notice_html .= '<div class="actions">';
105111

@@ -113,10 +119,10 @@ public function render_welcome_notice() {
113119
$notice_html .= __( 'Try it out!', 'raft' );
114120
} elseif ( 'installed' === $otter_status ) {
115121
/* translators: %s: Otter Blocks */
116-
$notice_html .= sprintf( __( 'Activate %s', 'raft' ), 'Otter Blocks' );
122+
$notice_html .= sprintf( __( 'Activate %s', 'raft' ), 'Otter' );
117123
} else {
118124
/* translators: %s: Otter Blocks */
119-
$notice_html .= sprintf( __( 'Install & Activate %s', 'raft' ), 'Otter Blocks' );
125+
$notice_html .= sprintf( __( 'Install & Activate %s', 'raft' ), 'Otter' );
120126
}
121127

122128
$notice_html .= '</span>';

inc/Core.php

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function setup() {
9090
add_theme_support(
9191
'otter-onboarding',
9292
array(
93+
'logo' => RAFT_URL . 'assets/img/logo.svg',
9394
'templates' => array(
9495
'archive' => array(
9596
'archive-boxed' => array(

0 commit comments

Comments
 (0)