Fireworks Component šŸŽ†

What better way to celebrate the New Year’s eve than fireworks! :fireworks:

Here’s a component that adds fireworks on Discourse forum.

The source code is inspired from Eddie’s Pure CSS Fireworks.

Happy New Year 2021! :tada:

32 Likes

would be cool if this triggered for a few seconds every time a badge is earned

14 Likes

@Don
if a badge is earned your theme FKB PRO
very usefull

1 Like

Doesn’t work on iPhone (at least).

Well, next year then.

You can try this fork @Jagster:

URL: https://github.com/Arkshine/discourse-fireworks
branch: mobile-support-and-settings

Click on Advanced button to provide the branch name here:

Mobile is supported, and I added a bunch of basic settings (particle count/size, firework width/height, and fall distance) for both desktop and mobile.

I will consider making a proper PR (and eventually other settings) on the original repository later!

6 Likes

Hm, I tried but I do not see any fireworks and also no settings.

No worries. I should have explained how to install it.

Make sure you click on Advanced and copy/paste the branch name:

image

Note: This will install another Theme component; you might want to disable the old one for now. :+1:

1 Like

The implementation of mobile support and settings is absolutely superb. It functions perfectly on my mobile device now, with dimensions that are impeccably suited, without any hint of being overwrought.

You did. I did not notice the branch, sorry. Thank you for making this clear. :slight_smile: Looks great now, thank you a lot! An official PR would be great. :slight_smile:

1 Like

I think this would be better if you could adjust the frequency somehow it’s (imo) fairly obnoxious but still cool

One year after last new year :smirk:

Arkshine’s fork works nicely. But yet original one is desktop-only.

Either the PR in needed or the OP could be edited including information of the fork. Both solutions are good.

2 Likes

I created the PR on @Arkshine’s behalf and merged it. Updating the component should work for mobile as well.

Thanks again, Arkshine.

5 Likes

Thanks @meghna! I have completely forgotten. :smile:

2 Likes

@meghna I’ve opened a PR to add an option to use tsParticles’ fireworks:

4 Likes

Thanks Nate! I’ll take a look. :+1:

2 Likes

I’ve merged the PR, thanks for the improvements, Nate! :fireworks:

3 Likes

Thanks a bunch!

3 Likes

I just activated the Fireworks component and see the following warning:

[Admin-Hinweis] Theme ā€˜discourse-fireworks’ enthƤlt Code, der aktualisiert werden muss. (ID:discourse.script-tag-discourse-plugin) (mehr erfahren)

[THEME 62 ā€˜discourse-fireworks’] DEPRECATION NOTICE: Adding JS code using is deprecated. Move this code to a dedicated JavaScript file. [deprecation id: discourse.script-tag-discourse-plugin] [info: Modernizing inline script tags for templates & JS API]

Is it possible to get an update? I myself do not understand enough to make a PR. :see_no_evil_monkey:

4 Likes

I’ve had a fix and refactor for this for a couple days in my repo, but finally got around to creating a PR to this one. sorry i know it’s already Jan 1st. lol :woman_facepalming:t2:

not sure about the acceptance tests though :see_no_evil_monkey:

5 Likes