⚒Anvil
Sign in

clo / cl-site public

merged

Added announcement box 76

opened by common-lisp.net

Tim Plotnikov (@tplotnikov) on GitLab, 2018-11-04.

Hello everyone! As per issue #27 , i've added announcement box right under navigation bar. It can be presented in 3 states: 1. No announcements - this is regular representation, without any changes.Снимок_экрана_2018-11-04_в_12.37.37 2. Announcement showed - The announcement message is visible.Снимок_экрана_2018-11-04_в_12.36.57 3. Announcement hidden - as you can see, there is close button in the message box which allows to discard the message. First, i was thinking about saving timestamp when user discarded the message and showing message again after some period of time + if message was updated. But it has too many corner cases, so i decided just to add this little button to bring the message back :)Снимок_экрана_2018-11-04_в_12.37.06

P.S. If the message was updated, the announcement box will appear again no matter if it was closed or not.

P.P.S. In order to make this work, https://common-lisp.net/broadcast.html should be available. If someone wants to test it locally, make broadcast.html file in output/ folder and change announcementUrl var in layout/static/js/scripts.js.

0 commits, 0 files changed

common-lisp.net mentioned in commit 591969d5ec7edbecd88707a8cfd6f31a386bd124
common-lisp.net merged
common-lisp.net mentioned in issue #27

Sign in to comment.