@tsparticles/template-landing 4.1.3 → 4.2.0

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 +10 -0
  2. package/README.md +3 -0
  3. package/package.json +4 -3
  4. package/template/angular/package.json +34 -0
  5. package/template/angular/src/app/app.component.css +265 -0
  6. package/template/angular/src/app/app.component.html +72 -0
  7. package/template/angular/src/app/app.component.ts +57 -0
  8. package/template/angular-confetti/package.json +36 -0
  9. package/template/angular-confetti/src/app/app.component.css +259 -0
  10. package/template/angular-confetti/src/app/app.component.html +66 -0
  11. package/template/angular-confetti/src/app/app.component.ts +49 -0
  12. package/template/angular-fireworks/package.json +36 -0
  13. package/template/angular-fireworks/src/app/app.component.css +259 -0
  14. package/template/angular-fireworks/src/app/app.component.html +66 -0
  15. package/template/angular-fireworks/src/app/app.component.ts +49 -0
  16. package/template/astro/package.json +21 -0
  17. package/template/astro/src/pages/index.astro +143 -0
  18. package/template/ember/app/templates/application.hbs +75 -0
  19. package/template/ember/package.json +19 -0
  20. package/template/inferno/package.json +23 -0
  21. package/template/inferno/src/App.css +259 -0
  22. package/template/inferno/src/App.tsx +126 -0
  23. package/template/jquery/package.json +23 -0
  24. package/template/jquery/src/main.ts +161 -0
  25. package/template/jquery/src/style.css +259 -0
  26. package/template/lit/package.json +22 -0
  27. package/template/lit/src/my-app.ts +146 -0
  28. package/template/nextjs/package.json +19 -0
  29. package/template/nextjs/src/app/page.tsx +155 -0
  30. package/template/nextjs/src/app/providers.tsx +15 -0
  31. package/template/nuxt2/package.json +17 -0
  32. package/template/nuxt2/pages/index.vue +375 -0
  33. package/template/nuxt3/app.vue +374 -0
  34. package/template/nuxt3/package.json +18 -0
  35. package/template/nuxt4/app.vue +374 -0
  36. package/template/nuxt4/package.json +18 -0
  37. package/template/preact/package.json +23 -0
  38. package/template/preact/src/App.css +259 -0
  39. package/template/preact/src/App.tsx +152 -0
  40. package/template/qwik/package.json +22 -0
  41. package/template/qwik/src/App.tsx +150 -0
  42. package/template/react/package.json +19 -0
  43. package/template/react/src/App.css +265 -0
  44. package/template/react/src/App.tsx +114 -0
  45. package/template/riot/package.json +22 -0
  46. package/template/riot/src/app.riot +123 -0
  47. package/template/solid/package.json +18 -0
  48. package/template/solid/src/App.tsx +170 -0
  49. package/template/solid/src/index.css +259 -0
  50. package/template/solid/src/main.tsx +9 -0
  51. package/template/stencil/package.json +16 -0
  52. package/template/stencil/src/components/app-home/app-home.tsx +135 -0
  53. package/template/svelte/package.json +20 -0
  54. package/template/svelte/src/App.svelte +424 -0
  55. package/template/svelte/src/main.ts +12 -0
  56. package/template/vanilla/LICENSE +21 -0
  57. package/template/vue2/package.json +21 -0
  58. package/template/vue2/src/App.vue +376 -0
  59. package/template/vue3/package.json +19 -0
  60. package/template/vue3/src/App.vue +372 -0
  61. package/template/vue3/src/main.ts +14 -0
  62. package/template/webcomponents/package.json +21 -0
  63. package/template/webcomponents/src/main.ts +160 -0
  64. package/template/webcomponents/src/style.css +259 -0
