@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,126 @@
1
+ import Particles, { initParticlesEngine } from "@tsparticles/inferno";
2
+ import { loadSlim } from "@tsparticles/slim";
3
+ import type { ISourceOptions } from "@tsparticles/engine";
4
+ import { Component } from "inferno";
5
+ import "./App.css";
6
+
7
+ export default class App extends Component {
8
+ constructor(props) {
9
+ super(props);
10
+ this.state = { init: false };
11
+ }
12
+
13
+ componentDidMount() {
14
+ initParticlesEngine(async (engine) => {
15
+ await loadSlim(engine);
16
+ }).then(() => {
17
+ this.setState({ init: true });
18
+ });
19
+ }
20
+
21
+ options: ISourceOptions = {
22
+ fullScreen: { enable: true, zIndex: -1 },
23
+ background: { color: { value: "#080818" } },
24
+ fpsLimit: 60,
25
+ particles: {
26
+ number: { value: 100, density: { enable: true } },
27
+ color: { value: ["#6c5ce7", "#00cec9", "#fd79a8", "#ffeaa7"] },
28
+ shape: { type: "circle" },
29
+ opacity: { value: 0.4, random: true },
30
+ size: { value: { min: 1, max: 4 }, random: true },
31
+ links: { enable: true, distance: 150, color: "#6c5ce7", opacity: 0.15, width: 1 },
32
+ move: { enable: true, speed: 1.5, direction: "none", random: true, straight: false, outModes: { default: "out" } },
33
+ },
34
+ interactivity: {
35
+ events: { onHover: { enable: true, mode: "grab" } },
36
+ modes: { grab: { distance: 200, links: { opacity: 0.5 } } },
37
+ },
38
+ detectRetina: true,
39
+ };
40
+
41
+ render() {
42
+ return (
43
+ <div>
44
+ <Particles id="tsparticles" options={this.options} />
45
+ <section id="hero" class="section">
46
+ <div class="hero-content">
47
+ <h1>Build Faster.<br /><span class="gradient-text">Go Further.</span></h1>
48
+ <p class="hero-subtitle">The platform that helps teams ship products at the speed of light.</p>
49
+ <div class="hero-cta">
50
+ <a href="#features" class="btn btn-primary">Learn More</a>
51
+ <a href="#cta" class="btn btn-secondary">Get Started</a>
52
+ </div>
53
+ </div>
54
+ </section>
55
+ <section id="features" class="section">
56
+ <div class="container">
57
+ <h2>Features</h2>
58
+ <div class="features-grid">
59
+ {[{ icon: "⚡", title: "Blazing Fast", desc: "Optimized for performance from the ground up." },
60
+ { icon: "🔒", title: "Secure", desc: "Enterprise-grade security built into every layer." },
61
+ { icon: "🌍", title: "Global Scale", desc: "Deploy anywhere with our global infrastructure." },
62
+ { icon: "🎨", title: "Customizable", desc: "Tailor every aspect to your brand and needs." }
63
+ ].map((f, i) => (
64
+ <div key={i} class="feature-card">
65
+ <div class="feature-icon">{f.icon}</div>
66
+ <h3>{f.title}</h3>
67
+ <p>{f.desc}</p>
68
+ </div>
69
+ ))}
70
+ </div>
71
+ </div>
72
+ </section>
73
+ <section id="pricing" class="section">
74
+ <div class="container">
75
+ <h2>Pricing</h2>
76
+ <div class="pricing-grid">
77
+ {[{ plan: "Starter", price: "$9", features: ["Up to 5 projects", "Basic analytics", "Email support"] },
78
+ { plan: "Pro", price: "$29", features: ["Unlimited projects", "Advanced analytics", "Priority support", "Custom integrations"], featured: true },
79
+ { plan: "Enterprise", price: "$99", features: ["Everything in Pro", "Dedicated support", "SLA guarantee", "Custom deployment"] }
80
+ ].map((p, i) => (
81
+ <div key={i} class={`pricing-card${p.featured ? " featured" : ""}`}>
82
+ <h3>{p.plan}</h3>
83
+ <p class="price">{p.price}<span>/mo</span></p>
84
+ <ul>{p.features.map((f, j) => <li key={j}>{f}</li>)}</ul>
85
+ <a href="#" class={`btn ${p.featured ? "btn-primary" : "btn-secondary"}`}>{p.plan === "Enterprise" ? "Contact Sales" : "Choose Plan"}</a>
86
+ </div>
87
+ ))}
88
+ </div>
89
+ </div>
90
+ </section>
91
+ <section id="testimonials" class="section">
92
+ <div class="container">
93
+ <h2>What Our Users Say</h2>
94
+ <div class="testimonial-grid">
95
+ {[{ text: "This platform transformed how our team ships features. Absolutely love it.", author: "Sarah K., CTO" },
96
+ { text: "The best investment we made this year. The performance gains are incredible.", author: "Michael R., Developer" }
97
+ ].map((t, i) => (
98
+ <div key={i} class="testimonial-card">
99
+ <p>"{t.text}"</p>
100
+ <span class="author">— {t.author}</span>
101
+ </div>
102
+ ))}
103
+ </div>
104
+ </div>
105
+ </section>
106
+ <section id="cta" class="section">
107
+ <div class="container cta-content">
108
+ <h2>Ready to Get Started?</h2>
109
+ <p>Join thousands of teams already building with us.</p>
110
+ <a href="#" class="btn btn-primary btn-large">Start Free Trial</a>
111
+ </div>
112
+ </section>
113
+ <footer id="footer">
114
+ <div class="container footer-content">
115
+ <p>&copy; 2026 {{projectName}}. All rights reserved.</p>
116
+ <div class="footer-links">
117
+ <a href="#">Privacy</a>
118
+ <a href="#">Terms</a>
119
+ <a href="#">Contact</a>
120
+ </div>
121
+ </div>
122
+ </footer>
123
+ </div>
124
+ );
125
+ }
126
+ }
@@ -0,0 +1,23 @@
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
+ "jquery": "^3.7.1",
13
+ "@tsparticles/engine": "^4.1.3",
14
+ "@tsparticles/slim": "^4.1.3",
15
+ "@tsparticles/configs": "^4.1.3",
16
+ "@tsparticles/jquery": "^4.1.3"
17
+ },
18
+ "devDependencies": {
19
+ "@types/jquery": "^3.5.32",
20
+ "typescript": "^5.7.0",
21
+ "vite": "^6.0.0"
22
+ }
23
+ }
@@ -0,0 +1,161 @@
1
+ import "./style.css";
2
+ import $ from "jquery";
3
+ import { loadSlim } from "@tsparticles/slim";
4
+ import "@tsparticles/jquery";
5
+
6
+ $(() => {
7
+ $.particles().init(async (engine) => {
8
+ await loadSlim(engine);
9
+ });
10
+
11
+ $.particles().load({
12
+ id: "tsparticles",
13
+ options: {
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
+ });
51
+
52
+ $("body").html(`
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
+ <section id="features" class="section">
64
+ <div class="container">
65
+ <h2>Features</h2>
66
+ <div class="features-grid">
67
+ <div class="feature-card">
68
+ <div class="feature-icon">⚡</div>
69
+ <h3>Blazing Fast</h3>
70
+ <p>Optimized for performance from the ground up.</p>
71
+ </div>
72
+ <div class="feature-card">
73
+ <div class="feature-icon">🔒</div>
74
+ <h3>Secure</h3>
75
+ <p>Enterprise-grade security built into every layer.</p>
76
+ </div>
77
+ <div class="feature-card">
78
+ <div class="feature-icon">🌍</div>
79
+ <h3>Global Scale</h3>
80
+ <p>Deploy anywhere with our global infrastructure.</p>
81
+ </div>
82
+ <div class="feature-card">
83
+ <div class="feature-icon">🎨</div>
84
+ <h3>Customizable</h3>
85
+ <p>Tailor every aspect to your brand and needs.</p>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </section>
90
+ <section id="pricing" class="section">
91
+ <div class="container">
92
+ <h2>Pricing</h2>
93
+ <div class="pricing-grid">
94
+ <div class="pricing-card">
95
+ <h3>Starter</h3>
96
+ <p class="price">$9<span>/mo</span></p>
97
+ <ul>
98
+ <li>Up to 5 projects</li>
99
+ <li>Basic analytics</li>
100
+ <li>Email support</li>
101
+ </ul>
102
+ <a href="#" class="btn btn-secondary">Choose Plan</a>
103
+ </div>
104
+ <div class="pricing-card featured">
105
+ <h3>Pro</h3>
106
+ <p class="price">$29<span>/mo</span></p>
107
+ <ul>
108
+ <li>Unlimited projects</li>
109
+ <li>Advanced analytics</li>
110
+ <li>Priority support</li>
111
+ <li>Custom integrations</li>
112
+ </ul>
113
+ <a href="#" class="btn btn-primary">Choose Plan</a>
114
+ </div>
115
+ <div class="pricing-card">
116
+ <h3>Enterprise</h3>
117
+ <p class="price">$99<span>/mo</span></p>
118
+ <ul>
119
+ <li>Everything in Pro</li>
120
+ <li>Dedicated support</li>
121
+ <li>SLA guarantee</li>
122
+ <li>Custom deployment</li>
123
+ </ul>
124
+ <a href="#" class="btn btn-secondary">Contact Sales</a>
125
+ </div>
126
+ </div>
127
+ </div>
128
+ </section>
129
+ <section id="testimonials" class="section">
130
+ <div class="container">
131
+ <h2>What Our Users Say</h2>
132
+ <div class="testimonial-grid">
133
+ <div class="testimonial-card">
134
+ <p>"This platform transformed how our team ships features. Absolutely love it."</p>
135
+ <span class="author">— Sarah K., CTO</span>
136
+ </div>
137
+ <div class="testimonial-card">
138
+ <p>"The best investment we made this year. The performance gains are incredible."</p>
139
+ <span class="author">— Michael R., Developer</span>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ </section>
144
+ <section id="cta" class="section">
145
+ <div class="container cta-content">
146
+ <h2>Ready to Get Started?</h2>
147
+ <p>Join thousands of teams already building with us.</p>
148
+ <a href="#" class="btn btn-primary btn-large">Start Free Trial</a>
149
+ </div>
150
+ </section>
151
+ <footer id="footer">
152
+ <div class="container footer-content">
153
+ <p>&copy; 2026 {{projectName}}. All rights reserved.</p>
154
+ <div class="footer-links">
155
+ <a href="#">Privacy</a>
156
+ <a href="#">Terms</a>
157
+ <a href="#">Contact</a>
158
+ </div>
159
+ </div>
160
+ </footer>
161
+ `);
@@ -0,0 +1,259 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ body {
8
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
9
+ color: #fff;
10
+ background: #080818;
11
+ overflow-x: hidden;
12
+ }
13
+
14
+ .section {
15
+ min-height: 100vh;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ padding: 4rem 1rem;
20
+ position: relative;
21
+ }
22
+
23
+ .container {
24
+ max-width: 1100px;
25
+ width: 100%;
26
+ margin: 0 auto;
27
+ text-align: center;
28
+ }
29
+
30
+ h2 {
31
+ font-size: 2.5em;
32
+ margin-bottom: 3rem;
33
+ background: linear-gradient(135deg, #6c5ce7, #00cec9);
34
+ -webkit-background-clip: text;
35
+ -webkit-text-fill-color: transparent;
36
+ background-clip: text;
37
+ }
38
+
39
+ #hero {
40
+ min-height: 100vh;
41
+ position: relative;
42
+ }
43
+
44
+ .hero-content {
45
+ text-align: center;
46
+ z-index: 10;
47
+ padding: 2rem;
48
+ }
49
+
50
+ .hero-content h1 {
51
+ font-size: 4em;
52
+ line-height: 1.1;
53
+ margin-bottom: 1rem;
54
+ }
55
+
56
+ .gradient-text {
57
+ background: linear-gradient(135deg, #6c5ce7, #fd79a8);
58
+ -webkit-background-clip: text;
59
+ -webkit-text-fill-color: transparent;
60
+ background-clip: text;
61
+ }
62
+
63
+ .hero-subtitle {
64
+ font-size: 1.3em;
65
+ opacity: 0.7;
66
+ margin-bottom: 2rem;
67
+ max-width: 600px;
68
+ margin-left: auto;
69
+ margin-right: auto;
70
+ }
71
+
72
+ .hero-cta {
73
+ display: flex;
74
+ gap: 1rem;
75
+ justify-content: center;
76
+ flex-wrap: wrap;
77
+ }
78
+
79
+ .btn {
80
+ padding: 0.8em 2em;
81
+ font-size: 1.1em;
82
+ font-weight: 600;
83
+ border-radius: 8px;
84
+ text-decoration: none;
85
+ transition: transform 0.2s, box-shadow 0.2s;
86
+ display: inline-block;
87
+ }
88
+
89
+ .btn:hover {
90
+ transform: translateY(-2px);
91
+ box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
92
+ }
93
+
94
+ .btn-primary {
95
+ background: linear-gradient(135deg, #6c5ce7, #a29bfe);
96
+ color: #fff;
97
+ }
98
+
99
+ .btn-secondary {
100
+ background: rgba(255, 255, 255, 0.1);
101
+ color: #fff;
102
+ border: 1px solid rgba(255, 255, 255, 0.2);
103
+ }
104
+
105
+ .btn-large {
106
+ padding: 1em 3em;
107
+ font-size: 1.2em;
108
+ }
109
+
110
+ .features-grid {
111
+ display: grid;
112
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
113
+ gap: 2rem;
114
+ }
115
+
116
+ .feature-card {
117
+ background: rgba(255, 255, 255, 0.03);
118
+ border: 1px solid rgba(255, 255, 255, 0.08);
119
+ border-radius: 16px;
120
+ padding: 2rem;
121
+ text-align: center;
122
+ transition: transform 0.3s, border-color 0.3s;
123
+ }
124
+
125
+ .feature-card:hover {
126
+ transform: translateY(-6px);
127
+ border-color: #6c5ce7;
128
+ }
129
+
130
+ .feature-icon {
131
+ font-size: 2.5em;
132
+ margin-bottom: 1rem;
133
+ }
134
+
135
+ .feature-card h3 {
136
+ margin-bottom: 0.5rem;
137
+ }
138
+
139
+ .feature-card p {
140
+ opacity: 0.7;
141
+ font-size: 0.95em;
142
+ }
143
+
144
+ .pricing-grid {
145
+ display: grid;
146
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
147
+ gap: 2rem;
148
+ align-items: center;
149
+ }
150
+
151
+ .pricing-card {
152
+ background: rgba(255, 255, 255, 0.03);
153
+ border: 1px solid rgba(255, 255, 255, 0.08);
154
+ border-radius: 16px;
155
+ padding: 2.5rem 2rem;
156
+ text-align: center;
157
+ }
158
+
159
+ .pricing-card.featured {
160
+ border-color: #6c5ce7;
161
+ background: rgba(108, 92, 231, 0.08);
162
+ transform: scale(1.05);
163
+ }
164
+
165
+ .price {
166
+ font-size: 3em;
167
+ font-weight: 700;
168
+ margin: 1rem 0;
169
+ }
170
+
171
+ .price span {
172
+ font-size: 0.4em;
173
+ opacity: 0.5;
174
+ font-weight: 400;
175
+ }
176
+
177
+ .pricing-card ul {
178
+ list-style: none;
179
+ margin: 1.5rem 0;
180
+ }
181
+
182
+ .pricing-card li {
183
+ padding: 0.4em 0;
184
+ opacity: 0.8;
185
+ }
186
+
187
+ .pricing-card li::before {
188
+ content: "✓ ";
189
+ color: #00cec9;
190
+ }
191
+
192
+ .testimonial-grid {
193
+ display: grid;
194
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
195
+ gap: 2rem;
196
+ }
197
+
198
+ .testimonial-card {
199
+ background: rgba(255, 255, 255, 0.03);
200
+ border: 1px solid rgba(255, 255, 255, 0.08);
201
+ border-radius: 16px;
202
+ padding: 2rem;
203
+ text-align: left;
204
+ }
205
+
206
+ .testimonial-card p {
207
+ font-style: italic;
208
+ font-size: 1.1em;
209
+ line-height: 1.6;
210
+ margin-bottom: 1rem;
211
+ }
212
+
213
+ .author {
214
+ opacity: 0.6;
215
+ font-size: 0.9em;
216
+ }
217
+
218
+ .cta-content h2 {
219
+ margin-bottom: 1rem;
220
+ }
221
+
222
+ .cta-content p {
223
+ font-size: 1.2em;
224
+ opacity: 0.7;
225
+ margin-bottom: 2rem;
226
+ }
227
+
228
+ #footer {
229
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
230
+ padding: 2rem 1rem;
231
+ }
232
+
233
+ .footer-content {
234
+ display: flex;
235
+ justify-content: space-between;
236
+ align-items: center;
237
+ flex-wrap: wrap;
238
+ gap: 1rem;
239
+ }
240
+
241
+ .footer-content p {
242
+ opacity: 0.5;
243
+ font-size: 0.9em;
244
+ }
245
+
246
+ .footer-links {
247
+ display: flex;
248
+ gap: 1.5rem;
249
+ }
250
+
251
+ .footer-links a {
252
+ color: rgba(255, 255, 255, 0.6);
253
+ text-decoration: none;
254
+ font-size: 0.9em;
255
+ }
256
+
257
+ .footer-links a:hover {
258
+ color: #6c5ce7;
259
+ }
@@ -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": "tsc && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "lit": "^3.2.0",
13
+ "@tsparticles/engine": "^4.1.3",
14
+ "@tsparticles/slim": "^4.1.3",
15
+ "@tsparticles/configs": "^4.1.3",
16
+ "@tsparticles/lit": "^4.1.3"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "^5.7.0",
20
+ "vite": "^6.0.0"
21
+ }
22
+ }