create-origo-app 0.1.0 → 0.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 +315 -0
- package/dist/base/backend/express/.env +3 -0
- package/dist/base/backend/express/javascript/src/app.js +25 -0
- package/dist/base/backend/express/javascript/src/config/env.js +10 -0
- package/dist/base/backend/express/javascript/src/routes/index.js +18 -0
- package/dist/base/backend/express/javascript/src/server.js +28 -0
- package/dist/base/backend/express/manifest.js +61 -0
- package/dist/base/backend/express/typescript/src/app.ts +25 -0
- package/dist/base/backend/express/typescript/src/config/env.ts +10 -0
- package/dist/base/backend/express/typescript/src/routes/index.ts +18 -0
- package/dist/base/backend/express/typescript/src/server.ts +28 -0
- package/dist/base/backend/express/typescript/tsconfig.server.json +16 -0
- package/dist/base/backend/fastify/javascript/src/app.js +16 -0
- package/dist/base/backend/fastify/javascript/src/routes/index.js +18 -0
- package/dist/base/backend/fastify/javascript/src/server.js +27 -0
- package/dist/base/backend/fastify/manifest.js +61 -0
- package/dist/base/backend/fastify/typescript/src/app.ts +16 -0
- package/dist/base/backend/fastify/typescript/src/routes/index.ts +20 -0
- package/dist/base/backend/fastify/typescript/src/server.ts +27 -0
- package/dist/base/frontend/react/app/App.css +308 -0
- package/dist/base/frontend/react/app/App.tsx +59 -0
- package/dist/base/frontend/react/app/assets/react.svg +1 -0
- package/dist/base/frontend/react/app/assets/vite.svg +1 -0
- package/dist/base/frontend/react/app/components/Counter.tsx +16 -0
- package/dist/base/frontend/react/app/components/OrigoLogo.tsx +32 -0
- package/dist/base/frontend/react/app/components/PingButton.tsx +45 -0
- package/dist/base/frontend/react/app/index.css +27 -0
- package/dist/base/frontend/react/app/main.tsx +17 -0
- package/dist/base/frontend/react/app/vite-env.d.ts +2 -0
- package/dist/base/frontend/react/html/index.html +23 -0
- package/dist/base/frontend/react/manifest.js +180 -0
- package/dist/base/frontend/react/styles/bootstrap/App.tsx +61 -0
- package/dist/base/frontend/react/styles/bootstrap/Counter.tsx +16 -0
- package/dist/base/frontend/react/styles/bootstrap/PingButton.tsx +52 -0
- package/dist/base/frontend/react/styles/bootstrap/index.css +174 -0
- package/dist/base/frontend/react/styles/sass/App.scss +231 -0
- package/dist/base/frontend/react/styles/sass/App.tsx +59 -0
- package/dist/base/frontend/react/styles/sass/PingButton.scss +33 -0
- package/dist/base/frontend/react/styles/sass/PingButton.tsx +47 -0
- package/dist/base/frontend/react/styles/sass/index.scss +30 -0
- package/dist/base/frontend/react/styles/sass/main.tsx +17 -0
- package/dist/base/frontend/react/styles/tailwind/App.tsx +66 -0
- package/dist/base/frontend/react/styles/tailwind/Counter.tsx +16 -0
- package/dist/base/frontend/react/styles/tailwind/PingButton.tsx +52 -0
- package/dist/base/frontend/shared/favicon.ico +0 -0
- package/dist/base/frontend/shared/origo-logo.svg +6 -0
- package/dist/commands/create.js +195 -10
- package/dist/commands/index.js +6 -1
- package/dist/composer/ast/arrays.js +12 -0
- package/dist/composer/ast/config.js +13 -0
- package/dist/composer/ast/context.js +73 -0
- package/dist/composer/ast/expressions.js +6 -0
- package/dist/composer/ast/imports.js +33 -0
- package/dist/composer/ast/index.js +6 -0
- package/dist/composer/ast/objects.js +32 -0
- package/dist/config/architectures.js +5 -0
- package/dist/config/backend.js +9 -0
- package/dist/config/frontend.js +17 -0
- package/dist/config/fullstack.js +30 -0
- package/dist/core/copy-template.js +57 -0
- package/dist/core/dependency-resolver.js +43 -0
- package/dist/core/install-dependencies.js +10 -0
- package/dist/core/path-safety.js +22 -0
- package/dist/core/project-target.js +40 -0
- package/dist/core/version-resolver.js +137 -0
- package/dist/features/frontend/styling/tailwind/dependencies.js +10 -0
- package/dist/features/frontend/styling/tailwind/feature.js +11 -0
- package/dist/features/frontend/styling/tailwind/generator.js +13 -0
- package/dist/features/frontend/styling/tailwind/index.js +3 -0
- package/dist/features/frontend/styling/tailwind/integrations/index.js +11 -0
- package/dist/features/frontend/styling/tailwind/integrations/rsbuild.js +3 -0
- package/dist/features/frontend/styling/tailwind/integrations/vite.js +17 -0
- package/dist/features/frontend/styling/tailwind/integrations/webpack.js +3 -0
- package/dist/features/frontend/styling/tailwind/templates/tailwind-css.js +1 -0
- package/dist/features/frontend/styling/tailwind/templates/theme.js +39 -0
- package/dist/features/frontend/styling/tailwind/versions/v3.js +19 -0
- package/dist/features/frontend/styling/tailwind/versions/v4.js +11 -0
- package/dist/features/frontend/ui/shadcn/dependencies.js +8 -0
- package/dist/features/frontend/ui/shadcn/feature.js +11 -0
- package/dist/features/frontend/ui/shadcn/generator.js +13 -0
- package/dist/features/frontend/ui/shadcn/index.js +3 -0
- package/dist/features/frontend/ui/shadcn/patches/tsconfig.js +22 -0
- package/dist/features/frontend/ui/shadcn/patches/vite-config.js +35 -0
- package/dist/features/frontend/ui/shadcn/templates/components-json.js +23 -0
- package/dist/features/frontend/ui/shadcn/templates/lib-utils.js +14 -0
- package/dist/features/index.js +29 -0
- package/dist/generators/backend/base-loader.js +33 -0
- package/dist/generators/backend/context.js +54 -0
- package/dist/generators/backend/generate.js +72 -0
- package/dist/generators/backend/index.js +4 -0
- package/dist/generators/backend/resolvers/database.js +1277 -0
- package/dist/generators/frontend/base-loader.js +23 -0
- package/dist/generators/frontend/context.js +118 -0
- package/dist/generators/frontend/css.js +34 -0
- package/dist/generators/frontend/file-writer.js +37 -0
- package/dist/generators/frontend/generate.js +46 -0
- package/dist/generators/frontend/index.js +4 -0
- package/dist/generators/frontend/resolvers/base.js +24 -0
- package/dist/generators/frontend/resolvers/bundler.js +13 -0
- package/dist/generators/frontend/resolvers/index.js +5 -0
- package/dist/generators/frontend/resolvers/language.js +55 -0
- package/dist/generators/frontend/resolvers/profile.js +41 -0
- package/dist/generators/frontend/resolvers/typescript.js +29 -0
- package/dist/generators/frontend/template.js +3 -0
- package/dist/generators/frontend/validate.js +31 -0
- package/dist/generators/package-json/build-package-json.js +33 -0
- package/dist/generators/package-json/index.js +2 -0
- package/dist/generators/package-json/types.js +1 -0
- package/dist/generators/package-json/write-package-json.js +9 -0
- package/dist/prompts/architecture.js +5 -0
- package/dist/prompts/compatibility.js +18 -0
- package/dist/prompts/custom-fullstack.js +10 -0
- package/dist/prompts/custom-stack.js +12 -0
- package/dist/prompts/database-package.js +15 -0
- package/dist/prompts/project-name.js +25 -0
- package/dist/prompts/tech-stack.js +54 -0
- package/dist/registry/bundlers.js +4 -0
- package/dist/registry/databases.js +36 -0
- package/dist/registry/features/development.js +40 -0
- package/dist/registry/features/quality.js +33 -0
- package/dist/registry/features/testing.js +36 -0
- package/dist/registry/features/ui.js +37 -0
- package/dist/registry/frameworks.js +9 -0
- package/dist/registry/packages.js +231 -0
- package/dist/registry/routing.js +12 -0
- package/dist/registry/runtimes.js +7 -0
- package/dist/registry/styling.js +7 -0
- package/dist/types/project.js +1 -0
- package/dist/ui/banner.js +0 -1
- package/dist/ui/checkbox.js +51 -0
- package/package.json +36 -4
- package/dist/cli.js +0 -22
- package/dist/ui/multiselect.js +0 -22
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
const commonFiles = [
|
|
2
|
+
{
|
|
3
|
+
source: "frontend/react/html/index.html",
|
|
4
|
+
destination: "index.html",
|
|
5
|
+
kind: "text",
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
source: "frontend/react/app/vite-env.d.ts",
|
|
9
|
+
destination: "src/vite-env.d.ts",
|
|
10
|
+
kind: "text",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
source: "frontend/react/app/components/OrigoLogo.tsx",
|
|
14
|
+
destination: "src/components/OrigoLogo.tsx",
|
|
15
|
+
kind: "text",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
source: "frontend/react/app/assets/react.svg",
|
|
19
|
+
destination: "src/assets/react.svg",
|
|
20
|
+
kind: "text",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
source: "frontend/react/app/assets/vite.svg",
|
|
24
|
+
destination: "src/assets/vite.svg",
|
|
25
|
+
kind: "text",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
source: "frontend/shared/origo-logo.svg",
|
|
29
|
+
destination: "public/origo-logo.svg",
|
|
30
|
+
kind: "text",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
source: "frontend/shared/favicon.ico",
|
|
34
|
+
destination: "public/favicon.ico",
|
|
35
|
+
kind: "binary",
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
const styleFiles = {
|
|
39
|
+
vanilla: [
|
|
40
|
+
{
|
|
41
|
+
source: "frontend/react/app/App.tsx",
|
|
42
|
+
destination: "src/App.tsx",
|
|
43
|
+
kind: "text",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
source: "frontend/react/app/main.tsx",
|
|
47
|
+
destination: "src/main.tsx",
|
|
48
|
+
kind: "text",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
source: "frontend/react/app/App.css",
|
|
52
|
+
destination: "src/App.css",
|
|
53
|
+
kind: "text",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
source: "frontend/react/app/index.css",
|
|
57
|
+
destination: "src/index.css",
|
|
58
|
+
kind: "text",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
source: "frontend/react/app/components/Counter.tsx",
|
|
62
|
+
destination: "src/components/Counter.tsx",
|
|
63
|
+
kind: "text",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
tailwind: [
|
|
67
|
+
{
|
|
68
|
+
source: "frontend/react/styles/tailwind/App.tsx",
|
|
69
|
+
destination: "src/App.tsx",
|
|
70
|
+
kind: "text",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
source: "frontend/react/app/main.tsx",
|
|
74
|
+
destination: "src/main.tsx",
|
|
75
|
+
kind: "text",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
source: "frontend/react/app/index.css",
|
|
79
|
+
destination: "src/index.css",
|
|
80
|
+
kind: "text",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
source: "frontend/react/styles/tailwind/Counter.tsx",
|
|
84
|
+
destination: "src/components/Counter.tsx",
|
|
85
|
+
kind: "text",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
bootstrap: [
|
|
89
|
+
{
|
|
90
|
+
source: "frontend/react/styles/bootstrap/App.tsx",
|
|
91
|
+
destination: "src/App.tsx",
|
|
92
|
+
kind: "text",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
source: "frontend/react/app/main.tsx",
|
|
96
|
+
destination: "src/main.tsx",
|
|
97
|
+
kind: "text",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
source: "frontend/react/styles/bootstrap/index.css",
|
|
101
|
+
destination: "src/index.css",
|
|
102
|
+
kind: "text",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
source: "frontend/react/styles/bootstrap/Counter.tsx",
|
|
106
|
+
destination: "src/components/Counter.tsx",
|
|
107
|
+
kind: "text",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
sass: [
|
|
111
|
+
{
|
|
112
|
+
source: "frontend/react/styles/sass/App.tsx",
|
|
113
|
+
destination: "src/App.tsx",
|
|
114
|
+
kind: "text",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
source: "frontend/react/styles/sass/main.tsx",
|
|
118
|
+
destination: "src/main.tsx",
|
|
119
|
+
kind: "text",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
source: "frontend/react/styles/sass/App.scss",
|
|
123
|
+
destination: "src/App.scss",
|
|
124
|
+
kind: "text",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
source: "frontend/react/styles/sass/index.scss",
|
|
128
|
+
destination: "src/index.scss",
|
|
129
|
+
kind: "text",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
source: "frontend/react/app/components/Counter.tsx",
|
|
133
|
+
destination: "src/components/Counter.tsx",
|
|
134
|
+
kind: "text",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
};
|
|
138
|
+
const pingFiles = {
|
|
139
|
+
vanilla: [
|
|
140
|
+
{
|
|
141
|
+
source: "frontend/react/app/components/PingButton.tsx",
|
|
142
|
+
destination: "src/components/PingButton.tsx",
|
|
143
|
+
kind: "text",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
tailwind: [
|
|
147
|
+
{
|
|
148
|
+
source: "frontend/react/styles/tailwind/PingButton.tsx",
|
|
149
|
+
destination: "src/components/PingButton.tsx",
|
|
150
|
+
kind: "text",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
bootstrap: [
|
|
154
|
+
{
|
|
155
|
+
source: "frontend/react/styles/bootstrap/PingButton.tsx",
|
|
156
|
+
destination: "src/components/PingButton.tsx",
|
|
157
|
+
kind: "text",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
sass: [
|
|
161
|
+
{
|
|
162
|
+
source: "frontend/react/styles/sass/PingButton.tsx",
|
|
163
|
+
destination: "src/components/PingButton.tsx",
|
|
164
|
+
kind: "text",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
source: "frontend/react/styles/sass/PingButton.scss",
|
|
168
|
+
destination: "src/components/PingButton.scss",
|
|
169
|
+
kind: "text",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
};
|
|
173
|
+
export function getReactBaseFiles(style, fullStack = false) {
|
|
174
|
+
const files = [...styleFiles[style], ...commonFiles];
|
|
175
|
+
if (fullStack) {
|
|
176
|
+
files.push(...pingFiles[style]);
|
|
177
|
+
}
|
|
178
|
+
return files;
|
|
179
|
+
}
|
|
180
|
+
export const reactBaseFiles = getReactBaseFiles("vanilla");
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "bootstrap/dist/css/bootstrap.min.css";
|
|
2
|
+
|
|
3
|
+
import Counter from "./components/Counter";
|
|
4
|
+
{{PING_IMPORT}}
|
|
5
|
+
|
|
6
|
+
function App() {
|
|
7
|
+
return (
|
|
8
|
+
<main className="app-shell position-relative d-flex align-items-center justify-content-center overflow-hidden min-vh-100">
|
|
9
|
+
<div className="background-glow glow-top" />
|
|
10
|
+
<div className="background-glow glow-right" />
|
|
11
|
+
<div className="background-glow glow-bottom" />
|
|
12
|
+
|
|
13
|
+
<section className="welcome-container position-relative w-100 text-center">
|
|
14
|
+
<header className="d-flex justify-content-center mb-5">
|
|
15
|
+
<img
|
|
16
|
+
src="/origo-logo.svg"
|
|
17
|
+
alt="Origo"
|
|
18
|
+
className="origo-logo img-fluid"
|
|
19
|
+
/>
|
|
20
|
+
</header>
|
|
21
|
+
|
|
22
|
+
<section className="hero">
|
|
23
|
+
<h1 className="display-1 fw-extrabold hero-title">
|
|
24
|
+
{{HEADLINE_PREFIX}}{" "}
|
|
25
|
+
<span className="hero-accent">React</span>
|
|
26
|
+
</h1>
|
|
27
|
+
|
|
28
|
+
<p className="lead subtitle mt-3">
|
|
29
|
+
A modern starter template, out of the box.
|
|
30
|
+
</p>
|
|
31
|
+
</section>
|
|
32
|
+
|
|
33
|
+
<section className="mt-4">
|
|
34
|
+
<div className="d-flex flex-wrap align-items-center justify-content-center gap-3">
|
|
35
|
+
<Counter />
|
|
36
|
+
{{PING_BUTTON}}
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<p className="instruction mt-4 fs-5">
|
|
40
|
+
Edit <code className="instruction-code">{{APP_FILE}}</code> and save
|
|
41
|
+
to test HMR
|
|
42
|
+
</p>
|
|
43
|
+
</section>
|
|
44
|
+
|
|
45
|
+
<footer className="footer d-flex align-items-center justify-content-center gap-4 mt-5">
|
|
46
|
+
<span className="footer-line" />
|
|
47
|
+
|
|
48
|
+
<p className="d-flex align-items-center justify-content-center mb-0">
|
|
49
|
+
Crafted with
|
|
50
|
+
<span className="heart mx-3">♥</span>
|
|
51
|
+
by <strong className="fw-semibold">Origo</strong>
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
<span className="footer-line" />
|
|
55
|
+
</footer>
|
|
56
|
+
</section>
|
|
57
|
+
</main>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default App;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
|
|
3
|
+
export default function Counter() {
|
|
4
|
+
const [count, setCount] = useState<number>(0);
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<button
|
|
8
|
+
className="btn btn-lg counter-button rounded-pill d-inline-flex align-items-center gap-3"
|
|
9
|
+
onClick={() => setCount((prev) => prev + 1)}
|
|
10
|
+
aria-label={`Counter: ${count}`}
|
|
11
|
+
>
|
|
12
|
+
<span className="status-dot" />
|
|
13
|
+
<span>count is {count}</span>
|
|
14
|
+
</button>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
|
|
3
|
+
const API_URL =
|
|
4
|
+
(import.meta as unknown as { env?: Record<string, string | undefined> }).env
|
|
5
|
+
?.VITE_API_URL ?? "http://localhost:3000/api";
|
|
6
|
+
|
|
7
|
+
type PingState = "idle" | "loading" | "ok" | "error";
|
|
8
|
+
|
|
9
|
+
const labels: Record<PingState, string> = {
|
|
10
|
+
idle: "Ping API",
|
|
11
|
+
loading: "Pinging...",
|
|
12
|
+
ok: "API OK",
|
|
13
|
+
error: "API Error",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const stateClasses: Record<PingState, string> = {
|
|
17
|
+
idle: "btn-outline-info",
|
|
18
|
+
loading: "btn-outline-secondary",
|
|
19
|
+
ok: "btn-success",
|
|
20
|
+
error: "btn-danger",
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default function PingButton() {
|
|
24
|
+
const [state, setState] = useState<PingState>("idle");
|
|
25
|
+
|
|
26
|
+
async function ping() {
|
|
27
|
+
setState("loading");
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
const response = await fetch(`${API_URL}/health`);
|
|
31
|
+
|
|
32
|
+
if (!response.ok) {
|
|
33
|
+
throw new Error(`Request failed with ${response.status}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
setState("ok");
|
|
37
|
+
} catch {
|
|
38
|
+
setState("error");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<button
|
|
44
|
+
className={`btn btn-sm rounded-pill ${stateClasses[state]}`}
|
|
45
|
+
onClick={ping}
|
|
46
|
+
disabled={state === "loading"}
|
|
47
|
+
aria-live="polite"
|
|
48
|
+
>
|
|
49
|
+
{labels[state]}
|
|
50
|
+
</button>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
font-family: "Inter", sans-serif;
|
|
5
|
+
color: #ffffff;
|
|
6
|
+
background: #030309;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
body {
|
|
14
|
+
min-width: 320px;
|
|
15
|
+
min-height: 100vh;
|
|
16
|
+
margin: 0;
|
|
17
|
+
background: #030309;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.app-shell {
|
|
21
|
+
padding: 90px 7%;
|
|
22
|
+
background:
|
|
23
|
+
radial-gradient(ellipse at 100% 25%, rgba(65, 0, 150, 0.12), transparent 35%),
|
|
24
|
+
#030309;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.welcome-container {
|
|
28
|
+
z-index: 2;
|
|
29
|
+
max-width: 1500px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.background-glow {
|
|
33
|
+
position: absolute;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
border: 2px solid rgba(112, 24, 255, 0.75);
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.glow-top {
|
|
40
|
+
top: -470px;
|
|
41
|
+
left: -300px;
|
|
42
|
+
width: 650px;
|
|
43
|
+
height: 650px;
|
|
44
|
+
box-shadow: 0 0 80px rgba(104, 0, 255, 0.2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.glow-right {
|
|
48
|
+
top: 10%;
|
|
49
|
+
right: -420px;
|
|
50
|
+
width: 500px;
|
|
51
|
+
height: 500px;
|
|
52
|
+
border-color: rgba(93, 0, 220, 0.2);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.glow-bottom {
|
|
56
|
+
right: -300px;
|
|
57
|
+
bottom: -750px;
|
|
58
|
+
width: 850px;
|
|
59
|
+
height: 850px;
|
|
60
|
+
box-shadow: 0 0 90px rgba(104, 0, 255, 0.25);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.origo-logo {
|
|
64
|
+
display: block;
|
|
65
|
+
width: 420px;
|
|
66
|
+
max-width: 85%;
|
|
67
|
+
height: auto;
|
|
68
|
+
object-fit: contain;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.hero-title {
|
|
72
|
+
font-size: clamp(42px, 5.5vw, 82px);
|
|
73
|
+
font-weight: 800;
|
|
74
|
+
letter-spacing: -3px;
|
|
75
|
+
line-height: 1.05;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.hero-accent {
|
|
79
|
+
background: linear-gradient(110deg, #9b42ff, #6412ed, #a65bff);
|
|
80
|
+
background-clip: text;
|
|
81
|
+
-webkit-background-clip: text;
|
|
82
|
+
color: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.subtitle {
|
|
86
|
+
color: #b9b2d2;
|
|
87
|
+
font-size: clamp(16px, 2vw, 30px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.counter-button {
|
|
91
|
+
border: 1px solid rgba(130, 80, 255, 0.2);
|
|
92
|
+
color: #ffffff;
|
|
93
|
+
background: rgba(15, 12, 27, 0.85);
|
|
94
|
+
font-size: 21px;
|
|
95
|
+
transition: all 0.2s ease;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.counter-button:hover,
|
|
99
|
+
.counter-button:focus {
|
|
100
|
+
border-color: #7625ff;
|
|
101
|
+
color: #ffffff;
|
|
102
|
+
background: rgba(91, 25, 180, 0.2);
|
|
103
|
+
transform: translateY(-2px);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.counter-button:active {
|
|
107
|
+
transform: scale(0.97);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.status-dot {
|
|
111
|
+
width: 17px;
|
|
112
|
+
height: 17px;
|
|
113
|
+
border-radius: 50%;
|
|
114
|
+
background: #20e879;
|
|
115
|
+
box-shadow: 0 0 12px rgba(32, 232, 121, 0.3);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.instruction {
|
|
119
|
+
color: #c4bed8;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.instruction-code {
|
|
123
|
+
padding: 5px 10px;
|
|
124
|
+
border-radius: 8px;
|
|
125
|
+
color: #ad69ff;
|
|
126
|
+
background: rgba(123, 48, 255, 0.1);
|
|
127
|
+
font-family: monospace;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.footer {
|
|
131
|
+
color: #c4bddb;
|
|
132
|
+
font-size: 19px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.footer strong {
|
|
136
|
+
color: #a34cff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.heart {
|
|
140
|
+
display: inline-block;
|
|
141
|
+
color: #8d32ff;
|
|
142
|
+
font-size: 27px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.footer-line {
|
|
146
|
+
width: 125px;
|
|
147
|
+
height: 1px;
|
|
148
|
+
background: rgba(155, 130, 200, 0.3);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (max-width: 768px) {
|
|
152
|
+
.origo-logo {
|
|
153
|
+
width: 320px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media (max-width: 600px) {
|
|
158
|
+
.app-shell {
|
|
159
|
+
padding: 65px 22px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.origo-logo {
|
|
163
|
+
width: 250px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.hero-title {
|
|
167
|
+
letter-spacing: -1.5px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.footer {
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
gap: 15px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
$brand: #781bff;
|
|
2
|
+
$brand-light: #9b42ff;
|
|
3
|
+
$brand-dark: #6412ed;
|
|
4
|
+
$background: #030309;
|
|
5
|
+
$text: #ffffff;
|
|
6
|
+
$muted: #c4bed8;
|
|
7
|
+
|
|
8
|
+
.app {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
background:
|
|
16
|
+
radial-gradient(ellipse at 100% 25%, rgba(65, 0, 150, 0.12), transparent 35%),
|
|
17
|
+
$background;
|
|
18
|
+
color: $text;
|
|
19
|
+
|
|
20
|
+
.background-glow {
|
|
21
|
+
position: absolute;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
border: 2px solid rgba(112, 24, 255, 0.75);
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
filter: blur(0.3px);
|
|
26
|
+
|
|
27
|
+
&.glow-top {
|
|
28
|
+
top: -470px;
|
|
29
|
+
left: -300px;
|
|
30
|
+
width: 650px;
|
|
31
|
+
height: 650px;
|
|
32
|
+
box-shadow: 0 0 80px rgba(104, 0, 255, 0.2);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.glow-right {
|
|
36
|
+
top: 10%;
|
|
37
|
+
right: -420px;
|
|
38
|
+
width: 500px;
|
|
39
|
+
height: 500px;
|
|
40
|
+
border-color: rgba(93, 0, 220, 0.2);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.glow-bottom {
|
|
44
|
+
right: -300px;
|
|
45
|
+
bottom: -750px;
|
|
46
|
+
width: 850px;
|
|
47
|
+
height: 850px;
|
|
48
|
+
box-shadow: 0 0 90px rgba(104, 0, 255, 0.25);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.welcome-container {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 2;
|
|
55
|
+
width: 100%;
|
|
56
|
+
max-width: 1500px;
|
|
57
|
+
padding: 90px 7%;
|
|
58
|
+
text-align: center;
|
|
59
|
+
|
|
60
|
+
.brand {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
width: 100%;
|
|
65
|
+
margin-bottom: 48px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.origo-logo {
|
|
69
|
+
display: block;
|
|
70
|
+
width: 420px;
|
|
71
|
+
max-width: 85%;
|
|
72
|
+
height: auto;
|
|
73
|
+
object-fit: contain;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.hero {
|
|
77
|
+
h1 {
|
|
78
|
+
font-size: clamp(42px, 5.5vw, 82px);
|
|
79
|
+
font-weight: 800;
|
|
80
|
+
letter-spacing: -3px;
|
|
81
|
+
|
|
82
|
+
span {
|
|
83
|
+
background: linear-gradient(110deg, $brand-light, $brand-dark, #a65bff);
|
|
84
|
+
background-clip: text;
|
|
85
|
+
-webkit-background-clip: text;
|
|
86
|
+
color: transparent;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.subtitle {
|
|
91
|
+
margin-top: 12px;
|
|
92
|
+
color: #b9b2d2;
|
|
93
|
+
font-size: clamp(16px, 2vw, 30px);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.counter-section {
|
|
98
|
+
margin-top: 40px;
|
|
99
|
+
|
|
100
|
+
.api-actions {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-wrap: wrap;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
gap: 16px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.counter {
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: 18px;
|
|
112
|
+
padding: 14px 24px;
|
|
113
|
+
border: 1px solid rgba(130, 80, 255, 0.2);
|
|
114
|
+
border-radius: 50px;
|
|
115
|
+
color: $text;
|
|
116
|
+
background: rgba(15, 12, 27, 0.85);
|
|
117
|
+
font-size: 21px;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
transition: all 0.2s ease;
|
|
120
|
+
|
|
121
|
+
&:hover {
|
|
122
|
+
border-color: #7625ff;
|
|
123
|
+
background: rgba(91, 25, 180, 0.2);
|
|
124
|
+
transform: translateY(-2px);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:active {
|
|
128
|
+
transform: scale(0.97);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.status-dot {
|
|
132
|
+
width: 17px;
|
|
133
|
+
height: 17px;
|
|
134
|
+
border-radius: 50%;
|
|
135
|
+
background: #20e879;
|
|
136
|
+
box-shadow: 0 0 12px rgba(32, 232, 121, 0.3);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.instruction {
|
|
141
|
+
margin-top: 24px;
|
|
142
|
+
color: $muted;
|
|
143
|
+
font-size: 21px;
|
|
144
|
+
|
|
145
|
+
code {
|
|
146
|
+
padding: 5px 10px;
|
|
147
|
+
border-radius: 8px;
|
|
148
|
+
color: #ad69ff;
|
|
149
|
+
background: rgba(123, 48, 255, 0.1);
|
|
150
|
+
font-family: monospace;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.footer {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
gap: 30px;
|
|
160
|
+
margin-top: 85px;
|
|
161
|
+
color: $muted;
|
|
162
|
+
font-size: 19px;
|
|
163
|
+
|
|
164
|
+
p {
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
strong {
|
|
171
|
+
color: #a34cff;
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.heart {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
margin: 0 14px;
|
|
178
|
+
color: $brand;
|
|
179
|
+
font-size: 27px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.footer-line {
|
|
183
|
+
width: 125px;
|
|
184
|
+
height: 1px;
|
|
185
|
+
background: rgba(155, 130, 200, 0.3);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (max-width: 1000px) {
|
|
190
|
+
padding: 70px 5%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media (max-width: 768px) {
|
|
194
|
+
.origo-logo {
|
|
195
|
+
width: 320px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media (max-width: 600px) {
|
|
200
|
+
padding: 65px 22px;
|
|
201
|
+
|
|
202
|
+
.brand {
|
|
203
|
+
margin-bottom: 45px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.hero h1 {
|
|
207
|
+
letter-spacing: -1.5px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.subtitle {
|
|
211
|
+
line-height: 1.6;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.instruction {
|
|
215
|
+
font-size: 15px;
|
|
216
|
+
line-height: 1.8;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.footer {
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
gap: 15px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@media (max-width: 480px) {
|
|
227
|
+
.origo-logo {
|
|
228
|
+
width: 250px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|