Skip to content

Commit 8c8730d

Browse files
committed
Add recommendations announcement
1 parent b515a2e commit 8c8730d

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

  • contentcuration/contentcuration/frontend/channelList/views/Channel/StudioChannelsPage

contentcuration/contentcuration/frontend/channelList/views/Channel/StudioChannelsPage/index.vue

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
<template>
22

33
<div class="channels-page">
4+
<div
5+
class="recommendations-announcement"
6+
:style="{
7+
backgroundColor: $themePalette.blue.v_100,
8+
}"
9+
>
10+
<div
11+
class="recommendations-announcement-icon-wrapper"
12+
:style="{
13+
backgroundColor: $themePalette.blue.v_200,
14+
}"
15+
>
16+
<KIcon
17+
icon="library"
18+
class="recommendations-announcement-icon"
19+
:color="$themePalette.white"
20+
:style="{
21+
backgroundColor: $themePalette.blue.v_400,
22+
}"
23+
/>
24+
</div>
25+
<div>
26+
<h2>
27+
{{ $tr('trySearchRecommendationsHeader') }}
28+
</h2>
29+
<p>
30+
{{ $tr('trySearchRecommendationsText') }}
31+
</p>
32+
</div>
33+
</div>
434
<StudioRaisedBox
535
v-if="invitations.length"
636
class="invitations"
@@ -119,6 +149,9 @@
119149
$trs: {
120150
noChannelsFound: 'No channels found',
121151
invitations: 'You have {count, plural,\n =1 {# invitation}\n other {# invitations}}',
152+
trySearchRecommendationsHeader: "Try our new 'Recommendations' feature!",
153+
trySearchRecommendationsText:
154+
"Based on the title and descriptions of your folders, we'll suggest content from the Kolibri Library. Choose 'Import from channels' in any channel folder to see your recommendations.",
122155
},
123156
};
124157
@@ -129,6 +162,7 @@
129162
130163
.channels-page {
131164
padding-bottom: 24px;
165+
margin: auto;
132166
}
133167
134168
.channels,
@@ -149,4 +183,35 @@
149183
margin-top: 16px;
150184
}
151185
186+
.recommendations-announcement {
187+
display: flex;
188+
gap: 20px;
189+
align-items: flex-start;
190+
max-width: 900px;
191+
padding: 20px;
192+
margin: auto;
193+
border-radius: 4px;
194+
195+
.recommendations-announcement-icon-wrapper {
196+
display: flex;
197+
flex-shrink: 0;
198+
align-items: center;
199+
justify-content: center;
200+
width: 96px;
201+
height: 96px;
202+
border-radius: 2px;
203+
204+
.recommendations-announcement-icon {
205+
width: 40px;
206+
height: 40px;
207+
padding: 6px;
208+
border-radius: 50%;
209+
}
210+
}
211+
212+
h2 {
213+
font-size: 18px;
214+
}
215+
}
216+
152217
</style>

0 commit comments

Comments
 (0)