@tsparticles/template-scaffold 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.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -0
- package/package.json +4 -3
- package/template/angular/LICENSE +21 -0
- package/template/angular/package.json +1 -1
- package/template/angular-confetti/.browserslistrc +6 -0
- package/template/angular-confetti/.editorconfig +9 -0
- package/template/angular-confetti/LICENSE +21 -0
- package/template/angular-confetti/README.md +10 -0
- package/template/angular-confetti/angular.json +53 -0
- package/template/angular-confetti/gitignore +17 -0
- package/template/angular-confetti/package.json +34 -0
- package/template/angular-confetti/src/app/app.component.css +15 -0
- package/template/angular-confetti/src/app/app.component.html +4 -0
- package/template/angular-confetti/src/app/app.component.ts +27 -0
- package/template/angular-confetti/src/app/app.module.ts +12 -0
- package/template/angular-confetti/src/index.html +12 -0
- package/template/angular-confetti/src/main.ts +6 -0
- package/template/angular-confetti/src/polyfills.ts +1 -0
- package/template/angular-confetti/src/styles.css +5 -0
- package/template/angular-confetti/tsconfig.app.json +9 -0
- package/template/angular-confetti/tsconfig.json +29 -0
- package/template/angular-confetti/tsconfig.spec.json +8 -0
- package/template/angular-fireworks/.browserslistrc +6 -0
- package/template/angular-fireworks/.editorconfig +9 -0
- package/template/angular-fireworks/LICENSE +21 -0
- package/template/angular-fireworks/README.md +10 -0
- package/template/angular-fireworks/angular.json +53 -0
- package/template/angular-fireworks/gitignore +17 -0
- package/template/angular-fireworks/package.json +34 -0
- package/template/angular-fireworks/src/app/app.component.css +15 -0
- package/template/angular-fireworks/src/app/app.component.html +4 -0
- package/template/angular-fireworks/src/app/app.component.ts +29 -0
- package/template/angular-fireworks/src/app/app.module.ts +12 -0
- package/template/angular-fireworks/src/index.html +12 -0
- package/template/angular-fireworks/src/main.ts +6 -0
- package/template/angular-fireworks/src/polyfills.ts +1 -0
- package/template/angular-fireworks/src/styles.css +5 -0
- package/template/angular-fireworks/tsconfig.app.json +9 -0
- package/template/angular-fireworks/tsconfig.json +29 -0
- package/template/angular-fireworks/tsconfig.spec.json +8 -0
- package/template/astro/LICENSE +21 -0
- package/template/astro/README.md +10 -0
- package/template/astro/gitignore +14 -0
- package/template/astro/package.json +21 -0
- package/template/astro/src/pages/index.astro +35 -0
- package/template/ember/LICENSE +21 -0
- package/template/ember/README.md +10 -0
- package/template/ember/app/controllers/application.js +35 -0
- package/template/ember/app/templates/application.hbs +14 -0
- package/template/ember/gitignore +14 -0
- package/template/ember/package.json +41 -0
- package/template/inferno/LICENSE +21 -0
- package/template/inferno/README.md +10 -0
- package/template/inferno/gitignore +14 -0
- package/template/inferno/index.html +12 -0
- package/template/inferno/package.json +23 -0
- package/template/inferno/src/App.tsx +37 -0
- package/template/inferno/src/main.tsx +4 -0
- package/template/inferno/tsconfig.json +17 -0
- package/template/inferno/vite.config.ts +11 -0
- package/template/jquery/LICENSE +21 -0
- package/template/jquery/README.md +10 -0
- package/template/jquery/gitignore +14 -0
- package/template/jquery/index.html +15 -0
- package/template/jquery/package.json +19 -0
- package/template/jquery/src/main.ts +31 -0
- package/template/jquery/src/style.css +22 -0
- package/template/jquery/tsconfig.json +19 -0
- package/template/jquery/vite.config.ts +5 -0
- package/template/lit/LICENSE +21 -0
- package/template/lit/README.md +10 -0
- package/template/lit/gitignore +14 -0
- package/template/lit/index.html +15 -0
- package/template/lit/package.json +19 -0
- package/template/lit/src/main.ts +8 -0
- package/template/lit/src/my-app.ts +34 -0
- package/template/lit/src/style.css +21 -0
- package/template/lit/tsconfig.json +20 -0
- package/template/lit/vite.config.ts +5 -0
- package/template/nextjs/LICENSE +21 -0
- package/template/nextjs/README.md +10 -0
- package/template/nextjs/gitignore +14 -0
- package/template/nextjs/package.json +24 -0
- package/template/nextjs/src/app/layout.tsx +16 -0
- package/template/nextjs/src/app/page.tsx +30 -0
- package/template/nextjs/src/app/providers.tsx +13 -0
- package/template/nuxt2/LICENSE +21 -0
- package/template/nuxt2/README.md +10 -0
- package/template/nuxt2/gitignore +14 -0
- package/template/nuxt2/nuxt.config.js +3 -0
- package/template/nuxt2/package.json +16 -0
- package/template/nuxt2/pages/index.vue +43 -0
- package/template/nuxt3/LICENSE +21 -0
- package/template/nuxt3/README.md +10 -0
- package/template/nuxt3/app.vue +36 -0
- package/template/nuxt3/gitignore +14 -0
- package/template/nuxt3/nuxt.config.ts +3 -0
- package/template/nuxt3/package.json +20 -0
- package/template/nuxt4/LICENSE +21 -0
- package/template/nuxt4/README.md +10 -0
- package/template/nuxt4/app.vue +36 -0
- package/template/nuxt4/gitignore +14 -0
- package/template/nuxt4/nuxt.config.ts +3 -0
- package/template/nuxt4/package.json +20 -0
- package/template/preact/LICENSE +21 -0
- package/template/preact/README.md +10 -0
- package/template/preact/gitignore +14 -0
- package/template/preact/index.html +12 -0
- package/template/preact/package.json +20 -0
- package/template/preact/src/App.tsx +43 -0
- package/template/preact/src/main.tsx +5 -0
- package/template/preact/src/style.css +21 -0
- package/template/preact/tsconfig.json +21 -0
- package/template/preact/vite.config.ts +7 -0
- package/template/qwik/LICENSE +21 -0
- package/template/qwik/README.md +10 -0
- package/template/qwik/gitignore +14 -0
- package/template/qwik/index.html +12 -0
- package/template/qwik/package.json +19 -0
- package/template/qwik/src/App.tsx +43 -0
- package/template/qwik/src/main.tsx +4 -0
- package/template/qwik/src/style.css +21 -0
- package/template/qwik/tsconfig.json +20 -0
- package/template/qwik/vite.config.ts +7 -0
- package/template/react/LICENSE +21 -0
- package/template/react/package.json +1 -1
- package/template/riot/LICENSE +21 -0
- package/template/riot/README.md +10 -0
- package/template/riot/gitignore +14 -0
- package/template/riot/index.html +12 -0
- package/template/riot/package.json +21 -0
- package/template/riot/src/app.riot +66 -0
- package/template/riot/src/main.ts +5 -0
- package/template/riot/src/style.css +21 -0
- package/template/riot/tsconfig.json +19 -0
- package/template/riot/vite.config.ts +7 -0
- package/template/solid/LICENSE +21 -0
- package/template/solid/package.json +1 -1
- package/template/stencil/LICENSE +21 -0
- package/template/stencil/README.md +10 -0
- package/template/stencil/gitignore +14 -0
- package/template/stencil/package.json +19 -0
- package/template/stencil/src/components/app-home/app-home.tsx +47 -0
- package/template/svelte/LICENSE +21 -0
- package/template/svelte/package.json +1 -1
- package/template/vanilla/LICENSE +21 -0
- package/template/vanilla/package.json +1 -1
- package/template/vue2/LICENSE +21 -0
- package/template/vue2/README.md +10 -0
- package/template/vue2/gitignore +14 -0
- package/template/vue2/index.html +12 -0
- package/template/vue2/package.json +21 -0
- package/template/vue2/src/App.vue +65 -0
- package/template/vue2/src/main.ts +14 -0
- package/template/vue2/tsconfig.json +19 -0
- package/template/vue2/vite.config.ts +7 -0
- package/template/vue3/LICENSE +21 -0
- package/template/vue3/package.json +1 -1
- package/template/webcomponents/LICENSE +21 -0
- package/template/webcomponents/README.md +10 -0
- package/template/webcomponents/gitignore +14 -0
- package/template/webcomponents/index.html +15 -0
- package/template/webcomponents/package.json +18 -0
- package/template/webcomponents/src/main.ts +9 -0
- package/template/webcomponents/src/style.css +22 -0
- package/template/webcomponents/tsconfig.json +19 -0
- package/template/webcomponents/vite.config.ts +5 -0
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
<title>{{projectName}}</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="app">
|
|
10
|
+
<h1>Hello, tsParticles!</h1>
|
|
11
|
+
</div>
|
|
12
|
+
<lit-particles id="tsparticles"></lit-particles>
|
|
13
|
+
<script type="module" src="/src/main.ts"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
"lit": "^3.5.0",
|
|
13
|
+
"@tsparticles/lit": "^4.1.3"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"typescript": "^5.7.2",
|
|
17
|
+
"vite": "^6.0.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement, html } from "lit";
|
|
2
|
+
import { customElement } from "lit/decorators.js";
|
|
3
|
+
import type { ISourceOptions } from "@tsparticles/engine";
|
|
4
|
+
|
|
5
|
+
const options: ISourceOptions = {
|
|
6
|
+
fullScreen: { enable: true, zIndex: -1 },
|
|
7
|
+
background: { color: { value: "#1a1a2e" } },
|
|
8
|
+
fpsLimit: 60,
|
|
9
|
+
particles: {
|
|
10
|
+
number: { value: 80, density: { enable: true } },
|
|
11
|
+
color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
|
|
12
|
+
shape: { type: "circle" },
|
|
13
|
+
opacity: { value: 0.5, random: true },
|
|
14
|
+
size: { value: { min: 1, max: 4 }, random: true },
|
|
15
|
+
move: {
|
|
16
|
+
enable: true,
|
|
17
|
+
speed: 2,
|
|
18
|
+
direction: "none",
|
|
19
|
+
random: false,
|
|
20
|
+
straight: false,
|
|
21
|
+
outModes: { default: "out" },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
detectRetina: true,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
@customElement("my-app")
|
|
28
|
+
export class MyApp extends LitElement {
|
|
29
|
+
render() {
|
|
30
|
+
return html`
|
|
31
|
+
<lit-particles id="tsparticles" .options=${options}></lit-particles>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#app {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 50%;
|
|
10
|
+
left: 50%;
|
|
11
|
+
transform: translate(-50%, -50%);
|
|
12
|
+
z-index: 10;
|
|
13
|
+
text-align: center;
|
|
14
|
+
color: #fff;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
h1 {
|
|
19
|
+
font-size: 3.2em;
|
|
20
|
+
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
"experimentalDecorators": true
|
|
18
|
+
},
|
|
19
|
+
"include": ["src"]
|
|
20
|
+
}
|
|
@@ -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.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{packageName}}",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "next dev",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"preview": "next start"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"next": "^15.3.2",
|
|
12
|
+
"react": "^19.2.5",
|
|
13
|
+
"react-dom": "^19.2.5",
|
|
14
|
+
"@tsparticles/nextjs": "^4.1.3",
|
|
15
|
+
"@tsparticles/engine": "^4.1.3",
|
|
16
|
+
"@tsparticles/slim": "^4.1.3"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"typescript": "^6.0.3",
|
|
20
|
+
"@types/node": "^22.15.3",
|
|
21
|
+
"@types/react": "^19.1.4",
|
|
22
|
+
"@types/react-dom": "^19.1.3"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
import Providers from "./providers";
|
|
3
|
+
|
|
4
|
+
export const metadata: Metadata = {
|
|
5
|
+
title: "{{projectName}}",
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
9
|
+
return (
|
|
10
|
+
<html lang="en">
|
|
11
|
+
<body>
|
|
12
|
+
<Providers>{children}</Providers>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { NextParticles } from "@tsparticles/nextjs";
|
|
4
|
+
import type { ISourceOptions } from "@tsparticles/engine";
|
|
5
|
+
|
|
6
|
+
const options: ISourceOptions = {
|
|
7
|
+
fullScreen: { enable: true, zIndex: -1 },
|
|
8
|
+
background: { color: { value: "#1a1a2e" } },
|
|
9
|
+
fpsLimit: 60,
|
|
10
|
+
particles: {
|
|
11
|
+
number: { value: 80, density: { enable: true } },
|
|
12
|
+
color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
|
|
13
|
+
shape: { type: "circle" },
|
|
14
|
+
opacity: { value: 0.5, random: true },
|
|
15
|
+
size: { value: { min: 1, max: 4 }, random: true },
|
|
16
|
+
move: {
|
|
17
|
+
enable: true,
|
|
18
|
+
speed: 2,
|
|
19
|
+
direction: "none",
|
|
20
|
+
random: false,
|
|
21
|
+
straight: false,
|
|
22
|
+
outModes: { default: "out" },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
detectRetina: true,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default function Home() {
|
|
29
|
+
return <NextParticles id="tsparticles" options={options} />;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { NextParticlesProvider } from "@tsparticles/nextjs";
|
|
4
|
+
import { loadSlim } from "@tsparticles/slim";
|
|
5
|
+
import type { Engine } from "@tsparticles/engine";
|
|
6
|
+
|
|
7
|
+
export default function Providers({ children }: { children: React.ReactNode }) {
|
|
8
|
+
return (
|
|
9
|
+
<NextParticlesProvider init={async (engine: Engine): Promise<void> => { await loadSlim(engine); }}>
|
|
10
|
+
{children}
|
|
11
|
+
</NextParticlesProvider>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -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.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{packageName}}",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "nuxt",
|
|
7
|
+
"build": "nuxt build",
|
|
8
|
+
"preview": "nuxt start"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"nuxt": "^2.18.1",
|
|
12
|
+
"@tsparticles/nuxt2": "^4.1.3",
|
|
13
|
+
"@tsparticles/engine": "^4.1.3",
|
|
14
|
+
"@tsparticles/slim": "^4.1.3"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<h1>Hello, tsParticles!</h1>
|
|
4
|
+
<Particles id="tsparticles" :options="options" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: "HomePage",
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
options: {
|
|
14
|
+
fullScreen: { enable: true, zIndex: -1 },
|
|
15
|
+
background: { color: { value: "#1a1a2e" } },
|
|
16
|
+
fpsLimit: 60,
|
|
17
|
+
particles: {
|
|
18
|
+
number: { value: 80, density: { enable: true } },
|
|
19
|
+
color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
|
|
20
|
+
shape: { type: "circle" },
|
|
21
|
+
opacity: { value: 0.5, random: true },
|
|
22
|
+
size: { value: { min: 1, max: 4 }, random: true },
|
|
23
|
+
move: {
|
|
24
|
+
enable: true,
|
|
25
|
+
speed: 2,
|
|
26
|
+
direction: "none",
|
|
27
|
+
random: false,
|
|
28
|
+
straight: false,
|
|
29
|
+
outModes: { default: "out" },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
detectRetina: true,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<style>
|
|
40
|
+
body { margin: 0; overflow: hidden; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; }
|
|
41
|
+
#app { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; color: #fff; pointer-events: none; }
|
|
42
|
+
h1 { font-size: 3.2em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
|
|
43
|
+
</style>
|
|
@@ -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.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<h1>Hello, tsParticles!</h1>
|
|
4
|
+
<Particles id="tsparticles" :options="options" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup>
|
|
9
|
+
const options = {
|
|
10
|
+
fullScreen: { enable: true, zIndex: -1 },
|
|
11
|
+
background: { color: { value: "#1a1a2e" } },
|
|
12
|
+
fpsLimit: 60,
|
|
13
|
+
particles: {
|
|
14
|
+
number: { value: 80, density: { enable: true } },
|
|
15
|
+
color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
|
|
16
|
+
shape: { type: "circle" },
|
|
17
|
+
opacity: { value: 0.5, random: true },
|
|
18
|
+
size: { value: { min: 1, max: 4 }, random: true },
|
|
19
|
+
move: {
|
|
20
|
+
enable: true,
|
|
21
|
+
speed: 2,
|
|
22
|
+
direction: "none",
|
|
23
|
+
random: false,
|
|
24
|
+
straight: false,
|
|
25
|
+
outModes: { default: "out" },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
detectRetina: true,
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style>
|
|
33
|
+
body { margin: 0; overflow: hidden; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; }
|
|
34
|
+
#app { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; color: #fff; pointer-events: none; }
|
|
35
|
+
h1 { font-size: 3.2em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
|
|
36
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{packageName}}",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "nuxt dev",
|
|
8
|
+
"build": "nuxt build",
|
|
9
|
+
"preview": "nuxt preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"nuxt": "^3.17.3",
|
|
13
|
+
"@tsparticles/nuxt3": "^4.1.3",
|
|
14
|
+
"@tsparticles/engine": "^4.1.3",
|
|
15
|
+
"@tsparticles/slim": "^4.1.3"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"typescript": "^6.0.3"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<h1>Hello, tsParticles!</h1>
|
|
4
|
+
<Particles id="tsparticles" :options="options" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup>
|
|
9
|
+
const options = {
|
|
10
|
+
fullScreen: { enable: true, zIndex: -1 },
|
|
11
|
+
background: { color: { value: "#1a1a2e" } },
|
|
12
|
+
fpsLimit: 60,
|
|
13
|
+
particles: {
|
|
14
|
+
number: { value: 80, density: { enable: true } },
|
|
15
|
+
color: { value: ["#6c5ce7", "#a29bfe", "#fd79a8"] },
|
|
16
|
+
shape: { type: "circle" },
|
|
17
|
+
opacity: { value: 0.5, random: true },
|
|
18
|
+
size: { value: { min: 1, max: 4 }, random: true },
|
|
19
|
+
move: {
|
|
20
|
+
enable: true,
|
|
21
|
+
speed: 2,
|
|
22
|
+
direction: "none",
|
|
23
|
+
random: false,
|
|
24
|
+
straight: false,
|
|
25
|
+
outModes: { default: "out" },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
detectRetina: true,
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style>
|
|
33
|
+
body { margin: 0; overflow: hidden; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; }
|
|
34
|
+
#app { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; color: #fff; pointer-events: none; }
|
|
35
|
+
h1 { font-size: 3.2em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
|
|
36
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{packageName}}",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "nuxt dev",
|
|
8
|
+
"build": "nuxt build",
|
|
9
|
+
"preview": "nuxt preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"nuxt": "^4.4.2",
|
|
13
|
+
"@tsparticles/nuxt4": "^4.1.3",
|
|
14
|
+
"@tsparticles/engine": "^4.1.3",
|
|
15
|
+
"@tsparticles/slim": "^4.1.3"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"typescript": "^6.0.3"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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.
|