@@ -0,0 +1,114 @@
1
+ import Particles, { ParticlesProvider } from "@tsparticles/react";
2
+ import { loadSlim } from "@tsparticles/slim";
3
+ import type { Engine, ISourceOptions } from "@tsparticles/engine";
4
+ import "./App.css";
5
+
6
+ async function init(engine: Engine): Promise<void> {
7
+ await loadSlim(engine);
8
+ }
9
+
10
+ const options: ISourceOptions = {
11
+ fullScreen: { enable: true, zIndex: -1 },
12
+ background: { color: { value: "#080818" } },
13
+ fpsLimit: 60,
14
+ particles: {
15
+ number: { value: 100, density: { enable: true } },
16
+ color: { value: ["#6c5ce7", "#00cec9", "#fd79a8", "#ffeaa7"] },
17
+ shape: { type: "circle" },
18
+ opacity: { value: 0.4, random: true },
19
+ size: { value: { min: 1, max: 4 }, random: true },
20
+ links: { enable: true, distance: 150, color: "#6c5ce7", opacity: 0.15, width: 1 },
21
+ move: { enable: true, speed: 1.5, direction: "none", random: true, straight: false, outModes: { default: "out" } },
22
+ },
23
+ interactivity: {
24
+ events: { onHover: { enable: true, mode: "grab" } },
25
+ modes: { grab: { distance: 200, links: { opacity: 0.5 } } },
26
+ },
27
+ detectRetina: true,
28
+ };
29
+
30
+ export default function App() {
31
+ return (
32
+ <ParticlesProvider init={init}>
33
+ <Particles id="tsparticles" options={options} />
34
+ <section id="hero" className="section">
35
+ <div className="hero-content">
36
+ <h1>Build Faster.<br /><span className="gradient-text">Go Further.</span></h1>
37
+ <p className="hero-subtitle">The platform that helps teams ship products at the speed of light.</p>
38
+ <div className="hero-cta">
39
+ <a href="#features" className="btn btn-primary">Learn More</a>
40
+ <a href="#cta" className="btn btn-secondary">Get Started</a>
41
+ </div>
42
+ </div>
43
+ </section>
44
+ <section id="features" className="section">
45
+ <div className="container">
46
+ <h2>Features</h2>
47
+ <div className="features-grid">
48
+ {[{ icon: "\u26a1", title: "Blazing Fast", desc: "Optimized for performance from the ground up." },
49
+ { icon: "\ud83d\udd12", title: "Secure", desc: "Enterprise-grade security built into every layer." },
50
+ { icon: "\ud83c\udf0d", title: "Global Scale", desc: "Deploy anywhere with our global infrastructure." },
51
+ { icon: "\ud83c\udfa8", title: "Customizable", desc: "Tailor every aspect to your brand and needs." }
52
+ ].map((f, i) => (
53
+ <div key={i} className="feature-card">
54
+ <div className="feature-icon">{f.icon}</div>
55
+ <h3>{f.title}</h3>
56
+ <p>{f.desc}</p>
57
+ </div>
58
+ ))}
59
+ </div>
60
+ </div>
61
+ </section>
62
+ <section id="pricing" className="section">
63
+ <div className="container">
64
+ <h2>Pricing</h2>
65
+ <div className="pricing-grid">
66
+ {[{ plan: "Starter", price: "$9", features: ["Up to 5 projects", "Basic analytics", "Email support"] },
67
+ { plan: "Pro", price: "$29", features: ["Unlimited projects", "Advanced analytics", "Priority support", "Custom integrations"], featured: true },
68
+ { plan: "Enterprise", price: "$99", features: ["Everything in Pro", "Dedicated support", "SLA guarantee", "Custom deployment"] }
69
+ ].map((p, i) => (
70
+ <div key={i} className={`pricing-card${p.featured ? " featured" : ""}`}>
71
+ <h3>{p.plan}</h3>
72
+ <p className="price">{p.price}<span>/mo</span></p>
73
+ <ul>{p.features.map((f, j) => <li key={j}>{f}</li>)}</ul>
74
+ <a href="#" className={`btn ${p.featured ? "btn-primary" : "btn-secondary"}`}>{p.plan === "Enterprise" ? "Contact Sales" : "Choose Plan"}</a>
75
+ </div>
76
+ ))}
77
+ </div>
78
+ </div>
79
+ </section>
80
+ <section id="testimonials" className="section">
81
+ <div className="container">
82
+ <h2>What Our Users Say</h2>
83
+ <div className="testimonial-grid">
84
+ {[{ text: "This platform transformed how our team ships features. Absolutely love it.", author: "Sarah K., CTO" },
85
+ { text: "The best investment we made this year. The performance gains are incredible.", author: "Michael R., Developer" }
86
+ ].map((t, i) => (
87
+ <div key={i} className="testimonial-card">
88
+ <p>"{t.text}"</p>
89
+ <span className="author">\u2014 {t.author}</span>
90
+ </div>
91
+ ))}
92
+ </div>
93
+ </div>
94
+ </section>
95
+ <section id="cta" className="section">
96
+ <div className="container cta-content">
97
+ <h2>Ready to Get Started?</h2>
98
+ <p>Join thousands of teams already building with us.</p>
99
+ <a href="#" className="btn btn-primary btn-large">Start Free Trial</a>
100
+ </div>
101
+ </section>
102
+ <footer id="footer">
103
+ <div className="container footer-content">
104
+ <p>&copy; 2026 {{projectName}}. All rights reserved.</p>
105
+ <div className="footer-links">
106
+ <a href="#">Privacy</a>
107
+ <a href="#">Terms</a>
108
+ <a href="#">Contact</a>
109
+ </div>
110
+ </div>
111
+ </footer>
112
+ </ParticlesProvider>
113
+ );
114
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "{{projectName}}",
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
+ "riot": "^9.7.0",
13
+ "@tsparticles/engine": "^4.1.3",
14
+ "@tsparticles/slim": "^4.1.3",
15
+ "@tsparticles/configs": "^4.1.3",
16
+ "@tsparticles/riot": "^4.1.3"
17
+ },
18
+ "devDependencies": {
19
+ "@riotjs/vite-plugin": "^9.4.0",
20
+ "vite": "^6.0.0"
21
+ }
22
+ }
@@ -0,0 +1,123 @@
1
+ <app>
2
+ <link rel="stylesheet" href="./style.css">
3
+
4
+ <div>
5
+ <riot-particles id="tsparticles"></riot-particles>
6
+ <section id="hero" class="section">
7
+ <div class="hero-content">
8
+ <h1>Build Faster.<br /><span class="gradient-text">Go Further.</span></h1>
9
+ <p class="hero-subtitle">The platform that helps teams ship products at the speed of light.</p>
10
+ <div class="hero-cta">
11
+ <a href="#features" class="btn btn-primary">Learn More</a>
12
+ <a href="#cta" class="btn btn-secondary">Get Started</a>
13
+ </div>
14
+ </div>
15
+ </section>
16
+ <section id="features" class="section">
17
+ <div class="container">
18
+ <h2>Features</h2>
19
+ <div class="features-grid">
20
+ <div each="{ f in state.features }" class="feature-card">
21
+ <div class="feature-icon">{ f.icon }</div>
22
+ <h3>{ f.title }</h3>
23
+ <p>{ f.desc }</p>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </section>
28
+ <section id="pricing" class="section">
29
+ <div class="container">
30
+ <h2>Pricing</h2>
31
+ <div class="pricing-grid">
32
+ <div each="{ p in state.pricingPlans }" class="pricing-card{ p.featured ? ' featured' : '' }">
33
+ <h3>{ p.plan }</h3>
34
+ <p class="price">{ p.price }<span>/mo</span></p>
35
+ <ul>
36
+ <li each="{ f in p.features }">{ f }</li>
37
+ </ul>
38
+ <a href="#" class="btn{ p.featured ? ' btn-primary' : ' btn-secondary' }">{ p.plan === 'Enterprise' ? 'Contact Sales' : 'Choose Plan' }</a>
39
+ </div>
40
+ </div>
41
+ </div>
42
+ </section>
43
+ <section id="testimonials" class="section">
44
+ <div class="container">
45
+ <h2>What Our Users Say</h2>
46
+ <div class="testimonial-grid">
47
+ <div each="{ t in state.testimonials }" class="testimonial-card">
48
+ <p>"{ t.text }"</p>
49
+ <span class="author">— { t.author }</span>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </section>
54
+ <section id="cta" class="section">
55
+ <div class="container cta-content">
56
+ <h2>Ready to Get Started?</h2>
57
+ <p>Join thousands of teams already building with us.</p>
58
+ <a href="#" class="btn btn-primary btn-large">Start Free Trial</a>
59
+ </div>
60
+ </section>
61
+ <footer id="footer">
62
+ <div class="container footer-content">
63
+ <p>&copy; 2026 {{projectName}}. All rights reserved.</p>
64
+ <div class="footer-links">
65
+ <a href="#">Privacy</a>
66
+ <a href="#">Terms</a>
67
+ <a href="#">Contact</a>
68
+ </div>
69
+ </div>
70
+ </footer>
71
+ </div>
72
+
73
+ <script>
74
+ import { loadSlim } from "@tsparticles/slim";
75
+ import { tsParticles } from "@tsparticles/engine";
76
+ import "@tsparticles/riot";
77
+
78
+ export default {
79
+ state: {
80
+ features: [
81
+ { icon: "⚡", title: "Blazing Fast", desc: "Optimized for performance from the ground up." },
82
+ { icon: "🔒", title: "Secure", desc: "Enterprise-grade security built into every layer." },
83
+ { icon: "🌍", title: "Global Scale", desc: "Deploy anywhere with our global infrastructure." },
84
+ { icon: "🎨", title: "Customizable", desc: "Tailor every aspect to your brand and needs." },
85
+ ],
86
+ pricingPlans: [
87
+ { plan: "Starter", price: "$9", features: ["Up to 5 projects", "Basic analytics", "Email support"], featured: false },
88
+ { plan: "Pro", price: "$29", features: ["Unlimited projects", "Advanced analytics", "Priority support", "Custom integrations"], featured: true },
89
+ { plan: "Enterprise", price: "$99", features: ["Everything in Pro", "Dedicated support", "SLA guarantee", "Custom deployment"], featured: false },
90
+ ],
91
+ testimonials: [
92
+ { text: "This platform transformed how our team ships features. Absolutely love it.", author: "Sarah K., CTO" },
93
+ { text: "The best investment we made this year. The performance gains are incredible.", author: "Michael R., Developer" },
94
+ ],
95
+ },
96
+ async onMounted() {
97
+ await loadSlim(tsParticles);
98
+ await tsParticles.load({
99
+ id: "tsparticles",
100
+ options: {
101
+ fullScreen: { enable: true, zIndex: -1 },
102
+ background: { color: { value: "#080818" } },
103
+ fpsLimit: 60,
104
+ particles: {
105
+ number: { value: 100, density: { enable: true } },
106
+ color: { value: ["#6c5ce7", "#00cec9", "#fd79a8", "#ffeaa7"] },
107
+ shape: { type: "circle" },
108
+ opacity: { value: 0.4, random: true },
109
+ size: { value: { min: 1, max: 4 }, random: true },
110
+ links: { enable: true, distance: 150, color: "#6c5ce7", opacity: 0.15, width: 1 },
111
+ move: { enable: true, speed: 1.5, direction: "none", random: true, straight: false, outModes: { default: "out" } },
112
+ },
113
+ interactivity: {
114
+ events: { onHover: { enable: true, mode: "grab" } },
115
+ modes: { grab: { distance: 200, links: { opacity: 0.5 } } },
116
+ },
117
+ detectRetina: true,
118
+ },
119
+ });
120
+ },
121
+ };
122
+ </script>
123
+ </app>
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "{{projectName}}",
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
+ "solid-js": "^1.8.11",
13
+ "@tsparticles/solid": "^4.1.3"
14
+ },
15
+ "devDependencies": {
16
+ "vite-plugin-solid": "^2.8.2"
17
+ }
18
+ }
@@ -0,0 +1,170 @@
1
+ import { onMount } from "solid-js";
2
+ import Particles, { initParticlesEngine } from "@tsparticles/solid";
3
+ import { loadSlim } from "@tsparticles/slim";
4
+ import type { ISourceOptions } from "@tsparticles/engine";
5
+
6
+ export default function App() {
7
+ onMount(() => {
8
+ void initParticlesEngine(async (engine) => {
9
+ await loadSlim(engine);
10
+ });
11
+ });
12
+
13
+ const options: ISourceOptions = {
14
+ fullScreen: { enable: true, zIndex: -1 },
15
+ background: { color: { value: "#080818" } },
16
+ fpsLimit: 60,
17
+ particles: {
18
+ number: { value: 100, density: { enable: true } },
19
+ color: { value: ["#6c5ce7", "#00cec9", "#fd79a8", "#ffeaa7"] },
20
+ shape: { type: "circle" },
21
+ opacity: { value: 0.4, random: true },
22
+ size: { value: { min: 1, max: 4 }, random: true },
23
+ links: {
24
+ enable: true,
25
+ distance: 150,
26
+ color: "#6c5ce7",
27
+ opacity: 0.15,
28
+ width: 1,
29
+ },
30
+ move: {
31
+ enable: true,
32
+ speed: 1.5,
33
+ direction: "none",
34
+ random: true,
35
+ straight: false,
36
+ outModes: { default: "out" },
37
+ },
38
+ },
39
+ interactivity: {
40
+ events: {
41
+ onHover: { enable: true, mode: "grab" },
42
+ },
43
+ modes: {
44
+ grab: { distance: 200, links: { opacity: 0.5 } },
45
+ },
46
+ },
47
+ detectRetina: true,
48
+ };
49
+
50
+ return (
51
+ <>
52
+ <div id="app-content">
53
+ <section id="hero" class="section">
54
+ <div class="hero-content">
55
+ <h1>Build Faster.<br /><span class="gradient-text">Go Further.</span></h1>
56
+ <p class="hero-subtitle">The platform that helps teams ship products at the speed of light.</p>
57
+ <div class="hero-cta">
58
+ <a href="#features" class="btn btn-primary">Learn More</a>
59
+ <a href="#cta" class="btn btn-secondary">Get Started</a>
60
+ </div>
61
+ </div>
62
+ </section>
63
+
64
+ <section id="features" class="section">
65
+ <div class="container">
66
+ <h2>Features</h2>
67
+ <div class="features-grid">
68
+ <div class="feature-card">
69
+ <div class="feature-icon">⚡</div>
70
+ <h3>Blazing Fast</h3>
71
+ <p>Optimized for performance from the ground up.</p>
72
+ </div>
73
+ <div class="feature-card">
74
+ <div class="feature-icon">🔒</div>
75
+ <h3>Secure</h3>
76
+ <p>Enterprise-grade security built into every layer.</p>
77
+ </div>
78
+ <div class="feature-card">
79
+ <div class="feature-icon">🌍</div>
80
+ <h3>Global Scale</h3>
81
+ <p>Deploy anywhere with our global infrastructure.</p>
82
+ </div>
83
+ <div class="feature-card">
84
+ <div class="feature-icon">🎨</div>
85
+ <h3>Customizable</h3>
86
+ <p>Tailor every aspect to your brand and needs.</p>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </section>
91
+
92
+ <section id="pricing" class="section">
93
+ <div class="container">
94
+ <h2>Pricing</h2>
95
+ <div class="pricing-grid">
96
+ <div class="pricing-card">
97
+ <h3>Starter</h3>
98
+ <p class="price">$9<span>/mo</span></p>
99
+ <ul>
100
+ <li>Up to 5 projects</li>
101
+ <li>Basic analytics</li>
102
+ <li>Email support</li>
103
+ </ul>
104
+ <a href="#" class="btn btn-secondary">Choose Plan</a>
105
+ </div>
106
+ <div class="pricing-card featured">
107
+ <h3>Pro</h3>
108
+ <p class="price">$29<span>/mo</span></p>
109
+ <ul>
110
+ <li>Unlimited projects</li>
111
+ <li>Advanced analytics</li>
112
+ <li>Priority support</li>
113
+ <li>Custom integrations</li>
114
+ </ul>
115
+ <a href="#" class="btn btn-primary">Choose Plan</a>
116
+ </div>
117
+ <div class="pricing-card">
118
+ <h3>Enterprise</h3>
119
+ <p class="price">$99<span>/mo</span></p>
120
+ <ul>
121
+ <li>Everything in Pro</li>
122
+ <li>Dedicated support</li>
123
+ <li>SLA guarantee</li>
124
+ <li>Custom deployment</li>
125
+ </ul>
126
+ <a href="#" class="btn btn-secondary">Contact Sales</a>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </section>
131
+
132
+ <section id="testimonials" class="section">
133
+ <div class="container">
134
+ <h2>What Our Users Say</h2>
135
+ <div class="testimonial-grid">
136
+ <div class="testimonial-card">
137
+ <p>"This platform transformed how our team ships features. Absolutely love it."</p>
138
+ <span class="author">— Sarah K., CTO</span>
139
+ </div>
140
+ <div class="testimonial-card">
141
+ <p>"The best investment we made this year. The performance gains are incredible."</p>
142
+ <span class="author">— Michael R., Developer</span>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </section>
147
+
148
+ <section id="cta" class="section">
149
+ <div class="container cta-content">
150
+ <h2>Ready to Get Started?</h2>
151
+ <p>Join thousands of teams already building with us.</p>
152
+ <a href="#" class="btn btn-primary btn-large">Start Free Trial</a>
153
+ </div>
154
+ </section>
155
+
156
+ <footer id="footer">
157
+ <div class="container footer-content">
158
+ <p>&copy; 2026 {{projectName}}. All rights reserved.</p>
159
+ <div class="footer-links">
160
+ <a href="#">Privacy</a>
161
+ <a href="#">Terms</a>
162
+ <a href="#">Contact</a>
163
+ </div>
164
+ </div>
165
+ </footer>
166
+ </div>
167
+ <Particles id="tsparticles" options={options} />
168
+ </>
169
+ );
170
+ }