@tsparticles/template-ribbons 4.1.3 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +3 -0
  3. package/package.json +4 -3
  4. package/template/angular/package.json +35 -0
  5. package/template/angular/src/app/app.component.css +40 -0
  6. package/template/angular/src/app/app.component.html +6 -0
  7. package/template/angular/src/app/app.component.ts +13 -0
  8. package/template/angular-confetti/package.json +36 -0
  9. package/template/angular-confetti/src/app/app.component.css +40 -0
  10. package/template/angular-confetti/src/app/app.component.html +6 -0
  11. package/template/angular-confetti/src/app/app.component.ts +13 -0
  12. package/template/angular-fireworks/package.json +36 -0
  13. package/template/angular-fireworks/src/app/app.component.css +40 -0
  14. package/template/angular-fireworks/src/app/app.component.html +6 -0
  15. package/template/angular-fireworks/src/app/app.component.ts +13 -0
  16. package/template/astro/package.json +18 -0
  17. package/template/astro/src/pages/index.astro +70 -0
  18. package/template/ember/app/templates/application.hbs +6 -0
  19. package/template/ember/package.json +20 -0
  20. package/template/inferno/package.json +22 -0
  21. package/template/inferno/src/App.css +40 -0
  22. package/template/inferno/src/App.tsx +13 -0
  23. package/template/jquery/package.json +21 -0
  24. package/template/jquery/src/main.ts +7 -0
  25. package/template/jquery/src/style.css +40 -0
  26. package/template/lit/package.json +21 -0
  27. package/template/lit/src/my-app.ts +23 -0
  28. package/template/nextjs/package.json +21 -0
  29. package/template/nextjs/src/app/page.tsx +14 -0
  30. package/template/nuxt2/package.json +19 -0
  31. package/template/nuxt2/pages/index.vue +63 -0
  32. package/template/nuxt3/app.vue +59 -0
  33. package/template/nuxt3/package.json +19 -0
  34. package/template/nuxt4/app.vue +59 -0
  35. package/template/nuxt4/package.json +22 -0
  36. package/template/preact/package.json +21 -0
  37. package/template/preact/src/App.css +40 -0
  38. package/template/preact/src/App.tsx +13 -0
  39. package/template/qwik/package.json +20 -0
  40. package/template/qwik/src/App.tsx +13 -0
  41. package/template/react/package.json +21 -0
  42. package/template/react/src/App.css +40 -0
  43. package/template/react/src/App.tsx +23 -0
  44. package/template/riot/package.json +22 -0
  45. package/template/riot/src/app.riot +61 -0
  46. package/template/solid/package.json +20 -0
  47. package/template/solid/src/App.tsx +12 -0
  48. package/template/solid/src/index.css +40 -0
  49. package/template/solid/src/main.tsx +9 -0
  50. package/template/stencil/package.json +18 -0
  51. package/template/stencil/src/components/app-home/app-home.tsx +22 -0
  52. package/template/svelte/package.json +22 -0
  53. package/template/svelte/src/App.svelte +55 -0
  54. package/template/svelte/src/main.ts +6 -0
  55. package/template/vanilla/LICENSE +21 -0
  56. package/template/vanilla/package.json +5 -1
  57. package/template/vue2/package.json +21 -0
  58. package/template/vue2/src/App.vue +64 -0
  59. package/template/vue3/package.json +21 -0
  60. package/template/vue3/src/App.vue +59 -0
  61. package/template/vue3/src/main.ts +9 -0
  62. package/template/webcomponents/package.json +15 -0
  63. package/template/webcomponents/src/main.ts +18 -0
  64. package/template/webcomponents/src/style.css +40 -0
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "@tsparticles/engine": "workspace:*",
13
+ "@tsparticles/ribbons": "workspace:*",
14
+ "@tsparticles/svelte": "workspace:*"
15
+ },
16
+ "devDependencies": {
17
+ "@sveltejs/vite-plugin-svelte": "^5.0.3",
18
+ "svelte": "^5.55.7",
19
+ "svelte-check": "^3.7.1",
20
+ "tslib": "^2.8.1"
21
+ }
22
+ }
@@ -0,0 +1,55 @@
1
+ <script lang="ts">
2
+ import { ribbons } from "@tsparticles/ribbons";
3
+
4
+ function fire(): void {
5
+ ribbons();
6
+ }
7
+ </script>
8
+
9
+ <h1>tsParticles Ribbons</h1>
10
+ <div class="controls">
11
+ <button onclick={fire}>Fire!</button>
12
+ </div>
13
+
14
+ <style>
15
+ :global(body) {
16
+ margin: 0;
17
+ overflow: hidden;
18
+ background: #0a0a23;
19
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
20
+ }
21
+
22
+ :global(#app) {
23
+ position: absolute;
24
+ top: 50%;
25
+ left: 50%;
26
+ transform: translate(-50%, -50%);
27
+ z-index: 10;
28
+ text-align: center;
29
+ }
30
+
31
+ h1 {
32
+ font-size: 3.2em;
33
+ color: #fff;
34
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
35
+ }
36
+
37
+ .controls {
38
+ margin-top: 2rem;
39
+ }
40
+
41
+ button {
42
+ padding: 0.8em 2em;
43
+ font-size: 1.1em;
44
+ border: none;
45
+ border-radius: 8px;
46
+ background: #6c5ce7;
47
+ color: #fff;
48
+ cursor: pointer;
49
+ transition: background 0.2s;
50
+ }
51
+
52
+ button:hover {
53
+ background: #a29bfe;
54
+ }
55
+ </style>
@@ -0,0 +1,6 @@
1
+ import { mount } from "svelte";
2
+ import App from "./App.svelte";
3
+
4
+ const app = mount(App, { target: document.getElementById("app")! });
5
+
6
+ export default app;
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "{{projectName}}",
2
+ "name": "{{packageName}}",
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "type": "module",
@@ -7,5 +7,9 @@
7
7
  "dev": "vite",
