[IMP] web_editor, website: add new 'Countdown' snippet
This commit introduces a new snippet: Countdown.
The countdown snippet is composed of 4 circle countdown, one for every time
unit: seconds, minutes, hours and days.
When countdown ends, the user can chose between 3 possible actions:
1. Nothing
2. Show message: show a message once the countdown ends.
The message will be displayed bellow the countdown (stopped on 0) or will
replace the countdown depending on the option selected.
The message can be edited through the website builder.
3. Redirect: redirect the user to the chosen URL. If the user is on the page at
the exact moment the countdown reach 0, the user will be redirected
automatically. If the user lands on the page after the countdown has reached
0, there will be no redirection and the link will be shown bellow the
countdown (stopped on 0) or will replace the countdown depending on the
option selected.
The countdown layout can be customized in multiple ways:
1. By choosing to hide some time units. For instance, seconds can be hidden or
only days shown.
2. By changing its size between small/medium/large.
3. By changing its basic design (circle, boxes, clean).
4. By changing its advanced design (shape, background, progress bar..)
task-2093081
closes odoo/odoo#39773
Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/web_editor/static/src/js/editor/snippets.editor.js 1 addition, 1 deletionaddons/web_editor/static/src/js/editor/snippets.editor.js
- addons/web_editor/static/src/js/editor/snippets.options.js 105 additions, 0 deletionsaddons/web_editor/static/src/js/editor/snippets.options.js
- addons/website/data/website_data.xml 7 additions, 0 deletionsaddons/website/data/website_data.xml
- addons/website/static/src/img/library/firework.jpg 0 additions, 0 deletionsaddons/website/static/src/img/library/firework.jpg
- addons/website/static/src/img/snippets_thumbs/s_countdown.png 0 additions, 0 deletions...ns/website/static/src/img/snippets_thumbs/s_countdown.png
- addons/website/static/src/js/content/snippets.animation.js 408 additions, 0 deletionsaddons/website/static/src/js/content/snippets.animation.js
- addons/website/static/src/js/editor/snippets.options.js 166 additions, 0 deletionsaddons/website/static/src/js/editor/snippets.options.js
- addons/website/static/src/xml/website.s_countdown.xml 30 additions, 0 deletionsaddons/website/static/src/xml/website.s_countdown.xml
- addons/website/views/snippets.xml 63 additions, 1 deletionaddons/website/views/snippets.xml
Loading
Please register or sign in to comment