@tsparticles/template-landing 4.1.3

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.
package/LICENSE ADDED
@@ -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.
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@tsparticles/template-landing",
3
+ "version": "4.1.3",
4
+ "private": false,
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "scripts": {
9
+ "prebuild": "node scripts/prebuild.js",
10
+ "build": "pnpm run prebuild",
11
+ "build:ci": "pnpm run prebuild"
12
+ },
13
+ "gitHead": "0551736c55ae8eec3855a693af8a99b1b4420350"
14
+ }
@@ -0,0 +1,65 @@
1
+ const fs = require("fs-extra");
2
+
3
+ const libPackage = "./template.json";
4
+
5
+ const workspaceVersions = {
6
+ "@tsparticles/engine": require("../../../engine/package.json").version,
7
+ "@tsparticles/slim": require("../../../bundles/slim/package.json").version,
8
+ "@tsparticles/configs": require("../../../utils/configs/package.json").version,
9
+ };
10
+
11
+ function resolveWorkspaceDependency(name) {
12
+ const libObj = JSON.parse(fs.readFileSync(libPackage, "utf-8"));
13
+
14
+ const allDeps = {
15
+ ...libObj.package.dependencies,
16
+ ...libObj.package.devDependencies,
17
+ };
18
+
19
+ const spec = allDeps[name];
20
+
21
+ if (!spec?.startsWith("workspace:")) {
22
+ return spec;
23
+ }
24
+
25
+ const workspaceRange = spec.replace("workspace:", "");
26
+
27
+ if (workspaceRange.length > 0 && workspaceRange !== "*" && workspaceRange !== "^" && workspaceRange !== "~") {
28
+ return workspaceRange;
29
+ }
30
+
31
+ const version = workspaceVersions[name];
32
+
33
+ if (!version) {
34
+ throw new Error(`Cannot resolve workspace dependency version for ${name}`);
35
+ }
36
+
37
+ return workspaceRange === "^" || workspaceRange === "~" ? `${workspaceRange}${version}` : `^${version}`;
38
+ }
39
+
40
+ fs.readFile(libPackage, function (error, data) {
41
+ if (error) {
42
+ throw error;
43
+ }
44
+
45
+ const text = data.toString();
46
+ const libObj = JSON.parse(text);
47
+
48
+ for (const dep of Object.keys(libObj.package.dependencies)) {
49
+ const resolved = resolveWorkspaceDependency(dep);
50
+ if (resolved) {
51
+ libObj.package.dependencies[dep] = resolved;
52
+ }
53
+ }
54
+
55
+ for (const dep of Object.keys(libObj.package.devDependencies)) {
56
+ const resolved = resolveWorkspaceDependency(dep);
57
+ if (resolved) {
58
+ libObj.package.devDependencies[dep] = resolved;
59
+ }
60
+ }
61
+
62
+ fs.writeFile(libPackage, JSON.stringify(libObj, undefined, 2), "utf-8", function () {
63
+ console.log("template.json dependencies updated successfully");
64
+ });
65
+ });
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,14 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # misc
8
+ .DS_Store
9
+ *.local
10
+
11
+ # debug
12
+ npm-debug.log*
13
+ yarn-debug.log*
14
+ yarn-error.log*
@@ -0,0 +1,126 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta name="description" content="Supercharge your workflow with our product" />
7
+ <title>{{projectName}}</title>
8
+ </head>
9
+ <body>
10
+ <section id="hero" class="section">
11
+ <div class="hero-content">
12
+ <h1>Build Faster.<br /><span class="gradient-text">Go Further.</span></h1>
13
+ <p class="hero-subtitle">The platform that helps teams ship products at the speed of light.</p>
14
+ <div class="hero-cta">
15
+ <a href="#features" class="btn btn-primary">Learn More</a>
16
+ <a href="#cta" class="btn btn-secondary">Get Started</a>
17
+ </div>
18
+ </div>
19
+ </section>
20
+
21
+ <section id="features" class="section">
22
+ <div class="container">
23
+ <h2>Features</h2>
24
+ <div class="features-grid">
25
+ <div class="feature-card">
26
+ <div class="feature-icon">⚡</div>
27
+ <h3>Blazing Fast</h3>
28
+ <p>Optimized for performance from the ground up.</p>
29
+ </div>
30
+ <div class="feature-card">
31
+ <div class="feature-icon">🔒</div>
32
+ <h3>Secure</h3>
33
+ <p>Enterprise-grade security built into every layer.</p>
34
+ </div>
35
+ <div class="feature-card">
36
+ <div class="feature-icon">🌍</div>
37
+ <h3>Global Scale</h3>
38
+ <p>Deploy anywhere with our global infrastructure.</p>
39
+ </div>
40
+ <div class="feature-card">
41
+ <div class="feature-icon">🎨</div>
42
+ <h3>Customizable</h3>
43
+ <p>Tailor every aspect to your brand and needs.</p>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </section>
48
+
49
+ <section id="pricing" class="section">
50
+ <div class="container">
51
+ <h2>Pricing</h2>
52
+ <div class="pricing-grid">
53
+ <div class="pricing-card">
54
+ <h3>Starter</h3>
55
+ <p class="price">$9<span>/mo</span></p>
56
+ <ul>
57
+ <li>Up to 5 projects</li>
58
+ <li>Basic analytics</li>
59
+ <li>Email support</li>
60
+ </ul>
61
+ <a href="#" class="btn btn-secondary">Choose Plan</a>
62
+ </div>
63
+ <div class="pricing-card featured">
64
+ <h3>Pro</h3>
65
+ <p class="price">$29<span>/mo</span></p>
66
+ <ul>
67
+ <li>Unlimited projects</li>
68
+ <li>Advanced analytics</li>
69
+ <li>Priority support</li>
70
+ <li>Custom integrations</li>
71
+ </ul>
72
+ <a href="#" class="btn btn-primary">Choose Plan</a>
73
+ </div>
74
+ <div class="pricing-card">
75
+ <h3>Enterprise</h3>
76
+ <p class="price">$99<span>/mo</span></p>
77
+ <ul>
78
+ <li>Everything in Pro</li>
79
+ <li>Dedicated support</li>
80
+ <li>SLA guarantee</li>
81
+ <li>Custom deployment</li>
82
+ </ul>
83
+ <a href="#" class="btn btn-secondary">Contact Sales</a>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </section>
88
+
89
+ <section id="testimonials" class="section">
90
+ <div class="container">
91
+ <h2>What Our Users Say</h2>
92
+ <div class="testimonial-grid">
93
+ <div class="testimonial-card">
94
+ <p>"This platform transformed how our team ships features. Absolutely love it."</p>
95
+ <span class="author">— Sarah K., CTO</span>
96
+ </div>
97
+ <div class="testimonial-card">
98
+ <p>"The best investment we made this year. The performance gains are incredible."</p>
99
+ <span class="author">— Michael R., Developer</span>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </section>
104
+
105
+ <section id="cta" class="section">
106
+ <div class="container cta-content">
107
+ <h2>Ready to Get Started?</h2>
108
+ <p>Join thousands of teams already building with us.</p>
109
+ <a href="#" class="btn btn-primary btn-large">Start Free Trial</a>
110
+ </div>
111
+ </section>
112
+
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
+
124
+ <script type="module" src="/src/main.ts"></script>
125
+ </body>
126
+ </html>
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,47 @@
1
+ import "./style.css";
2
+ import { tsParticles } from "@tsparticles/engine";
3
+ import { loadSlim } from "@tsparticles/slim";
4
+
5
+ (async () => {
6
+ await loadSlim(tsParticles);
7
+
8
+ await tsParticles.load({
9
+ id: "tsparticles",
10
+ options: {
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: {
21
+ enable: true,
22
+ distance: 150,
23
+ color: "#6c5ce7",
24
+ opacity: 0.15,
25
+ width: 1,
26
+ },
27
+ move: {
28
+ enable: true,
29
+ speed: 1.5,
30
+ direction: "none",
31
+ random: true,
32
+ straight: false,
33
+ outModes: { default: "out" },
34
+ },
35
+ },
36
+ interactivity: {
37
+ events: {
38
+ onHover: { enable: true, mode: "grab" },
39
+ },
40
+ modes: {
41
+ grab: { distance: 200, links: { opacity: 0.5 } },
42
+ },
43
+ },
44
+ detectRetina: true,
45
+ },
46
+ });
47
+ })();
@@ -0,0 +1,265 @@
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
+ #hero {
41
+ min-height: 100vh;
42
+ position: relative;
43
+ }
44
+
45
+ .hero-content {
46
+ text-align: center;
47
+ z-index: 10;
48
+ padding: 2rem;
49
+ }
50
+
51
+ .hero-content h1 {
52
+ font-size: 4em;
53
+ line-height: 1.1;
54
+ margin-bottom: 1rem;
55
+ }
56
+
57
+ .gradient-text {
58
+ background: linear-gradient(135deg, #6c5ce7, #fd79a8);
59
+ -webkit-background-clip: text;
60
+ -webkit-text-fill-color: transparent;
61
+ background-clip: text;
62
+ }
63
+
64
+ .hero-subtitle {
65
+ font-size: 1.3em;
66
+ opacity: 0.7;
67
+ margin-bottom: 2rem;
68
+ max-width: 600px;
69
+ margin-left: auto;
70
+ margin-right: auto;
71
+ }
72
+
73
+ .hero-cta {
74
+ display: flex;
75
+ gap: 1rem;
76
+ justify-content: center;
77
+ flex-wrap: wrap;
78
+ }
79
+
80
+ .btn {
81
+ padding: 0.8em 2em;
82
+ font-size: 1.1em;
83
+ font-weight: 600;
84
+ border-radius: 8px;
85
+ text-decoration: none;
86
+ transition: transform 0.2s, box-shadow 0.2s;
87
+ display: inline-block;
88
+ }
89
+
90
+ .btn:hover {
91
+ transform: translateY(-2px);
92
+ box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
93
+ }
94
+
95
+ .btn-primary {
96
+ background: linear-gradient(135deg, #6c5ce7, #a29bfe);
97
+ color: #fff;
98
+ }
99
+
100
+ .btn-secondary {
101
+ background: rgba(255, 255, 255, 0.1);
102
+ color: #fff;
103
+ border: 1px solid rgba(255, 255, 255, 0.2);
104
+ }
105
+
106
+ .btn-large {
107
+ padding: 1em 3em;
108
+ font-size: 1.2em;
109
+ }
110
+
111
+ /* Features */
112
+ .features-grid {
113
+ display: grid;
114
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
115
+ gap: 2rem;
116
+ }
117
+
118
+ .feature-card {
119
+ background: rgba(255, 255, 255, 0.03);
120
+ border: 1px solid rgba(255, 255, 255, 0.08);
121
+ border-radius: 16px;
122
+ padding: 2rem;
123
+ text-align: center;
124
+ transition: transform 0.3s, border-color 0.3s;
125
+ }
126
+
127
+ .feature-card:hover {
128
+ transform: translateY(-6px);
129
+ border-color: #6c5ce7;
130
+ }
131
+
132
+ .feature-icon {
133
+ font-size: 2.5em;
134
+ margin-bottom: 1rem;
135
+ }
136
+
137
+ .feature-card h3 {
138
+ margin-bottom: 0.5rem;
139
+ }
140
+
141
+ .feature-card p {
142
+ opacity: 0.7;
143
+ font-size: 0.95em;
144
+ }
145
+
146
+ /* Pricing */
147
+ .pricing-grid {
148
+ display: grid;
149
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
150
+ gap: 2rem;
151
+ align-items: center;
152
+ }
153
+
154
+ .pricing-card {
155
+ background: rgba(255, 255, 255, 0.03);
156
+ border: 1px solid rgba(255, 255, 255, 0.08);
157
+ border-radius: 16px;
158
+ padding: 2.5rem 2rem;
159
+ text-align: center;
160
+ }
161
+
162
+ .pricing-card.featured {
163
+ border-color: #6c5ce7;
164
+ background: rgba(108, 92, 231, 0.08);
165
+ transform: scale(1.05);
166
+ }
167
+
168
+ .price {
169
+ font-size: 3em;
170
+ font-weight: 700;
171
+ margin: 1rem 0;
172
+ }
173
+
174
+ .price span {
175
+ font-size: 0.4em;
176
+ opacity: 0.5;
177
+ font-weight: 400;
178
+ }
179
+
180
+ .pricing-card ul {
181
+ list-style: none;
182
+ margin: 1.5rem 0;
183
+ }
184
+
185
+ .pricing-card li {
186
+ padding: 0.4em 0;
187
+ opacity: 0.8;
188
+ }
189
+
190
+ .pricing-card li::before {
191
+ content: "✓ ";
192
+ color: #00cec9;
193
+ }
194
+
195
+ /* Testimonials */
196
+ .testimonial-grid {
197
+ display: grid;
198
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
199
+ gap: 2rem;
200
+ }
201
+
202
+ .testimonial-card {
203
+ background: rgba(255, 255, 255, 0.03);
204
+ border: 1px solid rgba(255, 255, 255, 0.08);
205
+ border-radius: 16px;
206
+ padding: 2rem;
207
+ text-align: left;
208
+ }
209
+
210
+ .testimonial-card p {
211
+ font-style: italic;
212
+ font-size: 1.1em;
213
+ line-height: 1.6;
214
+ margin-bottom: 1rem;
215
+ }
216
+
217
+ .author {
218
+ opacity: 0.6;
219
+ font-size: 0.9em;
220
+ }
221
+
222
+ /* CTA */
223
+ .cta-content h2 {
224
+ margin-bottom: 1rem;
225
+ }
226
+
227
+ .cta-content p {
228
+ font-size: 1.2em;
229
+ opacity: 0.7;
230
+ margin-bottom: 2rem;
231
+ }
232
+
233
+ /* Footer */
234
+ #footer {
235
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
236
+ padding: 2rem 1rem;
237
+ }
238
+
239
+ .footer-content {
240
+ display: flex;
241
+ justify-content: space-between;
242
+ align-items: center;
243
+ flex-wrap: wrap;
244
+ gap: 1rem;
245
+ }
246
+
247
+ .footer-content p {
248
+ opacity: 0.5;
249
+ font-size: 0.9em;
250
+ }
251
+
252
+ .footer-links {
253
+ display: flex;
254
+ gap: 1.5rem;
255
+ }
256
+
257
+ .footer-links a {
258
+ color: rgba(255, 255, 255, 0.6);
259
+ text-decoration: none;
260
+ font-size: 0.9em;
261
+ }
262
+
263
+ .footer-links a:hover {
264
+ color: #6c5ce7;
265
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+ "moduleResolution": "bundler",
9
+ "allowImportingTsExtensions": true,
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "noEmit": true,
13
+ "strict": true,
14
+ "noUnusedLocals": true,
15
+ "noUnusedParameters": true,
16
+ "noFallthroughCasesInSwitch": true
17
+ },
18
+ "include": ["src"]
19
+ }
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "vite";
2
+
3
+ export default defineConfig({
4
+ base: "./",
5
+ });
package/template.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "package": {
3
+ "dependencies": {
4
+ "@tsparticles/engine": "^4.1.3",
5
+ "@tsparticles/slim": "^4.1.3",
6
+ "@tsparticles/configs": "^4.1.3"
7
+ },
8
+ "devDependencies": {
9
+ "typescript": "^6.0.3",
10
+ "vite": "^8.0.14"
11
+ }
12
+ }
13
+ }