create-dovite 2.0.1 → 2.2.0
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 +20 -16
- package/index.js +10 -4
- package/package.json +6 -3
- package/src/files.js +40 -1
- package/src/prompts.js +3 -0
- package/src/setup.js +56 -33
- package/templates/react-js/public/thumbnail.png +0 -0
- package/templates/react-js/src/App.jsx +3 -9
- package/templates/react-js/src/pages/index.css +96 -0
- package/templates/react-js/src/pages/index.jsx +340 -0
- package/templates/react-ts/public/thumbnail.png +0 -0
- package/templates/react-ts/src/App.tsx +3 -9
- package/templates/react-ts/src/pages/index.css +96 -0
- package/templates/react-ts/src/pages/index.tsx +347 -0
package/README.md
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
# create-dovite
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- a detailed description of the package with all the features -->
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**create-dovite** is a CLI tool designed to jumpstart the development of Domo Custom Apps. It provides a modern developer experience by combining the speed of **Vite** with the utility-first approach of **Tailwind CSS**. This starter kit comes pre-integrated with **shadcn/ui** for accessible components and includes built-in configurations for the **Domo Integrations**, ensuring a smooth transition from local development to production.
|
|
6
|
+
|
|
7
|
+
# Features
|
|
8
|
+
|
|
9
|
+
- ⚡️ Vite for fast development
|
|
10
|
+
- ⚛️ React and Vue support
|
|
11
|
+
- 📘 TypeScript and JavaScript support
|
|
12
|
+
- 🎨 Tailwind CSS for styling
|
|
13
|
+
- 🎯 shadcn/ui components
|
|
14
|
+
- 🔄 DOMO integration
|
|
15
|
+
- 📦 Preconfigured build setup
|
|
6
16
|
|
|
7
17
|
## Prerequisites
|
|
8
18
|
|
|
19
|
+
> **Note:** This package requires yarn and the DOMO CLI to be installed before use.
|
|
20
|
+
|
|
9
21
|
```bash
|
|
10
|
-
# Install yarn if you don't have
|
|
11
|
-
npm install -g yarn
|
|
22
|
+
# Install yarn and DOMO CLI if you don't have them
|
|
23
|
+
npm install -g yarn ryuu
|
|
12
24
|
```
|
|
13
25
|
|
|
14
|
-
# For DOMO CLI installation, refer to:
|
|
15
|
-
|
|
16
|
-
[DOMO CLI](https://developer.domo.com/portal/6hlzv1hinkq19-setup-and-installation)
|
|
17
|
-
|
|
18
26
|
## Usage
|
|
19
27
|
|
|
20
28
|
```bash
|
|
@@ -25,19 +33,15 @@ yarn create dovite my-app
|
|
|
25
33
|
npx create-dovite my-app
|
|
26
34
|
```
|
|
27
35
|
|
|
28
|
-
## Features
|
|
29
|
-
|
|
30
|
-
- ⚡️ Vite for fast development
|
|
31
|
-
- 🎨 Tailwind CSS for styling
|
|
32
|
-
- 🎯 shadcn/ui components
|
|
33
|
-
- 🔄 DOMO integration
|
|
34
|
-
- 📦 Preconfigured build setup
|
|
35
|
-
|
|
36
36
|
## Requirements
|
|
37
37
|
|
|
38
38
|
- Node.js 16.x or higher
|
|
39
39
|
- npm or yarn
|
|
40
40
|
|
|
41
|
+
## For DOMO CLI installation, refer to:
|
|
42
|
+
|
|
43
|
+
[DOMO CLI](https://developer.domo.com/portal/6hlzv1hinkq19-setup-and-installation)
|
|
44
|
+
|
|
41
45
|
## Inspirations
|
|
42
46
|
|
|
43
47
|
- [DOMO Starter Kits](https://developer.domo.com/portal/u8w475o2245yp-starter-kits)
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
const { getProjectDetails } = require("./src/prompts");
|
|
3
3
|
const {
|
|
4
4
|
createViteProject,
|
|
@@ -7,7 +7,11 @@ const {
|
|
|
7
7
|
initializeShadcn,
|
|
8
8
|
initializeGit,
|
|
9
9
|
} = require("./src/setup");
|
|
10
|
-
const {
|
|
10
|
+
const {
|
|
11
|
+
copyTemplateFiles,
|
|
12
|
+
updateManifest,
|
|
13
|
+
cleanupViteDefaults,
|
|
14
|
+
} = require("./src/files");
|
|
11
15
|
|
|
12
16
|
async function main() {
|
|
13
17
|
try {
|
|
@@ -21,13 +25,15 @@ async function main() {
|
|
|
21
25
|
// We pass projectName so they can resolve paths correctly relative to CWD
|
|
22
26
|
updatePackageJson(projectName, templateType);
|
|
23
27
|
|
|
24
|
-
installDependencies(projectName);
|
|
28
|
+
installDependencies(projectName, templateType);
|
|
25
29
|
|
|
26
30
|
copyTemplateFiles(projectName, templateType);
|
|
27
31
|
|
|
32
|
+
cleanupViteDefaults(projectName, templateType);
|
|
33
|
+
|
|
28
34
|
updateManifest(projectName);
|
|
29
35
|
|
|
30
|
-
initializeShadcn(projectName);
|
|
36
|
+
initializeShadcn(projectName, templateType);
|
|
31
37
|
|
|
32
38
|
initializeGit(projectName);
|
|
33
39
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-dovite",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Vite template featuring Tailwind (v4), ShadCN (Canary), and DOMO integration.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"create-dovite": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"templates",
|
|
10
|
+
"templates/react-js",
|
|
11
|
+
"templates/react-ts",
|
|
12
|
+
"templates/index.jsx",
|
|
13
|
+
"templates/index.css",
|
|
11
14
|
"src",
|
|
12
15
|
"index.js"
|
|
13
16
|
],
|
|
@@ -24,7 +27,7 @@
|
|
|
24
27
|
"license": "MIT",
|
|
25
28
|
"repository": {
|
|
26
29
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/Ajay-Balu/create-dovite"
|
|
30
|
+
"url": "git+https://github.com/Ajay-Balu/create-dovite.git"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
33
|
"prompts": "^2.4.2"
|
package/src/files.js
CHANGED
|
@@ -69,4 +69,43 @@ function updateManifest(projectName) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
function cleanupViteDefaults(projectName, templateType) {
|
|
73
|
+
const isVue = templateType === "vue-js" || templateType === "vue-ts";
|
|
74
|
+
|
|
75
|
+
if (isVue) {
|
|
76
|
+
// Clean up default style.css created by Vite Vue template
|
|
77
|
+
// Remove body/#app styles that conflict with our landing page
|
|
78
|
+
const styleCssPath = path.join(projectName, "src", "style.css");
|
|
79
|
+
if (fs.existsSync(styleCssPath)) {
|
|
80
|
+
console.log("Cleaning up default style.css...");
|
|
81
|
+
let content = fs.readFileSync(styleCssPath, "utf8");
|
|
82
|
+
|
|
83
|
+
// Remove body styles block
|
|
84
|
+
content = content.replace(
|
|
85
|
+
/body\s*\{[^}]*display:\s*flex[^}]*place-items:\s*center[^}]*\}/gs,
|
|
86
|
+
""
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// Remove #app styles block
|
|
90
|
+
content = content.replace(
|
|
91
|
+
/#app\s*\{[^}]*max-width:\s*1280px[^}]*\}/gs,
|
|
92
|
+
""
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
// Clean up extra whitespace
|
|
96
|
+
content = content.replace(/\n{3,}/g, "\n\n").trim();
|
|
97
|
+
|
|
98
|
+
// Write back the cleaned content (or empty string if nothing left)
|
|
99
|
+
fs.writeFileSync(styleCssPath, content + "\n");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Remove App.css if it exists (created by Vite React template)
|
|
104
|
+
const appCssPath = path.join(projectName, "src", "App.css");
|
|
105
|
+
if (fs.existsSync(appCssPath)) {
|
|
106
|
+
console.log("Removing default App.css...");
|
|
107
|
+
fs.unlinkSync(appCssPath);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
module.exports = { copyTemplateFiles, updateManifest, cleanupViteDefaults };
|
package/src/prompts.js
CHANGED
|
@@ -22,6 +22,9 @@ async function getProjectDetails(initialProjectName) {
|
|
|
22
22
|
choices: [
|
|
23
23
|
{ title: "React JavaScript", value: "react-js" },
|
|
24
24
|
{ title: "React TypeScript", value: "react-ts" },
|
|
25
|
+
// Vue templates coming soon in a future release
|
|
26
|
+
// { title: "Vue JavaScript", value: "vue-js" },
|
|
27
|
+
// { title: "Vue TypeScript", value: "vue-ts" },
|
|
25
28
|
],
|
|
26
29
|
initial: 0,
|
|
27
30
|
});
|
package/src/setup.js
CHANGED
|
@@ -7,7 +7,15 @@ function createViteProject(projectName, templateType) {
|
|
|
7
7
|
`Creating new project: ${projectName} with template ${templateType}`
|
|
8
8
|
);
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// Map our template types to Vite's template names
|
|
11
|
+
const viteTemplateMap = {
|
|
12
|
+
"react-js": "react",
|
|
13
|
+
"react-ts": "react-ts",
|
|
14
|
+
"vue-js": "vue",
|
|
15
|
+
"vue-ts": "vue-ts",
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const viteTemplate = viteTemplateMap[templateType] || "react";
|
|
11
19
|
execSync(
|
|
12
20
|
`yarn create vite ${projectName} --template ${viteTemplate} --no-interactive`,
|
|
13
21
|
{
|
|
@@ -23,10 +31,21 @@ function updatePackageJson(projectName, templateType) {
|
|
|
23
31
|
|
|
24
32
|
packageJson.name = projectName;
|
|
25
33
|
|
|
34
|
+
// TypeScript templates need tsc build step
|
|
35
|
+
const isTypeScript = templateType === "react-ts" || templateType === "vue-ts";
|
|
36
|
+
const buildCommand = isTypeScript ? "vue-tsc -b && vite build" : "vite build";
|
|
37
|
+
// React-ts uses tsc, Vue-ts uses vue-tsc
|
|
38
|
+
const tsBuildCommand =
|
|
39
|
+
templateType === "react-ts" ? "tsc -b && vite build" : buildCommand;
|
|
40
|
+
|
|
26
41
|
packageJson.scripts = {
|
|
27
42
|
...packageJson.scripts,
|
|
28
43
|
dev: "vite",
|
|
29
|
-
build:
|
|
44
|
+
build: isTypeScript
|
|
45
|
+
? templateType === "react-ts"
|
|
46
|
+
? "tsc -b && vite build"
|
|
47
|
+
: "vue-tsc -b && vite build"
|
|
48
|
+
: "vite build",
|
|
30
49
|
lint: "eslint .",
|
|
31
50
|
preview: "vite preview",
|
|
32
51
|
upload: "yarn run build && cd dist && domo publish && cd ..",
|
|
@@ -35,51 +54,55 @@ function updatePackageJson(projectName, templateType) {
|
|
|
35
54
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
|
|
36
55
|
}
|
|
37
56
|
|
|
38
|
-
function installDependencies(projectName) {
|
|
57
|
+
function installDependencies(projectName, templateType) {
|
|
39
58
|
console.log("Installing dependencies...");
|
|
40
|
-
// We need to run this inside the project directory
|
|
41
|
-
// But since we are passing projectName, we can use cwd option or chdir before calling this.
|
|
42
|
-
// However, the original script chdir'd into the project.
|
|
43
|
-
// Let's assume the caller will handle chdir or we pass cwd.
|
|
44
|
-
// To keep it simple and consistent with original flow, let's assume we are IN the project dir
|
|
45
|
-
// OR we pass the cwd to execSync.
|
|
46
|
-
// The original script did `process.chdir(projectName)`.
|
|
47
|
-
|
|
48
|
-
// Let's stick to the original flow where we chdir in the main script,
|
|
49
|
-
// OR we can make these functions robust.
|
|
50
|
-
// For now, let's assume we are inside the directory for these commands to work easily
|
|
51
|
-
// without passing cwd everywhere, BUT `updatePackageJson` used `path.join`.
|
|
52
|
-
// Let's make `updatePackageJson` work with relative path, and these commands too.
|
|
53
|
-
|
|
54
|
-
// Actually, `yarn` needs to run in the project dir.
|
|
55
|
-
|
|
56
59
|
const options = { stdio: "inherit", cwd: projectName };
|
|
60
|
+
const isVue = templateType === "vue-js" || templateType === "vue-ts";
|
|
57
61
|
|
|
58
62
|
execSync("yarn", options);
|
|
59
63
|
|
|
60
64
|
console.log("Installing additional dependencies...");
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
|
|
66
|
+
// Common dependencies for all templates
|
|
67
|
+
const commonDeps =
|
|
68
|
+
"tailwindcss @tailwindcss/vite @domoinc/ryuu-proxy ryuu.js tailwind-merge";
|
|
69
|
+
|
|
70
|
+
if (isVue) {
|
|
71
|
+
// Vue-specific dependencies
|
|
72
|
+
execSync(`yarn add ${commonDeps}`, options);
|
|
73
|
+
} else {
|
|
74
|
+
// React-specific dependencies
|
|
75
|
+
execSync(`yarn add ${commonDeps} react-icons`, options);
|
|
76
|
+
}
|
|
77
|
+
|
|
65
78
|
execSync("yarn add -D @types/node", options);
|
|
66
79
|
}
|
|
67
80
|
|
|
68
|
-
function initializeShadcn(projectName) {
|
|
81
|
+
function initializeShadcn(projectName, templateType) {
|
|
69
82
|
console.log("Initializing shadcn...");
|
|
70
83
|
const options = { stdio: "inherit", cwd: projectName };
|
|
71
|
-
|
|
72
|
-
execSync("npx shadcn@latest init", options);
|
|
84
|
+
const isVue = templateType === "vue-js" || templateType === "vue-ts";
|
|
73
85
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
try {
|
|
87
|
+
if (isVue) {
|
|
88
|
+
// Shadcn-vue uses a different initialization
|
|
89
|
+
execSync("npx shadcn-vue@latest init", options);
|
|
90
|
+
console.log("Installing final dependencies...");
|
|
91
|
+
execSync("yarn", options);
|
|
92
|
+
execSync("npx shadcn-vue@latest add button", options);
|
|
93
|
+
} else {
|
|
94
|
+
// React uses standard shadcn
|
|
95
|
+
execSync("npx shadcn@latest init", options);
|
|
96
|
+
console.log("Installing final dependencies...");
|
|
97
|
+
execSync("yarn", options);
|
|
98
|
+
execSync("npx shadcn@latest add button", options);
|
|
99
|
+
}
|
|
80
100
|
} catch (error) {
|
|
101
|
+
const shadcnCmd = isVue
|
|
102
|
+
? "npx shadcn-vue@latest init"
|
|
103
|
+
: "npx shadcn@latest init";
|
|
81
104
|
console.log(
|
|
82
|
-
|
|
105
|
+
`Note: You may need to run "${shadcnCmd}" manually if initialization failed.`
|
|
83
106
|
);
|
|
84
107
|
}
|
|
85
108
|
}
|
|
Binary file
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import "./App.css";
|
|
1
|
+
import DefaultPage from "./pages/index";
|
|
2
|
+
|
|
4
3
|
function App() {
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div className="App">
|
|
8
|
-
<Button onClick={() => setCount(count + 1)}>Count: {count}</Button>
|
|
9
|
-
</div>
|
|
10
|
-
);
|
|
4
|
+
return <DefaultPage />;
|
|
11
5
|
}
|
|
12
6
|
|
|
13
7
|
export default App;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* Landing Page Background */
|
|
2
|
+
.landing-page {
|
|
3
|
+
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Logo Icon Base Styles */
|
|
7
|
+
.logo-icon {
|
|
8
|
+
height: 4rem;
|
|
9
|
+
width: 4rem;
|
|
10
|
+
padding: 0.5rem;
|
|
11
|
+
will-change: filter, transform;
|
|
12
|
+
transition: filter 300ms, transform 300ms;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Logo Hover Effects with Glow */
|
|
16
|
+
.logo-vite:hover {
|
|
17
|
+
filter: drop-shadow(0 0 2em rgba(189, 52, 254, 0.667));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.logo-react:hover {
|
|
21
|
+
filter: drop-shadow(0 0 2em rgba(97, 218, 251, 0.667));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.logo-domo:hover {
|
|
25
|
+
filter: drop-shadow(0 0 2em rgba(0, 181, 226, 0.667));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.logo-tailwind:hover {
|
|
29
|
+
filter: drop-shadow(0 0 2em rgba(6, 182, 212, 0.667));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.logo-shadcn {
|
|
33
|
+
color: #27272a;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.logo-shadcn:hover {
|
|
37
|
+
filter: drop-shadow(0 0 2em rgba(161, 161, 170, 0.667));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* React Logo Spin Animation */
|
|
41
|
+
@keyframes logo-spin {
|
|
42
|
+
from {
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
transform: rotate(360deg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
51
|
+
.logo-react {
|
|
52
|
+
animation: logo-spin infinite 20s linear;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Gradient Text Animation */
|
|
57
|
+
.gradient-text {
|
|
58
|
+
background: linear-gradient(
|
|
59
|
+
135deg,
|
|
60
|
+
#bd34fe 0%,
|
|
61
|
+
#41d1ff 25%,
|
|
62
|
+
#0072bc 50%,
|
|
63
|
+
#06b6d4 75%,
|
|
64
|
+
#a1a1aa 100%
|
|
65
|
+
);
|
|
66
|
+
background-size: 200% auto;
|
|
67
|
+
background-clip: text;
|
|
68
|
+
-webkit-background-clip: text;
|
|
69
|
+
-webkit-text-fill-color: transparent;
|
|
70
|
+
animation: gradient-shift 5s ease infinite;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes gradient-shift {
|
|
74
|
+
0%,
|
|
75
|
+
100% {
|
|
76
|
+
background-position: 0% 50%;
|
|
77
|
+
}
|
|
78
|
+
50% {
|
|
79
|
+
background-position: 100% 50%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Responsive Logo Sizes */
|
|
84
|
+
@media (max-width: 768px) {
|
|
85
|
+
.logo-icon {
|
|
86
|
+
height: 3rem;
|
|
87
|
+
width: 3rem;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: 480px) {
|
|
92
|
+
.logo-icon {
|
|
93
|
+
height: 2.5rem;
|
|
94
|
+
width: 2.5rem;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { Button } from "../components/ui/button";
|
|
3
|
+
import { FiBook, FiPackage, FiGithub, FiExternalLink } from "react-icons/fi";
|
|
4
|
+
import "./index.css";
|
|
5
|
+
|
|
6
|
+
// Vite Logo SVG
|
|
7
|
+
const ViteLogo = () => (
|
|
8
|
+
<svg
|
|
9
|
+
className="logo-icon logo-vite"
|
|
10
|
+
viewBox="0 0 410 404"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z"
|
|
16
|
+
fill="url(#paint0_linear)"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z"
|
|
20
|
+
fill="url(#paint1_linear)"
|
|
21
|
+
/>
|
|
22
|
+
<defs>
|
|
23
|
+
<linearGradient
|
|
24
|
+
id="paint0_linear"
|
|
25
|
+
x1="6.00017"
|
|
26
|
+
y1="32.9999"
|
|
27
|
+
x2="235"
|
|
28
|
+
y2="344"
|
|
29
|
+
gradientUnits="userSpaceOnUse"
|
|
30
|
+
>
|
|
31
|
+
<stop stopColor="#41D1FF" />
|
|
32
|
+
<stop offset="1" stopColor="#BD34FE" />
|
|
33
|
+
</linearGradient>
|
|
34
|
+
<linearGradient
|
|
35
|
+
id="paint1_linear"
|
|
36
|
+
x1="194.651"
|
|
37
|
+
y1="8.81818"
|
|
38
|
+
x2="236.076"
|
|
39
|
+
y2="292.989"
|
|
40
|
+
gradientUnits="userSpaceOnUse"
|
|
41
|
+
>
|
|
42
|
+
<stop stopColor="#FFBD4F" />
|
|
43
|
+
<stop offset="1" stopColor="#FF980E" />
|
|
44
|
+
</linearGradient>
|
|
45
|
+
</defs>
|
|
46
|
+
</svg>
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// React Logo SVG
|
|
50
|
+
const ReactLogo = () => (
|
|
51
|
+
<svg
|
|
52
|
+
className="logo-icon logo-react"
|
|
53
|
+
viewBox="-11.5 -10.23174 23 20.46348"
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
>
|
|
56
|
+
<circle cx="0" cy="0" r="2.05" fill="#61dafb" />
|
|
57
|
+
<g stroke="#61dafb" strokeWidth="1" fill="none">
|
|
58
|
+
<ellipse rx="11" ry="4.2" />
|
|
59
|
+
<ellipse rx="11" ry="4.2" transform="rotate(60)" />
|
|
60
|
+
<ellipse rx="11" ry="4.2" transform="rotate(120)" />
|
|
61
|
+
</g>
|
|
62
|
+
</svg>
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
// Domo Logo SVG
|
|
66
|
+
const DomoLogo = () => (
|
|
67
|
+
<svg
|
|
68
|
+
className="logo-icon logo-domo"
|
|
69
|
+
viewBox="0 0 100 100"
|
|
70
|
+
fill="none"
|
|
71
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
72
|
+
>
|
|
73
|
+
<rect width="100" height="100" rx="16" fill="url(#domoGradient)" />
|
|
74
|
+
<text
|
|
75
|
+
x="50"
|
|
76
|
+
y="65"
|
|
77
|
+
textAnchor="middle"
|
|
78
|
+
fill="white"
|
|
79
|
+
fontSize="36"
|
|
80
|
+
fontWeight="bold"
|
|
81
|
+
fontFamily="Arial, sans-serif"
|
|
82
|
+
>
|
|
83
|
+
DOMO
|
|
84
|
+
</text>
|
|
85
|
+
{/* <circle cx="72" cy="35" r="8" fill="white" opacity="0.8" /> */}
|
|
86
|
+
<defs>
|
|
87
|
+
<linearGradient
|
|
88
|
+
id="domoGradient"
|
|
89
|
+
x1="0"
|
|
90
|
+
y1="0"
|
|
91
|
+
x2="100"
|
|
92
|
+
y2="100"
|
|
93
|
+
gradientUnits="userSpaceOnUse"
|
|
94
|
+
>
|
|
95
|
+
<stop stopColor="#00B5E2" />
|
|
96
|
+
<stop offset="1" stopColor="#0072BC" />
|
|
97
|
+
</linearGradient>
|
|
98
|
+
</defs>
|
|
99
|
+
</svg>
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
// Tailwind Logo SVG
|
|
103
|
+
const TailwindLogo = () => (
|
|
104
|
+
<svg
|
|
105
|
+
className="logo-icon logo-tailwind"
|
|
106
|
+
viewBox="0 0 54 33"
|
|
107
|
+
fill="none"
|
|
108
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
109
|
+
>
|
|
110
|
+
<g clipPath="url(#tailwindClip)">
|
|
111
|
+
<path
|
|
112
|
+
fillRule="evenodd"
|
|
113
|
+
clipRule="evenodd"
|
|
114
|
+
d="M27 0C19.8 0 15.3 3.6 13.5 10.8C16.2 7.2 19.35 5.85 22.95 6.75C25.004 7.263 26.472 8.754 28.097 10.403C30.744 13.09 33.808 16.2 40.5 16.2C47.7 16.2 52.2 12.6 54 5.4C51.3 9 48.15 10.35 44.55 9.45C42.496 8.937 41.028 7.446 39.403 5.797C36.756 3.11 33.692 0 27 0ZM13.5 16.2C6.3 16.2 1.8 19.8 0 27C2.7 23.4 5.85 22.05 9.45 22.95C11.504 23.464 12.972 24.954 14.597 26.603C17.244 29.29 20.308 32.4 27 32.4C34.2 32.4 38.7 28.8 40.5 21.6C37.8 25.2 34.65 26.55 31.05 25.65C28.996 25.137 27.528 23.646 25.903 21.997C23.256 19.31 20.192 16.2 13.5 16.2Z"
|
|
115
|
+
fill="url(#tailwindGradient)"
|
|
116
|
+
/>
|
|
117
|
+
</g>
|
|
118
|
+
<defs>
|
|
119
|
+
<linearGradient
|
|
120
|
+
id="tailwindGradient"
|
|
121
|
+
x1="0"
|
|
122
|
+
y1="16.2"
|
|
123
|
+
x2="54"
|
|
124
|
+
y2="16.2"
|
|
125
|
+
gradientUnits="userSpaceOnUse"
|
|
126
|
+
>
|
|
127
|
+
<stop stopColor="#06B6D4" />
|
|
128
|
+
<stop offset="1" stopColor="#22D3EE" />
|
|
129
|
+
</linearGradient>
|
|
130
|
+
<clipPath id="tailwindClip">
|
|
131
|
+
<rect width="54" height="33" fill="white" />
|
|
132
|
+
</clipPath>
|
|
133
|
+
</defs>
|
|
134
|
+
</svg>
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
// Shadcn Logo SVG
|
|
138
|
+
const ShadcnLogo = () => (
|
|
139
|
+
<svg
|
|
140
|
+
className="logo-icon logo-shadcn"
|
|
141
|
+
viewBox="0 0 256 256"
|
|
142
|
+
fill="none"
|
|
143
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
144
|
+
>
|
|
145
|
+
<rect width="256" height="256" rx="60" fill="currentColor" />
|
|
146
|
+
<line
|
|
147
|
+
x1="208"
|
|
148
|
+
y1="128"
|
|
149
|
+
x2="128"
|
|
150
|
+
y2="208"
|
|
151
|
+
stroke="url(#shadcnGradient)"
|
|
152
|
+
strokeWidth="24"
|
|
153
|
+
strokeLinecap="round"
|
|
154
|
+
/>
|
|
155
|
+
<line
|
|
156
|
+
x1="192"
|
|
157
|
+
y1="40"
|
|
158
|
+
x2="40"
|
|
159
|
+
y2="192"
|
|
160
|
+
stroke="url(#shadcnGradient)"
|
|
161
|
+
strokeWidth="24"
|
|
162
|
+
strokeLinecap="round"
|
|
163
|
+
/>
|
|
164
|
+
<defs>
|
|
165
|
+
<linearGradient
|
|
166
|
+
id="shadcnGradient"
|
|
167
|
+
x1="40"
|
|
168
|
+
y1="40"
|
|
169
|
+
x2="208"
|
|
170
|
+
y2="208"
|
|
171
|
+
gradientUnits="userSpaceOnUse"
|
|
172
|
+
>
|
|
173
|
+
<stop stopColor="#fff" />
|
|
174
|
+
<stop offset="1" stopColor="#a1a1aa" />
|
|
175
|
+
</linearGradient>
|
|
176
|
+
</defs>
|
|
177
|
+
</svg>
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
const DefaultPage = () => {
|
|
181
|
+
const [count, setCount] = useState(0);
|
|
182
|
+
|
|
183
|
+
const docLinks = [
|
|
184
|
+
{
|
|
185
|
+
title: "DOMO APIs",
|
|
186
|
+
url: "https://developer.domo.com/portal/8ba9aedad3679-ap-is",
|
|
187
|
+
description: "Explore the API documentation",
|
|
188
|
+
Icon: FiBook,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
title: "Domo Starter Kit",
|
|
192
|
+
url: "https://developer.domo.com/portal/u8w475o2245yp-starter-kits",
|
|
193
|
+
description: "Get started quickly",
|
|
194
|
+
Icon: FiPackage,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
title: "GitHub Repository",
|
|
198
|
+
url: "https://github.com/Ajay-Balu/create-dovite",
|
|
199
|
+
description: "View source code",
|
|
200
|
+
Icon: FiGithub,
|
|
201
|
+
},
|
|
202
|
+
];
|
|
203
|
+
|
|
204
|
+
return (
|
|
205
|
+
<div className="landing-page h-screen w-screen flex flex-col overflow-hidden">
|
|
206
|
+
{/* Main Content Area */}
|
|
207
|
+
<div className="flex-1 flex items-center justify-center gap-16 px-8 py-8 max-w-[1400px] mx-auto w-full max-lg:flex-col max-lg:gap-8 max-lg:overflow-y-auto">
|
|
208
|
+
{/* Left Side - Hero Section */}
|
|
209
|
+
<div className="flex-1 flex flex-col items-center justify-center text-center gap-4">
|
|
210
|
+
{/* Logo Container */}
|
|
211
|
+
<div className="flex justify-center items-center gap-2 flex-wrap mb-2">
|
|
212
|
+
<a
|
|
213
|
+
href="https://vitejs.dev"
|
|
214
|
+
target="_blank"
|
|
215
|
+
rel="noopener noreferrer"
|
|
216
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
217
|
+
>
|
|
218
|
+
<ViteLogo />
|
|
219
|
+
</a>
|
|
220
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
221
|
+
<a
|
|
222
|
+
href="https://react.dev"
|
|
223
|
+
target="_blank"
|
|
224
|
+
rel="noopener noreferrer"
|
|
225
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
226
|
+
>
|
|
227
|
+
<ReactLogo />
|
|
228
|
+
</a>
|
|
229
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
230
|
+
<a
|
|
231
|
+
href="https://www.domo.com"
|
|
232
|
+
target="_blank"
|
|
233
|
+
rel="noopener noreferrer"
|
|
234
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
235
|
+
>
|
|
236
|
+
<DomoLogo />
|
|
237
|
+
</a>
|
|
238
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
239
|
+
<a
|
|
240
|
+
href="https://tailwindcss.com"
|
|
241
|
+
target="_blank"
|
|
242
|
+
rel="noopener noreferrer"
|
|
243
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
244
|
+
>
|
|
245
|
+
<TailwindLogo />
|
|
246
|
+
</a>
|
|
247
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
248
|
+
<a
|
|
249
|
+
href="https://ui.shadcn.com"
|
|
250
|
+
target="_blank"
|
|
251
|
+
rel="noopener noreferrer"
|
|
252
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
253
|
+
>
|
|
254
|
+
<ShadcnLogo />
|
|
255
|
+
</a>
|
|
256
|
+
</div>
|
|
257
|
+
|
|
258
|
+
{/* Title */}
|
|
259
|
+
<h1 className="text-5xl font-extrabold tracking-tight m-0 leading-tight max-md:text-4xl max-sm:text-3xl">
|
|
260
|
+
<span className="gradient-text">Dovite</span>
|
|
261
|
+
</h1>
|
|
262
|
+
<p className="text-base text-zinc-400 m-0 font-medium">
|
|
263
|
+
Vite + React + DOMO + Tailwind + Shadcn/UI
|
|
264
|
+
</p>
|
|
265
|
+
<p className="text-sm text-zinc-500 m-0 max-w-[400px]">
|
|
266
|
+
Build beautiful DOMO apps with modern web technologies
|
|
267
|
+
</p>
|
|
268
|
+
|
|
269
|
+
{/* Interactive Demo Section */}
|
|
270
|
+
<div className="mt-6">
|
|
271
|
+
<div className="px-8 py-6 bg-white/3 border border-white/8 rounded-2xl backdrop-blur-lg">
|
|
272
|
+
<Button
|
|
273
|
+
onClick={() => setCount((count) => count + 1)}
|
|
274
|
+
className="text-sm px-5 py-2.5 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-xl"
|
|
275
|
+
>
|
|
276
|
+
Count is {count}
|
|
277
|
+
</Button>
|
|
278
|
+
<p className="mt-4 text-zinc-500 text-xs">
|
|
279
|
+
Edit{" "}
|
|
280
|
+
<code className="bg-zinc-500/15 px-1.5 py-0.5 rounded text-zinc-400 font-mono text-[0.8em]">
|
|
281
|
+
src/pages/index.jsx
|
|
282
|
+
</code>{" "}
|
|
283
|
+
and save to test HMR
|
|
284
|
+
</p>
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
{/* Right Side - Documentation Links */}
|
|
290
|
+
<div className="w-80 flex flex-col gap-4 p-6 bg-white/2 border border-white/6 rounded-2xl backdrop-blur-lg max-lg:w-full max-lg:max-w-[400px]">
|
|
291
|
+
<h2 className="text-xs font-semibold text-zinc-400 uppercase tracking-widest m-0 pb-3 border-b border-white/6">
|
|
292
|
+
Resources
|
|
293
|
+
</h2>
|
|
294
|
+
<div className="flex flex-col gap-2">
|
|
295
|
+
{docLinks.map((link, index) => (
|
|
296
|
+
<a
|
|
297
|
+
key={index}
|
|
298
|
+
href={link.url}
|
|
299
|
+
target="_blank"
|
|
300
|
+
rel="noopener noreferrer"
|
|
301
|
+
className="group flex items-center gap-3 px-4 py-3.5 bg-white/2 border border-white/4 rounded-xl no-underline text-inherit transition-all duration-250 hover:bg-white/6 hover:border-cyan-500/30 hover:translate-x-1"
|
|
302
|
+
>
|
|
303
|
+
<link.Icon className="text-xl text-cyan-500 shrink-0" />
|
|
304
|
+
<div className="flex-1 flex flex-col gap-0.5 min-w-0">
|
|
305
|
+
<span className="text-sm font-semibold text-zinc-100">
|
|
306
|
+
{link.title}
|
|
307
|
+
</span>
|
|
308
|
+
<span className="text-xs text-zinc-500">
|
|
309
|
+
{link.description}
|
|
310
|
+
</span>
|
|
311
|
+
</div>
|
|
312
|
+
<FiExternalLink className="text-sm text-zinc-600 shrink-0 transition-all duration-250 group-hover:text-cyan-500 group-hover:translate-x-0.5 group-hover:-translate-y-0.5" />
|
|
313
|
+
</a>
|
|
314
|
+
))}
|
|
315
|
+
</div>
|
|
316
|
+
<p className="text-xs text-zinc-600 text-center m-0 pt-2">
|
|
317
|
+
Click on the logos to learn more
|
|
318
|
+
</p>
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
{/* Footer */}
|
|
323
|
+
<footer className="px-8 py-4 text-center border-t border-white/6 bg-black/20">
|
|
324
|
+
<p className="m-0 text-zinc-600 text-xs">
|
|
325
|
+
Built with <span className="text-red-500">❤</span> using{" "}
|
|
326
|
+
<a
|
|
327
|
+
href="https://github.com/Ajay-Balu/create-dovite"
|
|
328
|
+
target="_blank"
|
|
329
|
+
rel="noopener noreferrer"
|
|
330
|
+
className="text-cyan-500 no-underline font-medium transition-colors duration-300 hover:text-purple-500"
|
|
331
|
+
>
|
|
332
|
+
create-dovite
|
|
333
|
+
</a>
|
|
334
|
+
</p>
|
|
335
|
+
</footer>
|
|
336
|
+
</div>
|
|
337
|
+
);
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
export default DefaultPage;
|
|
Binary file
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import "./App.css";
|
|
1
|
+
import DefaultPage from "./pages/index";
|
|
2
|
+
|
|
4
3
|
function App() {
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div className="App">
|
|
8
|
-
<Button onClick={() => setCount(count + 1)}>Count: {count}</Button>
|
|
9
|
-
</div>
|
|
10
|
-
);
|
|
4
|
+
return <DefaultPage />;
|
|
11
5
|
}
|
|
12
6
|
|
|
13
7
|
export default App;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* Landing Page Background */
|
|
2
|
+
.landing-page {
|
|
3
|
+
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* Logo Icon Base Styles */
|
|
7
|
+
.logo-icon {
|
|
8
|
+
height: 4rem;
|
|
9
|
+
width: 4rem;
|
|
10
|
+
padding: 0.5rem;
|
|
11
|
+
will-change: filter, transform;
|
|
12
|
+
transition: filter 300ms, transform 300ms;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Logo Hover Effects with Glow */
|
|
16
|
+
.logo-vite:hover {
|
|
17
|
+
filter: drop-shadow(0 0 2em rgba(189, 52, 254, 0.667));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.logo-react:hover {
|
|
21
|
+
filter: drop-shadow(0 0 2em rgba(97, 218, 251, 0.667));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.logo-domo:hover {
|
|
25
|
+
filter: drop-shadow(0 0 2em rgba(0, 181, 226, 0.667));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.logo-tailwind:hover {
|
|
29
|
+
filter: drop-shadow(0 0 2em rgba(6, 182, 212, 0.667));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.logo-shadcn {
|
|
33
|
+
color: #27272a;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.logo-shadcn:hover {
|
|
37
|
+
filter: drop-shadow(0 0 2em rgba(161, 161, 170, 0.667));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* React Logo Spin Animation */
|
|
41
|
+
@keyframes logo-spin {
|
|
42
|
+
from {
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
transform: rotate(360deg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
51
|
+
.logo-react {
|
|
52
|
+
animation: logo-spin infinite 20s linear;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Gradient Text Animation */
|
|
57
|
+
.gradient-text {
|
|
58
|
+
background: linear-gradient(
|
|
59
|
+
135deg,
|
|
60
|
+
#bd34fe 0%,
|
|
61
|
+
#41d1ff 25%,
|
|
62
|
+
#0072bc 50%,
|
|
63
|
+
#06b6d4 75%,
|
|
64
|
+
#a1a1aa 100%
|
|
65
|
+
);
|
|
66
|
+
background-size: 200% auto;
|
|
67
|
+
background-clip: text;
|
|
68
|
+
-webkit-background-clip: text;
|
|
69
|
+
-webkit-text-fill-color: transparent;
|
|
70
|
+
animation: gradient-shift 5s ease infinite;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@keyframes gradient-shift {
|
|
74
|
+
0%,
|
|
75
|
+
100% {
|
|
76
|
+
background-position: 0% 50%;
|
|
77
|
+
}
|
|
78
|
+
50% {
|
|
79
|
+
background-position: 100% 50%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Responsive Logo Sizes */
|
|
84
|
+
@media (max-width: 768px) {
|
|
85
|
+
.logo-icon {
|
|
86
|
+
height: 3rem;
|
|
87
|
+
width: 3rem;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: 480px) {
|
|
92
|
+
.logo-icon {
|
|
93
|
+
height: 2.5rem;
|
|
94
|
+
width: 2.5rem;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { Button } from "../components/ui/button";
|
|
3
|
+
import { FiBook, FiPackage, FiGithub, FiExternalLink } from "react-icons/fi";
|
|
4
|
+
import "./index.css";
|
|
5
|
+
|
|
6
|
+
// Vite Logo SVG
|
|
7
|
+
const ViteLogo = () => (
|
|
8
|
+
<svg
|
|
9
|
+
className="logo-icon logo-vite"
|
|
10
|
+
viewBox="0 0 410 404"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z"
|
|
16
|
+
fill="url(#paint0_linear)"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z"
|
|
20
|
+
fill="url(#paint1_linear)"
|
|
21
|
+
/>
|
|
22
|
+
<defs>
|
|
23
|
+
<linearGradient
|
|
24
|
+
id="paint0_linear"
|
|
25
|
+
x1="6.00017"
|
|
26
|
+
y1="32.9999"
|
|
27
|
+
x2="235"
|
|
28
|
+
y2="344"
|
|
29
|
+
gradientUnits="userSpaceOnUse"
|
|
30
|
+
>
|
|
31
|
+
<stop stopColor="#41D1FF" />
|
|
32
|
+
<stop offset="1" stopColor="#BD34FE" />
|
|
33
|
+
</linearGradient>
|
|
34
|
+
<linearGradient
|
|
35
|
+
id="paint1_linear"
|
|
36
|
+
x1="194.651"
|
|
37
|
+
y1="8.81818"
|
|
38
|
+
x2="236.076"
|
|
39
|
+
y2="292.989"
|
|
40
|
+
gradientUnits="userSpaceOnUse"
|
|
41
|
+
>
|
|
42
|
+
<stop stopColor="#FFBD4F" />
|
|
43
|
+
<stop offset="1" stopColor="#FF980E" />
|
|
44
|
+
</linearGradient>
|
|
45
|
+
</defs>
|
|
46
|
+
</svg>
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// React Logo SVG
|
|
50
|
+
const ReactLogo = () => (
|
|
51
|
+
<svg
|
|
52
|
+
className="logo-icon logo-react"
|
|
53
|
+
viewBox="-11.5 -10.23174 23 20.46348"
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
>
|
|
56
|
+
<circle cx="0" cy="0" r="2.05" fill="#61dafb" />
|
|
57
|
+
<g stroke="#61dafb" strokeWidth="1" fill="none">
|
|
58
|
+
<ellipse rx="11" ry="4.2" />
|
|
59
|
+
<ellipse rx="11" ry="4.2" transform="rotate(60)" />
|
|
60
|
+
<ellipse rx="11" ry="4.2" transform="rotate(120)" />
|
|
61
|
+
</g>
|
|
62
|
+
</svg>
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
// Domo Logo SVG
|
|
66
|
+
const DomoLogo = () => (
|
|
67
|
+
<svg
|
|
68
|
+
className="logo-icon logo-domo"
|
|
69
|
+
viewBox="0 0 100 100"
|
|
70
|
+
fill="none"
|
|
71
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
72
|
+
>
|
|
73
|
+
<rect width="100" height="100" rx="16" fill="url(#domoGradient)" />
|
|
74
|
+
<text
|
|
75
|
+
x="50"
|
|
76
|
+
y="65"
|
|
77
|
+
textAnchor="middle"
|
|
78
|
+
fill="white"
|
|
79
|
+
fontSize="36"
|
|
80
|
+
fontWeight="bold"
|
|
81
|
+
fontFamily="Arial, sans-serif"
|
|
82
|
+
>
|
|
83
|
+
DOMO
|
|
84
|
+
</text>
|
|
85
|
+
{/* <circle cx="72" cy="35" r="8" fill="white" opacity="0.8" /> */}
|
|
86
|
+
<defs>
|
|
87
|
+
<linearGradient
|
|
88
|
+
id="domoGradient"
|
|
89
|
+
x1="0"
|
|
90
|
+
y1="0"
|
|
91
|
+
x2="100"
|
|
92
|
+
y2="100"
|
|
93
|
+
gradientUnits="userSpaceOnUse"
|
|
94
|
+
>
|
|
95
|
+
<stop stopColor="#00B5E2" />
|
|
96
|
+
<stop offset="1" stopColor="#0072BC" />
|
|
97
|
+
</linearGradient>
|
|
98
|
+
</defs>
|
|
99
|
+
</svg>
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
// Tailwind Logo SVG
|
|
103
|
+
const TailwindLogo = () => (
|
|
104
|
+
<svg
|
|
105
|
+
className="logo-icon logo-tailwind"
|
|
106
|
+
viewBox="0 0 54 33"
|
|
107
|
+
fill="none"
|
|
108
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
109
|
+
>
|
|
110
|
+
<g clipPath="url(#tailwindClip)">
|
|
111
|
+
<path
|
|
112
|
+
fillRule="evenodd"
|
|
113
|
+
clipRule="evenodd"
|
|
114
|
+
d="M27 0C19.8 0 15.3 3.6 13.5 10.8C16.2 7.2 19.35 5.85 22.95 6.75C25.004 7.263 26.472 8.754 28.097 10.403C30.744 13.09 33.808 16.2 40.5 16.2C47.7 16.2 52.2 12.6 54 5.4C51.3 9 48.15 10.35 44.55 9.45C42.496 8.937 41.028 7.446 39.403 5.797C36.756 3.11 33.692 0 27 0ZM13.5 16.2C6.3 16.2 1.8 19.8 0 27C2.7 23.4 5.85 22.05 9.45 22.95C11.504 23.464 12.972 24.954 14.597 26.603C17.244 29.29 20.308 32.4 27 32.4C34.2 32.4 38.7 28.8 40.5 21.6C37.8 25.2 34.65 26.55 31.05 25.65C28.996 25.137 27.528 23.646 25.903 21.997C23.256 19.31 20.192 16.2 13.5 16.2Z"
|
|
115
|
+
fill="url(#tailwindGradient)"
|
|
116
|
+
/>
|
|
117
|
+
</g>
|
|
118
|
+
<defs>
|
|
119
|
+
<linearGradient
|
|
120
|
+
id="tailwindGradient"
|
|
121
|
+
x1="0"
|
|
122
|
+
y1="16.2"
|
|
123
|
+
x2="54"
|
|
124
|
+
y2="16.2"
|
|
125
|
+
gradientUnits="userSpaceOnUse"
|
|
126
|
+
>
|
|
127
|
+
<stop stopColor="#06B6D4" />
|
|
128
|
+
<stop offset="1" stopColor="#22D3EE" />
|
|
129
|
+
</linearGradient>
|
|
130
|
+
<clipPath id="tailwindClip">
|
|
131
|
+
<rect width="54" height="33" fill="white" />
|
|
132
|
+
</clipPath>
|
|
133
|
+
</defs>
|
|
134
|
+
</svg>
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
// Shadcn Logo SVG
|
|
138
|
+
const ShadcnLogo = () => (
|
|
139
|
+
<svg
|
|
140
|
+
className="logo-icon logo-shadcn"
|
|
141
|
+
viewBox="0 0 256 256"
|
|
142
|
+
fill="none"
|
|
143
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
144
|
+
>
|
|
145
|
+
<rect width="256" height="256" rx="60" fill="currentColor" />
|
|
146
|
+
<line
|
|
147
|
+
x1="208"
|
|
148
|
+
y1="128"
|
|
149
|
+
x2="128"
|
|
150
|
+
y2="208"
|
|
151
|
+
stroke="url(#shadcnGradient)"
|
|
152
|
+
strokeWidth="24"
|
|
153
|
+
strokeLinecap="round"
|
|
154
|
+
/>
|
|
155
|
+
<line
|
|
156
|
+
x1="192"
|
|
157
|
+
y1="40"
|
|
158
|
+
x2="40"
|
|
159
|
+
y2="192"
|
|
160
|
+
stroke="url(#shadcnGradient)"
|
|
161
|
+
strokeWidth="24"
|
|
162
|
+
strokeLinecap="round"
|
|
163
|
+
/>
|
|
164
|
+
<defs>
|
|
165
|
+
<linearGradient
|
|
166
|
+
id="shadcnGradient"
|
|
167
|
+
x1="40"
|
|
168
|
+
y1="40"
|
|
169
|
+
x2="208"
|
|
170
|
+
y2="208"
|
|
171
|
+
gradientUnits="userSpaceOnUse"
|
|
172
|
+
>
|
|
173
|
+
<stop stopColor="#fff" />
|
|
174
|
+
<stop offset="1" stopColor="#a1a1aa" />
|
|
175
|
+
</linearGradient>
|
|
176
|
+
</defs>
|
|
177
|
+
</svg>
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
interface DocLink {
|
|
181
|
+
title: string;
|
|
182
|
+
url: string;
|
|
183
|
+
description: string;
|
|
184
|
+
Icon: React.ComponentType<{ className?: string }>;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const DefaultPage = () => {
|
|
188
|
+
const [count, setCount] = useState(0);
|
|
189
|
+
|
|
190
|
+
const docLinks: DocLink[] = [
|
|
191
|
+
{
|
|
192
|
+
title: "DOMO APIs",
|
|
193
|
+
url: "https://developer.domo.com/portal/8ba9aedad3679-ap-is",
|
|
194
|
+
description: "Explore the API documentation",
|
|
195
|
+
Icon: FiBook,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
title: "Domo Starter Kit",
|
|
199
|
+
url: "https://developer.domo.com/portal/u8w475o2245yp-starter-kits",
|
|
200
|
+
description: "Get started quickly",
|
|
201
|
+
Icon: FiPackage,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
title: "GitHub Repository",
|
|
205
|
+
url: "https://github.com/Ajay-Balu/create-dovite",
|
|
206
|
+
description: "View source code",
|
|
207
|
+
Icon: FiGithub,
|
|
208
|
+
},
|
|
209
|
+
];
|
|
210
|
+
|
|
211
|
+
return (
|
|
212
|
+
<div className="landing-page h-screen w-screen flex flex-col overflow-hidden">
|
|
213
|
+
{/* Main Content Area */}
|
|
214
|
+
<div className="flex-1 flex items-center justify-center gap-16 px-8 py-8 max-w-[1400px] mx-auto w-full max-lg:flex-col max-lg:gap-8 max-lg:overflow-y-auto">
|
|
215
|
+
{/* Left Side - Hero Section */}
|
|
216
|
+
<div className="flex-1 flex flex-col items-center justify-center text-center gap-4">
|
|
217
|
+
{/* Logo Container */}
|
|
218
|
+
<div className="flex justify-center items-center gap-2 flex-wrap mb-2">
|
|
219
|
+
<a
|
|
220
|
+
href="https://vitejs.dev"
|
|
221
|
+
target="_blank"
|
|
222
|
+
rel="noopener noreferrer"
|
|
223
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
224
|
+
>
|
|
225
|
+
<ViteLogo />
|
|
226
|
+
</a>
|
|
227
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
228
|
+
<a
|
|
229
|
+
href="https://react.dev"
|
|
230
|
+
target="_blank"
|
|
231
|
+
rel="noopener noreferrer"
|
|
232
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
233
|
+
>
|
|
234
|
+
<ReactLogo />
|
|
235
|
+
</a>
|
|
236
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
237
|
+
<a
|
|
238
|
+
href="https://www.domo.com"
|
|
239
|
+
target="_blank"
|
|
240
|
+
rel="noopener noreferrer"
|
|
241
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
242
|
+
>
|
|
243
|
+
<DomoLogo />
|
|
244
|
+
</a>
|
|
245
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
246
|
+
<a
|
|
247
|
+
href="https://tailwindcss.com"
|
|
248
|
+
target="_blank"
|
|
249
|
+
rel="noopener noreferrer"
|
|
250
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
251
|
+
>
|
|
252
|
+
<TailwindLogo />
|
|
253
|
+
</a>
|
|
254
|
+
<span className="text-2xl font-light text-zinc-500/50 mx-1">+</span>
|
|
255
|
+
<a
|
|
256
|
+
href="https://ui.shadcn.com"
|
|
257
|
+
target="_blank"
|
|
258
|
+
rel="noopener noreferrer"
|
|
259
|
+
className="inline-flex transition-transform duration-300 hover:scale-115"
|
|
260
|
+
>
|
|
261
|
+
<ShadcnLogo />
|
|
262
|
+
</a>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
{/* Title */}
|
|
266
|
+
<h1 className="text-5xl font-extrabold tracking-tight m-0 leading-tight max-md:text-4xl max-sm:text-3xl">
|
|
267
|
+
<span className="gradient-text">Dovite</span>
|
|
268
|
+
</h1>
|
|
269
|
+
<p className="text-base text-zinc-400 m-0 font-medium">
|
|
270
|
+
Vite + React + DOMO + Tailwind + Shadcn/UI
|
|
271
|
+
</p>
|
|
272
|
+
<p className="text-sm text-zinc-500 m-0 max-w-[400px]">
|
|
273
|
+
Build beautiful DOMO apps with modern web technologies
|
|
274
|
+
</p>
|
|
275
|
+
|
|
276
|
+
{/* Interactive Demo Section */}
|
|
277
|
+
<div className="mt-6">
|
|
278
|
+
<div className="px-8 py-6 bg-white/3 border border-white/8 rounded-2xl backdrop-blur-lg">
|
|
279
|
+
<Button
|
|
280
|
+
onClick={() => setCount((count) => count + 1)}
|
|
281
|
+
className="text-sm px-5 py-2.5 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-xl"
|
|
282
|
+
>
|
|
283
|
+
Count is {count}
|
|
284
|
+
</Button>
|
|
285
|
+
<p className="mt-4 text-zinc-500 text-xs">
|
|
286
|
+
Edit{" "}
|
|
287
|
+
<code className="bg-zinc-500/15 px-1.5 py-0.5 rounded text-zinc-400 font-mono text-[0.8em]">
|
|
288
|
+
src/pages/index.tsx
|
|
289
|
+
</code>{" "}
|
|
290
|
+
and save to test HMR
|
|
291
|
+
</p>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
{/* Right Side - Documentation Links */}
|
|
297
|
+
<div className="w-80 flex flex-col gap-4 p-6 bg-white/2 border border-white/6 rounded-2xl backdrop-blur-lg max-lg:w-full max-lg:max-w-[400px]">
|
|
298
|
+
<h2 className="text-xs font-semibold text-zinc-400 uppercase tracking-widest m-0 pb-3 border-b border-white/6">
|
|
299
|
+
Resources
|
|
300
|
+
</h2>
|
|
301
|
+
<div className="flex flex-col gap-2">
|
|
302
|
+
{docLinks.map((link, index) => (
|
|
303
|
+
<a
|
|
304
|
+
key={index}
|
|
305
|
+
href={link.url}
|
|
306
|
+
target="_blank"
|
|
307
|
+
rel="noopener noreferrer"
|
|
308
|
+
className="group flex items-center gap-3 px-4 py-3.5 bg-white/2 border border-white/4 rounded-xl no-underline text-inherit transition-all duration-250 hover:bg-white/6 hover:border-cyan-500/30 hover:translate-x-1"
|
|
309
|
+
>
|
|
310
|
+
<link.Icon className="text-xl text-cyan-500 shrink-0" />
|
|
311
|
+
<div className="flex-1 flex flex-col gap-0.5 min-w-0">
|
|
312
|
+
<span className="text-sm font-semibold text-zinc-100">
|
|
313
|
+
{link.title}
|
|
314
|
+
</span>
|
|
315
|
+
<span className="text-xs text-zinc-500">
|
|
316
|
+
{link.description}
|
|
317
|
+
</span>
|
|
318
|
+
</div>
|
|
319
|
+
<FiExternalLink className="text-sm text-zinc-600 shrink-0 transition-all duration-250 group-hover:text-cyan-500 group-hover:translate-x-0.5 group-hover:-translate-y-0.5" />
|
|
320
|
+
</a>
|
|
321
|
+
))}
|
|
322
|
+
</div>
|
|
323
|
+
<p className="text-xs text-zinc-600 text-center m-0 pt-2">
|
|
324
|
+
Click on the logos to learn more
|
|
325
|
+
</p>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
{/* Footer */}
|
|
330
|
+
<footer className="px-8 py-4 text-center border-t border-white/6 bg-black/20">
|
|
331
|
+
<p className="m-0 text-zinc-600 text-xs">
|
|
332
|
+
Built with <span className="text-red-500">❤</span> using{" "}
|
|
333
|
+
<a
|
|
334
|
+
href="https://github.com/Ajay-Balu/create-dovite"
|
|
335
|
+
target="_blank"
|
|
336
|
+
rel="noopener noreferrer"
|
|
337
|
+
className="text-cyan-500 no-underline font-medium transition-colors duration-300 hover:text-purple-500"
|
|
338
|
+
>
|
|
339
|
+
create-dovite
|
|
340
|
+
</a>
|
|
341
|
+
</p>
|
|
342
|
+
</footer>
|
|
343
|
+
</div>
|
|
344
|
+
);
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export default DefaultPage;
|