g360-cli 1.0.0 → 1.1.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/README.md +626 -28
- package/package.json +7 -2
- package/src/assets/config/g360-skills.json +172 -0
- package/src/assets/templates/lit-web/index.html +20 -0
- package/src/assets/templates/lit-web/package.json +19 -0
- package/src/assets/templates/lit-web/src/components/app-root.js +73 -0
- package/src/assets/templates/lit-web/src/core/skill.json +18 -0
- package/src/assets/templates/lit-web/src/index.js +8 -0
- package/src/assets/templates/lit-web/src/styles/main.css +91 -0
- package/src/assets/templates/lit-web/vite.config.js +10 -0
- package/src/assets/templates/solid-web/index.html +21 -0
- package/src/assets/templates/solid-web/package.json +20 -0
- package/src/assets/templates/solid-web/src/components/App.jsx +21 -0
- package/src/assets/templates/solid-web/src/core/skill.json +18 -0
- package/src/assets/templates/solid-web/src/index.jsx +11 -0
- package/src/assets/templates/solid-web/src/styles/main.css +115 -0
- package/src/assets/templates/solid-web/vite.config.js +12 -0
- package/src/assets/templates/svelte-web/package.json +21 -0
- package/src/assets/templates/svelte-web/src/app.css +77 -0
- package/src/assets/templates/svelte-web/src/app.html +19 -0
- package/src/assets/templates/svelte-web/src/core/skill.json +18 -0
- package/src/assets/templates/svelte-web/src/routes/+page.svelte +38 -0
- package/src/assets/templates/svelte-web/svelte.config.js +16 -0
- package/src/assets/templates/web-pwa/index.html +19 -21
- package/src/assets/templates/web-pwa/package.json +18 -2
- package/src/cli.js +26 -1
- package/src/commands/clean.js +288 -30
- package/src/commands/convert.js +388 -0
- package/src/commands/init.js +2 -1
- package/src/commands/set-skill.js +84 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skills": [
|
|
3
|
+
{
|
|
4
|
+
"name": "corporativo",
|
|
5
|
+
"description": "Proyectos para clientes - estilo corporativo conservador",
|
|
6
|
+
"device": "pc",
|
|
7
|
+
"colors": {
|
|
8
|
+
"bg": "#0b1220",
|
|
9
|
+
"surface": "#151e2e",
|
|
10
|
+
"accent": "#00796B",
|
|
11
|
+
"text": "#f0f4f8",
|
|
12
|
+
"muted": "#94a3b8"
|
|
13
|
+
},
|
|
14
|
+
"effects": {
|
|
15
|
+
"glassmorphism": true,
|
|
16
|
+
"blur": "16px",
|
|
17
|
+
"rounded": "16px"
|
|
18
|
+
},
|
|
19
|
+
"signature": {
|
|
20
|
+
"mode": "powered",
|
|
21
|
+
"text": "powered by G360"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "corporativo-movil",
|
|
26
|
+
"description": "Proyectos para clientes - estilo corporativo - enfoque móvil",
|
|
27
|
+
"device": "movil",
|
|
28
|
+
"colors": {
|
|
29
|
+
"bg": "#0b1220",
|
|
30
|
+
"surface": "#151e2e",
|
|
31
|
+
"accent": "#00796B",
|
|
32
|
+
"text": "#f0f4f8",
|
|
33
|
+
"muted": "#94a3b8"
|
|
34
|
+
},
|
|
35
|
+
"effects": {
|
|
36
|
+
"glassmorphism": true,
|
|
37
|
+
"blur": "16px",
|
|
38
|
+
"rounded": "16px"
|
|
39
|
+
},
|
|
40
|
+
"signature": {
|
|
41
|
+
"mode": "powered",
|
|
42
|
+
"text": "powered by G360"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "corporativo-g360",
|
|
47
|
+
"description": "Proyectos para clientes con colores G360 vibrantes",
|
|
48
|
+
"device": "pc",
|
|
49
|
+
"colors": {
|
|
50
|
+
"bg": "#0b1220",
|
|
51
|
+
"surface": "#151e2e",
|
|
52
|
+
"accent": "#00d084",
|
|
53
|
+
"text": "#f0f4f8",
|
|
54
|
+
"muted": "#94a3b8"
|
|
55
|
+
},
|
|
56
|
+
"effects": {
|
|
57
|
+
"glassmorphism": true,
|
|
58
|
+
"blur": "16px",
|
|
59
|
+
"rounded": "16px"
|
|
60
|
+
},
|
|
61
|
+
"signature": {
|
|
62
|
+
"mode": "powered",
|
|
63
|
+
"text": "powered by G360"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "corporativo-g360-movil",
|
|
68
|
+
"description": "Proyectos para clientes con colores G360 - enfoque móvil",
|
|
69
|
+
"device": "movil",
|
|
70
|
+
"colors": {
|
|
71
|
+
"bg": "#0b1220",
|
|
72
|
+
"surface": "#151e2e",
|
|
73
|
+
"accent": "#00d084",
|
|
74
|
+
"text": "#f0f4f8",
|
|
75
|
+
"muted": "#94a3b8"
|
|
76
|
+
},
|
|
77
|
+
"effects": {
|
|
78
|
+
"glassmorphism": true,
|
|
79
|
+
"blur": "16px",
|
|
80
|
+
"rounded": "16px"
|
|
81
|
+
},
|
|
82
|
+
"signature": {
|
|
83
|
+
"mode": "powered",
|
|
84
|
+
"text": "powered by G360"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "moderno",
|
|
89
|
+
"description": "Herramientas propias G360 - estilo innovador PC",
|
|
90
|
+
"device": "pc",
|
|
91
|
+
"colors": {
|
|
92
|
+
"bg": "#0b1220",
|
|
93
|
+
"surface": "#151e2e",
|
|
94
|
+
"accent": "#00d084",
|
|
95
|
+
"text": "#f0f4f8",
|
|
96
|
+
"muted": "#94a3b8"
|
|
97
|
+
},
|
|
98
|
+
"effects": {
|
|
99
|
+
"glassmorphism": true,
|
|
100
|
+
"blur": "16px",
|
|
101
|
+
"rounded": "16px"
|
|
102
|
+
},
|
|
103
|
+
"signature": {
|
|
104
|
+
"mode": "own",
|
|
105
|
+
"text": "G360 by ccusi"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "moderno-movil",
|
|
110
|
+
"description": "Herramientas propias G360 - estilo innovador móvil",
|
|
111
|
+
"device": "movil",
|
|
112
|
+
"colors": {
|
|
113
|
+
"bg": "#0b1220",
|
|
114
|
+
"surface": "#151e2e",
|
|
115
|
+
"accent": "#00d084",
|
|
116
|
+
"text": "#f0f4f8",
|
|
117
|
+
"muted": "#94a3b8"
|
|
118
|
+
},
|
|
119
|
+
"effects": {
|
|
120
|
+
"glassmorphism": true,
|
|
121
|
+
"blur": "16px",
|
|
122
|
+
"rounded": "16px"
|
|
123
|
+
},
|
|
124
|
+
"signature": {
|
|
125
|
+
"mode": "own",
|
|
126
|
+
"text": "G360 by ccusi"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "minimalista",
|
|
131
|
+
"description": "Proyectos minimalistas - scripts, CLI, Python",
|
|
132
|
+
"device": "both",
|
|
133
|
+
"colors": {
|
|
134
|
+
"bg": "#ffffff",
|
|
135
|
+
"surface": "#f5f5f5",
|
|
136
|
+
"accent": "#2563eb",
|
|
137
|
+
"text": "#1f2937",
|
|
138
|
+
"muted": "#6b7280"
|
|
139
|
+
},
|
|
140
|
+
"effects": {
|
|
141
|
+
"glassmorphism": false,
|
|
142
|
+
"blur": "0px",
|
|
143
|
+
"rounded": "8px"
|
|
144
|
+
},
|
|
145
|
+
"signature": {
|
|
146
|
+
"mode": "optional",
|
|
147
|
+
"text": "by @carloscus"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "custom",
|
|
152
|
+
"description": "Configuración personalizada - colores ajustables",
|
|
153
|
+
"device": "both",
|
|
154
|
+
"colors": {
|
|
155
|
+
"bg": "#0b1220",
|
|
156
|
+
"surface": "#151e2e",
|
|
157
|
+
"accent": "#00d084",
|
|
158
|
+
"text": "#f0f4f8",
|
|
159
|
+
"muted": "#94a3b8"
|
|
160
|
+
},
|
|
161
|
+
"effects": {
|
|
162
|
+
"glassmorphism": false,
|
|
163
|
+
"blur": "0px",
|
|
164
|
+
"rounded": "8px"
|
|
165
|
+
},
|
|
166
|
+
"signature": {
|
|
167
|
+
"mode": "custom",
|
|
168
|
+
"text": "custom"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="es">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="author" content="@carloscus" />
|
|
7
|
+
<meta name="description" content="Proyecto G360 desarrollado con Lit Web Components" />
|
|
8
|
+
<meta name="theme-color" content="#00d084" />
|
|
9
|
+
<title>Mi Proyecto G360</title>
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
11
|
+
<link rel="stylesheet" href="/src/styles/main.css" />
|
|
12
|
+
<script type="module" src="/src/index.js"></script>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<app-root></app-root>
|
|
16
|
+
|
|
17
|
+
<!-- Firma G360 -->
|
|
18
|
+
<g360-signature mode="powered" style="position: fixed; bottom: 16px; right: 16px; z-index: 100;"></g360-signature>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mi-lit-proyecto",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Proyecto G360 creado con Lit Web Components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"lit": "^3.1.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"vite": "^5.0.0"
|
|
16
|
+
},
|
|
17
|
+
"author": "@carloscus",
|
|
18
|
+
"license": "MIT"
|
|
19
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file app-root.js
|
|
3
|
+
* @description Componente raíz principal de la aplicación
|
|
4
|
+
* @author @carloscus
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { LitElement, html, css } from 'lit';
|
|
9
|
+
|
|
10
|
+
export class AppRoot extends LitElement {
|
|
11
|
+
static properties = {
|
|
12
|
+
titulo: { type: String },
|
|
13
|
+
tema: { type: String },
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
static styles = css`
|
|
17
|
+
:host {
|
|
18
|
+
display: block;
|
|
19
|
+
min-height: 100vh;
|
|
20
|
+
--g360-bg: #0b1220;
|
|
21
|
+
--g360-surface: #151e2e;
|
|
22
|
+
--g360-accent: #00d084;
|
|
23
|
+
--g360-text: #f0f4f8;
|
|
24
|
+
--g360-muted: #94a3b8;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.container {
|
|
28
|
+
max-width: 480px;
|
|
29
|
+
margin: 0 auto;
|
|
30
|
+
padding: 16px;
|
|
31
|
+
min-height: 100vh;
|
|
32
|
+
background: var(--g360-bg);
|
|
33
|
+
color: var(--g360-text);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
header {
|
|
37
|
+
padding: 16px 0;
|
|
38
|
+
border-bottom: 1px solid var(--g360-surface);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
h1 {
|
|
42
|
+
margin: 0;
|
|
43
|
+
font-size: 24px;
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
color: var(--g360-accent);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
main {
|
|
49
|
+
padding: 24px 0;
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
this.titulo = 'Mi Proyecto G360';
|
|
56
|
+
this.tema = 'dark';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
render() {
|
|
60
|
+
return html`
|
|
61
|
+
<div class="container">
|
|
62
|
+
<header>
|
|
63
|
+
<h1>${this.titulo}</h1>
|
|
64
|
+
</header>
|
|
65
|
+
<main>
|
|
66
|
+
<slot></slot>
|
|
67
|
+
</main>
|
|
68
|
+
</div>
|
|
69
|
+
`;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
customElements.define('app-root', AppRoot);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill": "corporativo",
|
|
3
|
+
"device": "movil",
|
|
4
|
+
"template": "lit-web",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
7
|
+
"colors": {
|
|
8
|
+
"bg": "#0b1220",
|
|
9
|
+
"surface": "#151e2e",
|
|
10
|
+
"accent": "#00d084",
|
|
11
|
+
"text": "#f0f4f8",
|
|
12
|
+
"muted": "#94a3b8"
|
|
13
|
+
},
|
|
14
|
+
"signature": {
|
|
15
|
+
"mode": "powered",
|
|
16
|
+
"text": "powered by G360"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
* G360 Theme - Estilos principales
|
|
3
|
+
* Sistema de diseño para proyectos G360
|
|
4
|
+
* ============================================ */
|
|
5
|
+
|
|
6
|
+
/* === VARIABLES G360 === */
|
|
7
|
+
:root {
|
|
8
|
+
/* Colores G360 - Oscuro (Default) */
|
|
9
|
+
--g360-bg: #0b1220;
|
|
10
|
+
--g360-surface: #151e2e;
|
|
11
|
+
--g360-accent: #00d084;
|
|
12
|
+
--g360-accent-dark: #00796B;
|
|
13
|
+
--g360-text: #f0f4f8;
|
|
14
|
+
--g360-muted: #94a3b8;
|
|
15
|
+
--g360-border: rgba(255, 255, 255, 0.1);
|
|
16
|
+
|
|
17
|
+
/* Efectos */
|
|
18
|
+
--g360-glass: rgba(21, 30, 46, 0.75);
|
|
19
|
+
--g360-blur: 16px;
|
|
20
|
+
--g360-rounded: 16px;
|
|
21
|
+
|
|
22
|
+
/* Espaciado */
|
|
23
|
+
--g360-space-xs: 4px;
|
|
24
|
+
--g360-space-sm: 8px;
|
|
25
|
+
--g360-space-md: 16px;
|
|
26
|
+
--g360-space-lg: 24px;
|
|
27
|
+
--g360-space-xl: 32px;
|
|
28
|
+
|
|
29
|
+
/* Tipografía */
|
|
30
|
+
--g360-font: 'Consolas', 'Monaco', 'Courier New', monospace;
|
|
31
|
+
--g360-font-size: 14px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* === ESTILOS BASE === */
|
|
35
|
+
* {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
body {
|
|
42
|
+
font-family: var(--g360-font);
|
|
43
|
+
font-size: var(--g360-font-size);
|
|
44
|
+
background: var(--g360-bg);
|
|
45
|
+
color: var(--g360-text);
|
|
46
|
+
line-height: 1.5;
|
|
47
|
+
-webkit-font-smoothing: antialiased;
|
|
48
|
+
-moz-osx-font-smoothing: grayscale;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* === UTILIDADES === */
|
|
52
|
+
.g360-card {
|
|
53
|
+
background: var(--g360-surface);
|
|
54
|
+
border: 1px solid var(--g360-border);
|
|
55
|
+
border-radius: var(--g360-rounded);
|
|
56
|
+
padding: var(--g360-space-md);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.g360-glass {
|
|
60
|
+
background: var(--g360-glass);
|
|
61
|
+
backdrop-filter: blur(var(--g360-blur));
|
|
62
|
+
-webkit-backdrop-filter: blur(var(--g360-blur));
|
|
63
|
+
border: 1px solid var(--g360-border);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.g360-btn {
|
|
67
|
+
background: var(--g360-accent);
|
|
68
|
+
color: var(--g360-bg);
|
|
69
|
+
border: none;
|
|
70
|
+
border-radius: var(--g360-rounded);
|
|
71
|
+
padding: var(--g360-space-sm) var(--g360-space-md);
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
transition: all 0.2s ease;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.g360-btn:hover {
|
|
78
|
+
background: var(--g360-accent-dark);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* === MODO CLARO === */
|
|
82
|
+
@media (prefers-color-scheme: light) {
|
|
83
|
+
:root {
|
|
84
|
+
--g360-bg: #ffffff;
|
|
85
|
+
--g360-surface: #f5f5f5;
|
|
86
|
+
--g360-text: #1f2937;
|
|
87
|
+
--g360-muted: #6b7280;
|
|
88
|
+
--g360-border: rgba(0, 0, 0, 0.1);
|
|
89
|
+
--g360-glass: rgba(255, 255, 255, 0.75);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="es">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="author" content="@carloscus" />
|
|
7
|
+
<meta name="description" content="Proyecto G360 desarrollado con SolidJS" />
|
|
8
|
+
<meta name="theme-color" content="#00d084" />
|
|
9
|
+
<title>Mi Proyecto G360</title>
|
|
10
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
11
|
+
<link rel="stylesheet" href="/src/styles/main.css" />
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div id="root"></div>
|
|
15
|
+
|
|
16
|
+
<!-- Firma G360 -->
|
|
17
|
+
<g360-signature mode="powered" style="position: fixed; bottom: 16px; right: 16px; z-index: 100;"></g360-signature>
|
|
18
|
+
|
|
19
|
+
<script type="module" src="/src/index.jsx"></script>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mi-solid-proyecto",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Proyecto G360 creado con SolidJS",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"solid-js": "^1.8.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"vite": "^5.0.0",
|
|
16
|
+
"vite-plugin-solid": "^2.8.0"
|
|
17
|
+
},
|
|
18
|
+
"author": "@carloscus",
|
|
19
|
+
"license": "MIT"
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file App.jsx
|
|
3
|
+
* @description Componente raíz principal de la aplicación
|
|
4
|
+
* @author @carloscus
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export default function App() {
|
|
9
|
+
const titulo = 'Mi Proyecto G360';
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<div class="container">
|
|
13
|
+
<header>
|
|
14
|
+
<h1>{titulo}</h1>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<slot />
|
|
18
|
+
</main>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill": "corporativo",
|
|
3
|
+
"device": "movil",
|
|
4
|
+
"template": "solid-web",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
7
|
+
"colors": {
|
|
8
|
+
"bg": "#0b1220",
|
|
9
|
+
"surface": "#151e2e",
|
|
10
|
+
"accent": "#00d084",
|
|
11
|
+
"text": "#f0f4f8",
|
|
12
|
+
"muted": "#94a3b8"
|
|
13
|
+
},
|
|
14
|
+
"signature": {
|
|
15
|
+
"mode": "powered",
|
|
16
|
+
"text": "powered by G360"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.jsx
|
|
3
|
+
* @description Punto de entrada de la aplicación SolidJS
|
|
4
|
+
* @author @carloscus
|
|
5
|
+
* @version 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { render } from 'solid-js/web';
|
|
9
|
+
import App from './components/App';
|
|
10
|
+
|
|
11
|
+
render(() => <App />, document.getElementById('root'));
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
* G360 Theme - Estilos principales
|
|
3
|
+
* Sistema de diseño para proyectos G360
|
|
4
|
+
* ============================================ */
|
|
5
|
+
|
|
6
|
+
/* === VARIABLES G360 === */
|
|
7
|
+
:root {
|
|
8
|
+
/* Colores G360 - Oscuro (Default) */
|
|
9
|
+
--g360-bg: #0b1220;
|
|
10
|
+
--g360-surface: #151e2e;
|
|
11
|
+
--g360-accent: #00d084;
|
|
12
|
+
--g360-accent-dark: #00796B;
|
|
13
|
+
--g360-text: #f0f4f8;
|
|
14
|
+
--g360-muted: #94a3b8;
|
|
15
|
+
--g360-border: rgba(255, 255, 255, 0.1);
|
|
16
|
+
|
|
17
|
+
/* Efectos */
|
|
18
|
+
--g360-glass: rgba(21, 30, 46, 0.75);
|
|
19
|
+
--g360-blur: 16px;
|
|
20
|
+
--g360-rounded: 16px;
|
|
21
|
+
|
|
22
|
+
/* Espaciado */
|
|
23
|
+
--g360-space-xs: 4px;
|
|
24
|
+
--g360-space-sm: 8px;
|
|
25
|
+
--g360-space-md: 16px;
|
|
26
|
+
--g360-space-lg: 24px;
|
|
27
|
+
--g360-space-xl: 32px;
|
|
28
|
+
|
|
29
|
+
/* Tipografía */
|
|
30
|
+
--g360-font: 'Consolas', 'Monaco', 'Courier New', monospace;
|
|
31
|
+
--g360-font-size: 14px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* === ESTILOS BASE === */
|
|
35
|
+
* {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
body {
|
|
42
|
+
font-family: var(--g360-font);
|
|
43
|
+
font-size: var(--g360-font-size);
|
|
44
|
+
background: var(--g360-bg);
|
|
45
|
+
color: var(--g360-text);
|
|
46
|
+
line-height: 1.5;
|
|
47
|
+
-webkit-font-smoothing: antialiased;
|
|
48
|
+
-moz-osx-font-smoothing: grayscale;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.container {
|
|
52
|
+
max-width: 480px;
|
|
53
|
+
margin: 0 auto;
|
|
54
|
+
padding: 16px;
|
|
55
|
+
min-height: 100vh;
|
|
56
|
+
background: var(--g360-bg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
header {
|
|
60
|
+
padding: 16px 0;
|
|
61
|
+
border-bottom: 1px solid var(--g360-surface);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
h1 {
|
|
65
|
+
margin: 0;
|
|
66
|
+
font-size: 24px;
|
|
67
|
+
font-weight: 700;
|
|
68
|
+
color: var(--g360-accent);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
main {
|
|
72
|
+
padding: 24px 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* === UTILIDADES === */
|
|
76
|
+
.g360-card {
|
|
77
|
+
background: var(--g360-surface);
|
|
78
|
+
border: 1px solid var(--g360-border);
|
|
79
|
+
border-radius: var(--g360-rounded);
|
|
80
|
+
padding: var(--g360-space-md);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.g360-glass {
|
|
84
|
+
background: var(--g360-glass);
|
|
85
|
+
backdrop-filter: blur(var(--g360-blur));
|
|
86
|
+
-webkit-backdrop-filter: blur(var(--g360-blur));
|
|
87
|
+
border: 1px solid var(--g360-border);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.g360-btn {
|
|
91
|
+
background: var(--g360-accent);
|
|
92
|
+
color: var(--g360-bg);
|
|
93
|
+
border: none;
|
|
94
|
+
border-radius: var(--g360-rounded);
|
|
95
|
+
padding: var(--g360-space-sm) var(--g360-space-md);
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
transition: all 0.2s ease;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.g360-btn:hover {
|
|
102
|
+
background: var(--g360-accent-dark);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* === MODO CLARO === */
|
|
106
|
+
@media (prefers-color-scheme: light) {
|
|
107
|
+
:root {
|
|
108
|
+
--g360-bg: #ffffff;
|
|
109
|
+
--g360-surface: #f5f5f5;
|
|
110
|
+
--g360-text: #1f2937;
|
|
111
|
+
--g360-muted: #6b7280;
|
|
112
|
+
--g360-border: rgba(0, 0, 0, 0.1);
|
|
113
|
+
--g360-glass: rgba(255, 255, 255, 0.75);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mi-svelte-proyecto",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Proyecto G360 creado con SvelteKit",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite dev",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@sveltejs/kit": "^2.0.0",
|
|
13
|
+
"svelte": "^4.0.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@sveltejs/adapter-static": "^3.0.0",
|
|
17
|
+
"vite": "^5.0.0"
|
|
18
|
+
},
|
|
19
|
+
"author": "@carloscus",
|
|
20
|
+
"license": "MIT"
|
|
21
|
+
}
|