@tsparticles/template-confetti 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 (65) hide show
  1. package/CHANGELOG.md +16 -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 +54 -0
  6. package/template/angular/src/app/app.component.html +11 -0
  7. package/template/angular/src/app/app.component.ts +44 -0
  8. package/template/angular/src/app/app.module.ts +13 -0
  9. package/template/angular-confetti/package.json +35 -0
  10. package/template/angular-confetti/src/app/app.component.css +47 -0
  11. package/template/angular-confetti/src/app/app.component.html +11 -0
  12. package/template/angular-confetti/src/app/app.component.ts +44 -0
  13. package/template/angular-fireworks/package.json +35 -0
  14. package/template/angular-fireworks/src/app/app.component.css +47 -0
  15. package/template/angular-fireworks/src/app/app.component.html +11 -0
  16. package/template/angular-fireworks/src/app/app.component.ts +44 -0
  17. package/template/astro/package.json +21 -0
  18. package/template/astro/src/pages/index.astro +77 -0
  19. package/template/ember/app/templates/application.hbs +26 -0
  20. package/template/ember/package.json +41 -0
  21. package/template/inferno/package.json +23 -0
  22. package/template/inferno/src/App.css +54 -0
  23. package/template/inferno/src/App.tsx +69 -0
  24. package/template/jquery/package.json +21 -0
  25. package/template/jquery/src/main.ts +49 -0
  26. package/template/jquery/src/style.css +54 -0
  27. package/template/lit/package.json +21 -0
  28. package/template/lit/src/my-app.ts +68 -0
  29. package/template/nextjs/package.json +24 -0
  30. package/template/nextjs/src/app/page.tsx +59 -0
  31. package/template/nuxt2/package.json +16 -0
  32. package/template/nuxt2/pages/index.vue +72 -0
  33. package/template/nuxt3/app.vue +65 -0
  34. package/template/nuxt3/package.json +20 -0
  35. package/template/nuxt4/app.vue +65 -0
  36. package/template/nuxt4/package.json +20 -0
  37. package/template/preact/package.json +22 -0
  38. package/template/preact/src/App.css +54 -0
  39. package/template/preact/src/App.tsx +62 -0
  40. package/template/qwik/package.json +21 -0
  41. package/template/qwik/src/App.tsx +61 -0
  42. package/template/react/package.json +19 -0
  43. package/template/react/src/App.css +54 -0
  44. package/template/react/src/App.tsx +60 -0
  45. package/template/riot/package.json +23 -0
  46. package/template/riot/src/app.riot +111 -0
  47. package/template/solid/package.json +18 -0
  48. package/template/solid/src/App.tsx +66 -0
  49. package/template/solid/src/index.css +54 -0
  50. package/template/solid/src/main.tsx +9 -0
  51. package/template/stencil/package.json +19 -0
  52. package/template/stencil/src/components/app-home/app-home.tsx +73 -0
  53. package/template/svelte/package.json +20 -0
  54. package/template/svelte/src/App.svelte +119 -0
  55. package/template/svelte/src/main.ts +6 -0
  56. package/template/vanilla/LICENSE +21 -0
  57. package/template/vanilla/package.json +1 -1
  58. package/template/vue2/package.json +23 -0
  59. package/template/vue2/src/App.vue +121 -0
  60. package/template/vue3/package.json +19 -0
  61. package/template/vue3/src/App.vue +110 -0
  62. package/template/vue3/src/main.ts +9 -0
  63. package/template/webcomponents/package.json +20 -0
  64. package/template/webcomponents/src/main.ts +48 -0
  65. package/template/webcomponents/src/style.css +54 -0
