Skip to content

Commit

Permalink
feat: new updates modal content
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Sep 22, 2023
1 parent 3c4425c commit afb5223
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 28 deletions.
10 changes: 10 additions & 0 deletions src/components/flow/Flow.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,18 @@

.news_list {
display: flex;
gap: $unnnic-spacing-xs;
flex-direction: column;
align-items: center;
text-align: center;
color: $unnnic-color-neutral-cloudy;
font-family: $unnnic-font-family-secondary;
font-size: $unnnic-font-size-body-lg;
font-weight: $unnnic-font-weight-regular;
line-height: $unnnic-line-height-md + $unnnic-font-size-body-lg;
}

.footer {
color: $unnnic-color-neutral-black;
font-family: $unnnic-font-family-secondary;
font-size: $unnnic-font-size-body-lg;
Expand Down
39 changes: 25 additions & 14 deletions src/components/flow/Flow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ import { PopTabType } from 'config/interfaces';
import styles from './Flow.module.scss';
import { applyVueInReact } from 'vuereact-combined';
// @ts-ignore
import { unnnicModalNext, unnnicButton } from '@weni/unnnic-system';
import { unnnicModalNext, unnnicButtonNext } from '@weni/unnnic-system';
import { WeniLoveIcon } from './WeniLoveIcon';
import i18n from '../../config/i18n';

const UnnnicButton = applyVueInReact(unnnicButton, {
const UnnnicButton = applyVueInReact(unnnicButtonNext, {
vue: {
componentWrap: 'div',
slotWrap: 'div',
Expand Down Expand Up @@ -429,44 +429,55 @@ export class Flow extends React.PureComponent<FlowStoreProps, {}> {
<UnnnicModalNext className={styles.new_updates}>
<div className={styles.content}>
<WeniLoveIcon />
<span className={styles.title}>
{i18n.t('new_updates.title', 'Flow Editor has a new look!')}
</span>
<span className={styles.description}>
<span className={styles.title}>{i18n.t('new_updates.title', 'News in the area!')}</span>
{/* <span className={styles.description}>
{i18n.t('new_updates.description', 'Whats new?')}
</span>
</span> */}

<div className={styles.news_list}>
<span>•&nbsp; {i18n.t('new_updates.news.first', 'A beautiful new interface')}</span>
<span>•&nbsp; {i18n.t('new_updates.news.first', 'The editor is faster')}</span>
<span>
•&nbsp; {i18n.t('new_updates.news.second', 'Nodes copy and paste functionality')}
•&nbsp;{' '}
{i18n.t(
'new_updates.news.second',
'Two new cards for processing responses in a 100% intelligent way'
)}
</span>
<span>•&nbsp; {i18n.t('new_updates.news.third', 'Sidebar with tools (evolving)')}</span>
<span>
•&nbsp;{' '}
{i18n.t('new_updates.news.fourth', 'Possibility to create a new block anywhere')}
{i18n.t('new_updates.news.third', 'Copy and paste any type of card without worrying')}
</span>
<span>
•&nbsp;{' '}
{i18n.t('new_updates.news.fourth', 'Bugs fixed in the selection component on cards')}
</span>
<span>•&nbsp; {i18n.t('new_updates.news.fifth', 'WhatsApp simulator skin')}</span>
</div>

<div className={styles.footer}>
<span>
{i18n.t('new_updates.footer', 'Feel free to send feedback on your experience')}
</span>
</div>
</div>

<div className={styles.buttons}>
<UnnnicButton
type="ghost"
text={i18n.t('new_updates.buttons.first', 'Ignore')}
text={i18n.t('new_updates.buttons.first', 'Close')}
onClick={() => {
ReactDOM.unmountComponentAtNode(newUpdatesModalEl);
}}
/>
<UnnnicButton
{/* <UnnnicButton
className={styles.primary}
type="primary"
text={i18n.t('new_updates.buttons.second', 'Show me everything')}
onClick={() => {
this.startGuiding();
ReactDOM.unmountComponentAtNode(newUpdatesModalEl);
}}
/>
/> */}
</div>
</UnnnicModalNext>,
newUpdatesModalEl
Expand Down
15 changes: 8 additions & 7 deletions src/config/i18n/es/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,19 +594,20 @@
"single": "Bloque copiados con éxito"
},
"new_updates": {
"title": "¡El Editor de flujo tiene una nueva apariencia!",
"title": "¡Novedades en la zona!",
"description": "¿Qué hay de nuevo?",
"news": {
"first": "Una nueva y hermosa interfaz",
"second": "Funcionalidad de copiar y pegar bloques",
"third": "Barra lateral con herramientas (en evolución)",
"fourth": "Posibilidad de crear un nuevo bloque en cualquier lugar.",
"first": "El editor es más rápido",
"second": "Dos nuevas tarjetas para procesar respuestas de forma 100% inteligente",
"third": "Copia y pega cualquier tipo de tarjeta sin preocuparte",
"fourth": "Errores solucionados en el componente de selección de tarjetas.",
"fifth": "Máscara de WhatsApp en el simulador."
},
"buttons": {
"first": "Ignorar",
"first": "Fechar",
"second": "Muestrame todo"
}
},
"footer": "No dude en enviarnos sus comentarios sobre su experiencia"
},
"guiding": {
"close_tour": "Cerrar guía",
Expand Down
15 changes: 8 additions & 7 deletions src/config/i18n/pt-br/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -595,19 +595,20 @@
"single": "Bloco copiado com sucesso"
},
"new_updates": {
"title": "O Editor de Fluxos tá de cara nova!",
"title": "Novidade na área!",
"description": "O que tem de novo?",
"news": {
"first": "Uma linda interface nova",
"second": "Funcionalidade de copiar e colar blocos",
"third": "Sidebar com ferramentas (evoluindo)",
"fourth": "Possiblidade de criar um novo bloco em qualquer lugar",
"first": "O editor está mais rápido",
"second": "Dois novos cards para tratamento das respostas de forma 100% inteligente",
"third": "Copie e cole qualquer tipo de card sem se preocupar",
"fourth": "Bugs corrigidos no componente de seleção nos cards",
"fifth": "Skin do WhatsApp no simulador"
},
"buttons": {
"first": "Ignorar",
"first": "Fechar",
"second": "Me mostra tudo"
}
},
"footer": "Fique à vontade para enviar feedbacks sobre sua experiência"
},
"guiding": {
"close_tour": "Fechar tour",
Expand Down

0 comments on commit afb5223

Please sign in to comment.