8
8
  "build": "tsc && vite build",
9
9
  "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "@tsparticles/engine": "workspace:*",
13
+ "@tsparticles/ribbons": "workspace:*"
10
14
  }
11
15
  }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "@tsparticles/engine": "workspace:*",
13
+ "@tsparticles/ribbons": "workspace:*",
14
+
15
+ "@tsparticles/vue2": "workspace:*",
16
+ "vue": "^2.7.16"
17
+ },
18
+ "devDependencies": {
19
+ "vite-plugin-vue2": "^2.0.3"
20
+ }
21
+ }
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <div id="app">
3
+ <h1>Ribbons</h1>
4
+ <div class="controls">
5
+ <button @click="fireRibbons">Fire Ribbons</button>
6
+ </div>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ import { ribbons } from "@tsparticles/ribbons";
12
+
13
+ export default {
14
+ name: "App",
15
+ methods: {
16
+ fireRibbons() {
17
+ ribbons();
18
+ },
19
+ },
20
+ };
21
+ </script>
22
+
23
+ <style>
24
+ body {
25
+ margin: 0;
26
+ overflow: hidden;
27
+ background: #0a0a23;
28
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
29
+ }
30
+
31
+ #app {
32
+ position: absolute;
33
+ top: 50%;
34
+ left: 50%;
35
+ transform: translate(-50%, -50%);
36
+ z-index: 10;
37
+ text-align: center;
38
+ }
39
+
40
+ h1 {
41
+ font-size: 3.2em;
42
+ color: #fff;
43
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
44
+ }
45
+
46
+ .controls {
47
+ margin-top: 2rem;
48
+ }
49
+
50
+ button {
51
+ padding: 0.8em 2em;
52
+ font-size: 1.1em;
53
+ border: none;
54
+ border-radius: 8px;
55
+ background: #6c5ce7;
56
+ color: #fff;
57
+ cursor: pointer;
58
+ transition: background 0.2s;
59
+ }
60
+
61
+ button:hover {
62
+ background: #a29bfe;
63
+ }
64
+ </style>
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vue-tsc --noEmit && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "vue": "^3.5.32",
13
+ "@tsparticles/engine": "workspace:*",
14
+ "@tsparticles/ribbons": "workspace:*",
15
+ "@tsparticles/vue3": "workspace:*"
16
+ },
17
+ "devDependencies": {
18
+ "@vitejs/plugin-vue": "^6.0.5",
19
+ "vue-tsc": "^3.2.6"
20
+ }
21
+ }
@@ -0,0 +1,59 @@
1
+ <script setup lang="ts">
2
+ import { ribbons } from "@tsparticles/ribbons";
3
+
4
+ function fireRibbons() {
5
+ ribbons();
6
+ }
7
+ </script>
8
+
9
+ <template>
10
+ <div id="app">
11
+ <h1>Ribbons</h1>
12
+ <div class="controls">
13
+ <button @click="fireRibbons">Fire Ribbons</button>
14
+ </div>
15
+ </div>
16
+ </template>
17
+
18
+ <style>
19
+ body {
20
+ margin: 0;
21
+ overflow: hidden;
22
+ background: #0a0a23;
23
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
24
+ }
25
+
26
+ #app {
27
+ position: absolute;
28
+ top: 50%;
29
+ left: 50%;
30
+ transform: translate(-50%, -50%);
31
+ z-index: 10;
32
+ text-align: center;
33
+ }
34
+
35
+ h1 {
36
+ font-size: 3.2em;
37
+ color: #fff;
38
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
39
+ }
40
+
41
+ .controls {
42
+ margin-top: 2rem;
43
+ }
44
+
45
+ button {
46
+ padding: 0.8em 2em;
47
+ font-size: 1.1em;
48
+ border: none;
49
+ border-radius: 8px;
50
+ background: #6c5ce7;
51
+ color: #fff;
52
+ cursor: pointer;
53
+ transition: background 0.2s;
54
+ }
55
+
56
+ button:hover {
57
+ background: #a29bfe;
58
+ }
59
+ </style>
@@ -0,0 +1,9 @@
1
+ import { createApp } from "vue";
2
+ import Particles from "@tsparticles/vue3";
3
+ import App from "./App.vue";
4
+
5
+ const app = createApp(App);
6
+
7
+ app.use(Particles, {});
8
+
9
+ app.mount("#app");
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "@tsparticles/engine": "workspace:*",
13
+ "@tsparticles/ribbons": "workspace:*"
14
+ }
15
+ }
@@ -0,0 +1,18 @@
1
+ import "./style.css";
2
+ import { ribbons } from "@tsparticles/ribbons";
3
+
4
+ const app = document.getElementById("app")!;
5
+
6
+ const btn = document.createElement("button");
7
+ btn.textContent = "Fire Ribbons";
8
+ btn.addEventListener("click", () => ribbons());
9
+
10
+ const controls = document.createElement("div");
11
+ controls.className = "controls";
12
+ controls.appendChild(btn);
13
+
14
+ const title = document.createElement("h1");
15
+ title.textContent = "Ribbons";
16
+
17
+ app.appendChild(title);
18
+ app.appendChild(controls);
@@ -0,0 +1,40 @@
1
+ body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ background: #0a0a23;
5
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
6
+ }
7
+
8
+ #app {
9
+ position: absolute;
10
+ top: 50%;
11
+ left: 50%;
12
+ transform: translate(-50%, -50%);
13
+ z-index: 10;
14
+ text-align: center;
15
+ }
16
+
17
+ h1 {
18
+ font-size: 3.2em;
19
+ color: #fff;
20
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
21
+ }
22
+
23
+ .controls {
24
+ margin-top: 2rem;
25
+ }
26
+
27
+ button {
28
+ padding: 0.8em 2em;
29
+ font-size: 1.1em;
30
+ border: none;
31
+ border-radius: 8px;
32
+ background: #6c5ce7;
33
+ color: #fff;
34
+ cursor: pointer;
35
+ transition: background 0.2s;
36
+ }
37
+
38
+ button:hover {
39
+ background: #a29bfe;
40
+ }