@@ -0,0 +1,73 @@
1
+ import { Component, State, h, type JSX } from "@stencil/core";
2
+ import { confetti } from "@tsparticles/confetti";
3
+ import type { Engine } from "@tsparticles/engine";
4
+
5
+ function randomInRange(min: number, max: number): number {
6
+ return Math.random() * (max - min) + min;
7
+ }
8
+
9
+ @Component({
10
+ tag: "app-home",
11
+ styleUrl: "app-home.css",
12
+ shadow: true,
13
+ })
14
+ export class AppHome {
15
+ @State()
16
+ private mode = "cannon";
17
+
18
+ private async particlesInit(engine: Engine): Promise<void> {}
19
+
20
+ private fireConfetti(): void {
21
+ switch (this.mode) {
22
+ case "cannon":
23
+ confetti({ particleCount: 100, spread: 70, origin: { y: 0.6 } });
24
+ break;
25
+ case "waterfall": {
26
+ const duration = 3000;
27
+ const end = Date.now() + duration;
28
+ const interval = setInterval(() => {
29
+ if (Date.now() > end) {
30
+ clearInterval(interval);
31
+ return;
32
+ }
33
+ confetti({ particleCount: 10, angle: 60, spread: 55, origin: { x: 0, y: 0.6 } });
34
+ confetti({ particleCount: 10, angle: 120, spread: 55, origin: { x: 1, y: 0.6 } });
35
+ }, 100);
36
+ break;
37
+ }
38
+ case "random":
39
+ confetti({
40
+ angle: randomInRange(55, 125),
41
+ spread: randomInRange(50, 70),
42
+ particleCount: randomInRange(50, 100),
43
+ origin: { y: 0.6 },
44
+ });
45
+ break;
46
+ }
47
+ }
48
+
49
+ private handleModeChange(e: Event): void {
50
+ this.mode = (e.target as HTMLSelectElement).value;
51
+ }
52
+
53
+ render(): JSX.Element {
54
+ return (
55
+ <div id="app">
56
+ <h1>Confetti!</h1>
57
+ <div class="controls">
58
+ <button onClick={this.fireConfetti.bind(this)}>Fire Confetti</button>
59
+ <select value={this.mode} onChange={this.handleModeChange.bind(this)}>
60
+ <option value="cannon">Cannon</option>
61
+ <option value="waterfall">Waterfall</option>
62
+ <option value="random">Random</option>
63
+ </select>
64
+ </div>
65
+ <stencil-particles
66
+ container-id="tsparticles"
67
+ init={this.particlesInit.bind(this)}
68
+ options={{}}
69
+ />
70
+ </div>
71
+ );
72
+ }
73
+ }
@@ -0,0 +1,20 @@
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/svelte": "^4.1.3"
13
+ },
14
+ "devDependencies": {
15
+ "@sveltejs/vite-plugin-svelte": "^5.0.3",
16
+ "svelte": "^5.55.7",
17
+ "svelte-check": "^3.7.1",
18
+ "tslib": "^2.8.1"
19
+ }
20
+ }
@@ -0,0 +1,119 @@
1
+ <script lang="ts">
2
+ import { confetti } from "@tsparticles/confetti";
3
+
4
+ let mode = $state("cannon");
5
+
6
+ function randomInRange(min: number, max: number): number {
7
+ return Math.random() * (max - min) + min;
8
+ }
9
+
10
+ function fire(): void {
11
+ switch (mode) {
12
+ case "cannon":
13
+ confetti({ particleCount: 100, spread: 70, origin: { y: 0.6 } });
14
+ break;
15
+
16
+ case "waterfall": {
17
+ const duration = 3000;
18
+ const end = Date.now() + duration;
19
+
20
+ const interval = setInterval(() => {
21
+ if (Date.now() > end) {
22
+ clearInterval(interval);
23
+ return;
24
+ }
25
+
26
+ confetti({
27
+ particleCount: 10,
28
+ angle: 60,
29
+ spread: 55,
30
+ origin: { x: 0, y: 0.6 },
31
+ });
32
+ confetti({
33
+ particleCount: 10,
34
+ angle: 120,
35
+ spread: 55,
36
+ origin: { x: 1, y: 0.6 },
37
+ });
38
+ }, 100);
39
+ break;
40
+ }
41
+
42
+ case "random":
43
+ confetti({
44
+ angle: randomInRange(55, 125),
45
+ spread: randomInRange(50, 70),
46
+ particleCount: randomInRange(50, 100),
47
+ origin: { y: 0.6 },
48
+ });
49
+ break;
50
+ }
51
+ }
52
+ </script>
53
+
54
+ <h1>tsParticles Confetti</h1>
55
+ <div class="controls">
56
+ <select bind:value={mode}>
57
+ <option value="cannon">Cannon</option>
58
+ <option value="waterfall">Waterfall</option>
59
+ <option value="random">Random</option>
60
+ </select>
61
+ <button onclick={fire}>Fire!</button>
62
+ </div>
63
+
64
+ <style>
65
+ :global(body) {
66
+ margin: 0;
67
+ overflow: hidden;
68
+ background: #1a1a2e;
69
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
70
+ }
71
+
72
+ :global(#app) {
73
+ position: absolute;
74
+ top: 50%;
75
+ left: 50%;
76
+ transform: translate(-50%, -50%);
77
+ z-index: 10;
78
+ text-align: center;
79
+ }
80
+
81
+ h1 {
82
+ font-size: 3.2em;
83
+ color: #fff;
84
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
85
+ }
86
+
87
+ .controls {
88
+ display: flex;
89
+ gap: 1rem;
90
+ justify-content: center;
91
+ align-items: center;
92
+ margin-top: 2rem;
93
+ }
94
+
95
+ button {
96
+ padding: 0.8em 2em;
97
+ font-size: 1.1em;
98
+ border: none;
99
+ border-radius: 8px;
100
+ background: #e94560;
101
+ color: #fff;
102
+ cursor: pointer;
103
+ transition: background 0.2s;
104
+ }
105
+
106
+ button:hover {
107
+ background: #ff6b81;
108
+ }
109
+
110
+ select {
111
+ padding: 0.8em 1em;
112
+ font-size: 1em;
113
+ border-radius: 8px;
114
+ border: 1px solid #444;
115
+ background: #16213e;
116
+ color: #fff;
117
+ cursor: pointer;
118
+ }
119
+ </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",
@@ -0,0 +1,23 @@
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
+ "vue": "^2.7.16",
13
+ "@tsparticles/vue2": "^4.1.3",
14
+ "@tsparticles/confetti": "^4.1.3",
15
+ "@tsparticles/engine": "^4.1.3"
16
+ },
17
+ "devDependencies": {
18
+ "@vitejs/plugin-vue2": "^2.0.1",
19
+ "vue-template-compiler": "^2.7.16",
20
+ "typescript": "^5.7.2",
21
+ "vite": "^6.0.0"
22
+ }
23
+ }
@@ -0,0 +1,121 @@
1
+ <template>
2
+ <div>
3
+ <div id="app">
4
+ <h1>Confetti!</h1>
5
+ <div class="controls">
6
+ <button @click="fireConfetti">Fire Confetti</button>
7
+ <select v-model="mode">
8
+ <option value="cannon">Cannon</option>
9
+ <option value="waterfall">Waterfall</option>
10
+ <option value="random">Random</option>
11
+ </select>
12
+ </div>
13
+ </div>
14
+ <vue-particles id="tsparticles" :options="options" />
15
+ </div>
16
+ </template>
17
+
18
+ <script lang="ts">
19
+ import Vue from "vue";
20
+ import { confetti } from "@tsparticles/confetti";
21
+
22
+ function randomInRange(min: number, max: number): number {
23
+ return Math.random() * (max - min) + min;
24
+ }
25
+
26
+ export default Vue.extend({
27
+ data() {
28
+ return {
29
+ mode: "cannon",
30
+ options: {},
31
+ };
32
+ },
33
+ methods: {
34
+ fireConfetti(): void {
35
+ switch (this.mode) {
36
+ case "cannon":
37
+ confetti({ particleCount: 100, spread: 70, origin: { y: 0.6 } });
38
+ break;
39
+ case "waterfall": {
40
+ const duration = 3000;
41
+ const end = Date.now() + duration;
42
+ const interval = setInterval(() => {
43
+ if (Date.now() > end) {
44
+ clearInterval(interval);
45
+ return;
46
+ }
47
+ confetti({ particleCount: 10, angle: 60, spread: 55, origin: { x: 0, y: 0.6 } });
48
+ confetti({ particleCount: 10, angle: 120, spread: 55, origin: { x: 1, y: 0.6 } });
49
+ }, 100);
50
+ break;
51
+ }
52
+ case "random":
53
+ confetti({
54
+ angle: randomInRange(55, 125),
55
+ spread: randomInRange(50, 70),
56
+ particleCount: randomInRange(50, 100),
57
+ origin: { y: 0.6 },
58
+ });
59
+ break;
60
+ }
61
+ },
62
+ },
63
+ });
64
+ </script>
65
+
66
+ <style>
67
+ body {
68
+ margin: 0;
69
+ overflow: hidden;
70
+ background: #1a1a2e;
71
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
72
+ }
73
+
74
+ #app {
75
+ position: absolute;
76
+ top: 50%;
77
+ left: 50%;
78
+ transform: translate(-50%, -50%);
79
+ z-index: 10;
80
+ text-align: center;
81
+ }
82
+
83
+ h1 {
84
+ font-size: 3.2em;
85
+ color: #fff;
86
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
87
+ }
88
+
89
+ .controls {
90
+ display: flex;
91
+ gap: 1rem;
92
+ justify-content: center;
93
+ align-items: center;
94
+ margin-top: 2rem;
95
+ }
96
+
97
+ button {
98
+ padding: 0.8em 2em;
99
+ font-size: 1.1em;
100
+ border: none;
101
+ border-radius: 8px;
102
+ background: #e94560;
103
+ color: #fff;
104
+ cursor: pointer;
105
+ transition: background 0.2s;
106
+ }
107
+
108
+ button:hover {
109
+ background: #ff6b81;
110
+ }
111
+
112
+ select {
113
+ padding: 0.8em 1em;
114
+ font-size: 1em;
115
+ border-radius: 8px;
116
+ border: 1px solid #444;
117
+ background: #16213e;
118
+ color: #fff;
119
+ cursor: pointer;
120
+ }
121
+ </style>
@@ -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": "vue-tsc --noEmit && vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "vue": "^3.5.32",
13
+ "@tsparticles/vue3": "^4.1.3"
14
+ },
15
+ "devDependencies": {
16
+ "@vitejs/plugin-vue": "^6.0.5",
17
+ "vue-tsc": "^3.2.6"
18
+ }
19
+ }
@@ -0,0 +1,110 @@
1
+ <script setup lang="ts">
2
+ import { ref } from "vue";
3
+ import { confetti } from "@tsparticles/confetti";
4
+
5
+ function randomInRange(min: number, max: number): number {
6
+ return Math.random() * (max - min) + min;
7
+ }
8
+
9
+ const mode = ref("cannon");
10
+
11
+ function fireConfetti() {
12
+ switch (mode.value) {
13
+ case "cannon":
14
+ confetti({ particleCount: 100, spread: 70, origin: { y: 0.6 } });
15
+ break;
16
+ case "waterfall": {
17
+ const duration = 3000;
18
+ const end = Date.now() + duration;
19
+ const interval = setInterval(() => {
20
+ if (Date.now() > end) {
21
+ clearInterval(interval);
22
+ return;
23
+ }
24
+ confetti({ particleCount: 10, angle: 60, spread: 55, origin: { x: 0, y: 0.6 } });
25
+ confetti({ particleCount: 10, angle: 120, spread: 55, origin: { x: 1, y: 0.6 } });
26
+ }, 100);
27
+ break;
28
+ }
29
+ case "random":
30
+ confetti({
31
+ angle: randomInRange(55, 125),
32
+ spread: randomInRange(50, 70),
33
+ particleCount: randomInRange(50, 100),
34
+ origin: { y: 0.6 },
35
+ });
36
+ break;
37
+ }
38
+ }
39
+ </script>
40
+
41
+ <template>
42
+ <div id="app">
43
+ <h1>Confetti!</h1>
44
+ <div class="controls">
45
+ <button @click="fireConfetti">Fire Confetti</button>
46
+ <select v-model="mode">
47
+ <option value="cannon">Cannon</option>
48
+ <option value="waterfall">Waterfall</option>
49
+ <option value="random">Random</option>
50
+ </select>
51
+ </div>
52
+ </div>
53
+ </template>
54
+
55
+ <style>
56
+ body {
57
+ margin: 0;
58
+ overflow: hidden;
59
+ background: #1a1a2e;
60
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
61
+ }
62
+
63
+ #app {
64
+ position: absolute;
65
+ top: 50%;
66
+ left: 50%;
67
+ transform: translate(-50%, -50%);
68
+ z-index: 10;
69
+ text-align: center;
70
+ }
71
+
72
+ h1 {
73
+ font-size: 3.2em;
74
+ color: #fff;
75
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
76
+ }
77
+
78
+ .controls {
79
+ display: flex;
80
+ gap: 1rem;
81
+ justify-content: center;
82
+ align-items: center;
83
+ margin-top: 2rem;
84
+ }
85
+
86
+ button {
87
+ padding: 0.8em 2em;
88
+ font-size: 1.1em;
89
+ border: none;
90
+ border-radius: 8px;
91
+ background: #e94560;
92
+ color: #fff;
93
+ cursor: pointer;
94
+ transition: background 0.2s;
95
+ }
96
+
97
+ button:hover {
98
+ background: #ff6b81;
99
+ }
100
+
101
+ select {
102
+ padding: 0.8em 1em;
103
+ font-size: 1em;
104
+ border-radius: 8px;
105
+ border: 1px solid #444;
106
+ background: #16213e;
107
+ color: #fff;
108
+ cursor: pointer;
109
+ }
110
+ </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,20 @@
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/webcomponents": "^4.1.3",
13
+ "@tsparticles/confetti": "^4.1.3",
14
+ "@tsparticles/engine": "^4.1.3"
15
+ },
16
+ "devDependencies": {
17
+ "typescript": "^5.7.2",
18
+ "vite": "^6.0.0"
19
+ }
20
+ }
@@ -0,0 +1,48 @@
1
+ import "./style.css";
2
+ import { defineParticlesElement, initParticlesEngine } from "@tsparticles/webcomponents";
3
+ import { confetti } from "@tsparticles/confetti";
4
+
5
+ void initParticlesEngine(() => Promise.resolve());
6
+
7
+ defineParticlesElement();
8
+
9
+ function randomInRange(min: number, max: number): number {
10
+ return Math.random() * (max - min) + min;
11
+ }
12
+
13
+ const fireBtn = document.getElementById("fireBtn") as HTMLButtonElement;
14
+ const modeSelect = document.getElementById("modeSelect") as HTMLSelectElement;
15
+
16
+ fireBtn.addEventListener("click", () => {
17
+ const mode = modeSelect.value;
18
+
19
+ switch (mode) {
20
+ case "cannon":
21
+ confetti({ particleCount: 100, spread: 70, origin: { y: 0.6 } });
22
+ break;
23
+
24
+ case "waterfall": {
25
+ const duration = 3000;
26
+ const end = Date.now() + duration;
27
+
28
+ const interval = setInterval(() => {
29
+ if (Date.now() > end) {
30
+ clearInterval(interval);
31
+ return;
32
+ }
33
+ confetti({ particleCount: 10, angle: 60, spread: 55, origin: { x: 0, y: 0.6 } });
34
+ confetti({ particleCount: 10, angle: 120, spread: 55, origin: { x: 1, y: 0.6 } });
35
+ }, 100);
36
+ break;
37
+ }
38
+
39
+ case "random":
40
+ confetti({
41
+ angle: randomInRange(55, 125),
42
+ spread: randomInRange(50, 70),
43
+ particleCount: randomInRange(50, 100),
44
+ origin: { y: 0.6 },
45
+ });
46
+ break;
47
+ }
48
+ });
@@ -0,0 +1,54 @@
1
+ body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ background: #1a1a2e;
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
+ display: flex;
25
+ gap: 1rem;
26
+ justify-content: center;
27
+ align-items: center;
28
+ margin-top: 2rem;
29
+ }
30
+
31
+ button {
32
+ padding: 0.8em 2em;
33
+ font-size: 1.1em;
34
+ border: none;
35
+ border-radius: 8px;
36
+ background: #e94560;
37
+ color: #fff;
38
+ cursor: pointer;
39
+ transition: background 0.2s;
40
+ }
41
+
42
+ button:hover {
43
+ background: #ff6b81;
44
+ }
45
+
46
+ select {
47
+ padding: 0.8em 1em;
48
+ font-size: 1em;
49
+ border-radius: 8px;
50
+ border: 1px solid #444;
51
+ background: #16213e;
52
+ color: #fff;
53
+ cursor: pointer;
54
+ }