@react-kino/cli 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bilal Tahir
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js ADDED
@@ -0,0 +1,169 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
+ mod
24
+ ));
25
+
26
+ // src/index.ts
27
+ var import_kleur2 = __toESM(require("kleur"));
28
+
29
+ // src/prompts.ts
30
+ var import_prompts = __toESM(require("prompts"));
31
+ var TEMPLATE_CHOICES = [
32
+ { title: "Product Launch page", value: "product-launch" },
33
+ { title: "Case Study page", value: "case-study" },
34
+ { title: "Portfolio page", value: "portfolio" },
35
+ { title: "Blank scroll page", value: "blank" }
36
+ ];
37
+ async function askInitQuestions() {
38
+ const answers = await (0, import_prompts.default)(
39
+ [
40
+ {
41
+ type: "select",
42
+ name: "template",
43
+ message: "What would you like to scaffold?",
44
+ choices: TEMPLATE_CHOICES
45
+ },
46
+ {
47
+ type: "text",
48
+ name: "projectName",
49
+ message: "Project name",
50
+ initial: "my-scroll-app",
51
+ validate: (value) => value.trim().length > 0 ? true : "Project name is required"
52
+ },
53
+ {
54
+ type: "confirm",
55
+ name: "createDir",
56
+ message: "Create a new directory for the project?",
57
+ initial: true
58
+ }
59
+ ],
60
+ {
61
+ onCancel: () => {
62
+ return false;
63
+ }
64
+ }
65
+ );
66
+ if (!answers.template || !answers.projectName) {
67
+ return null;
68
+ }
69
+ return answers;
70
+ }
71
+
72
+ // src/create.ts
73
+ var import_path = __toESM(require("path"));
74
+ var import_fs_extra = __toESM(require("fs-extra"));
75
+ var import_kleur = __toESM(require("kleur"));
76
+ async function createProject(template, projectName, createDir) {
77
+ const targetDir = createDir ? import_path.default.resolve(process.cwd(), projectName) : process.cwd();
78
+ if (createDir) {
79
+ if (await import_fs_extra.default.pathExists(targetDir)) {
80
+ const files2 = await import_fs_extra.default.readdir(targetDir);
81
+ if (files2.length > 0) {
82
+ console.log(
83
+ import_kleur.default.red(`
84
+ Directory "${projectName}" already exists and is not empty.
85
+ `)
86
+ );
87
+ process.exit(1);
88
+ }
89
+ }
90
+ await import_fs_extra.default.ensureDir(targetDir);
91
+ }
92
+ const templatesRoot = import_path.default.resolve(__dirname, "..", "templates", template);
93
+ if (!await import_fs_extra.default.pathExists(templatesRoot)) {
94
+ console.log(
95
+ import_kleur.default.red(`
96
+ Template "${template}" not found at ${templatesRoot}
97
+ `)
98
+ );
99
+ process.exit(1);
100
+ }
101
+ const files = await collectFiles(templatesRoot);
102
+ for (const file of files) {
103
+ const relativePath = import_path.default.relative(templatesRoot, file);
104
+ const destPath = import_path.default.join(targetDir, relativePath);
105
+ await import_fs_extra.default.ensureDir(import_path.default.dirname(destPath));
106
+ let content = await import_fs_extra.default.readFile(file, "utf-8");
107
+ content = content.replace(/__PROJECT_NAME__/g, projectName);
108
+ await import_fs_extra.default.writeFile(destPath, content, "utf-8");
109
+ console.log(import_kleur.default.green(" \u2713") + ` Created ${relativePath}`);
110
+ }
111
+ console.log(import_kleur.default.bold("\n Done! Next steps:\n"));
112
+ if (createDir) {
113
+ console.log(` cd ${projectName}`);
114
+ }
115
+ console.log(" npm install");
116
+ console.log(" npm run dev\n");
117
+ }
118
+ async function collectFiles(dir) {
119
+ const entries = await import_fs_extra.default.readdir(dir, { withFileTypes: true });
120
+ const files = [];
121
+ for (const entry of entries) {
122
+ const fullPath = import_path.default.join(dir, entry.name);
123
+ if (entry.isDirectory()) {
124
+ files.push(...await collectFiles(fullPath));
125
+ } else {
126
+ files.push(fullPath);
127
+ }
128
+ }
129
+ return files;
130
+ }
131
+
132
+ // src/index.ts
133
+ var BANNER = `
134
+ ${import_kleur2.default.magenta("\u2726")} ${import_kleur2.default.bold("react-kino")} ${import_kleur2.default.dim("\u2014 cinematic scroll experiences for React")}
135
+ `;
136
+ async function main() {
137
+ const args = process.argv.slice(2);
138
+ const command = args[0];
139
+ if (!command || command === "init") {
140
+ console.log(BANNER);
141
+ const answers = await askInitQuestions();
142
+ if (!answers) {
143
+ console.log(import_kleur2.default.dim("\n Cancelled.\n"));
144
+ process.exit(0);
145
+ }
146
+ await createProject(answers.template, answers.projectName, answers.createDir);
147
+ } else if (command === "--help" || command === "-h") {
148
+ printHelp();
149
+ } else if (command === "--version" || command === "-v") {
150
+ console.log("0.1.0");
151
+ } else {
152
+ console.log(import_kleur2.default.red(`
153
+ Unknown command: ${command}
154
+ `));
155
+ printHelp();
156
+ process.exit(1);
157
+ }
158
+ }
159
+ function printHelp() {
160
+ console.log(BANNER);
161
+ console.log(" Usage:");
162
+ console.log(" npx @react-kino/cli init Scaffold a new scroll page from a template");
163
+ console.log(" npx @react-kino/cli -h Show this help message");
164
+ console.log(" npx @react-kino/cli -v Show version\n");
165
+ }
166
+ main().catch((err) => {
167
+ console.error(import_kleur2.default.red("\n Error:"), err.message);
168
+ process.exit(1);
169
+ });
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@react-kino/cli",
3
+ "version": "0.1.0",
4
+ "description": "CLI for scaffolding react-kino scroll pages",
5
+ "bin": {
6
+ "kino": "./dist/index.js"
7
+ },
8
+ "main": "./dist/index.js",
9
+ "files": [
10
+ "dist",
11
+ "templates"
12
+ ],
13
+ "dependencies": {
14
+ "fs-extra": "^11",
15
+ "kleur": "^4",
16
+ "prompts": "^2"
17
+ },
18
+ "devDependencies": {
19
+ "@types/fs-extra": "^11",
20
+ "@types/prompts": "^2",
21
+ "tsup": "^8",
22
+ "typescript": "^5"
23
+ },
24
+ "license": "MIT",
25
+ "engines": {
26
+ "node": ">=20"
27
+ },
28
+ "scripts": {
29
+ "build": "tsup",
30
+ "dev": "tsup --watch",
31
+ "clean": "rm -rf dist",
32
+ "lint": "tsc --noEmit"
33
+ }
34
+ }
@@ -0,0 +1,26 @@
1
+ import { Kino, Scene } from "react-kino";
2
+
3
+ export default function __PROJECT_NAME__() {
4
+ return (
5
+ <Kino>
6
+ <Scene duration="200vh">
7
+ <div style={{ padding: "20vh 2rem", textAlign: "center" }}>
8
+ <h1 style={{ fontSize: "3rem", fontWeight: 700 }}>__PROJECT_NAME__</h1>
9
+ <p style={{ opacity: 0.6, marginTop: "1rem" }}>
10
+ Start building your scroll experience here.
11
+ </p>
12
+ </div>
13
+ </Scene>
14
+
15
+ <Scene duration="200vh">
16
+ <div style={{ padding: "10vh 2rem", maxWidth: 640, margin: "0 auto" }}>
17
+ <h2 style={{ fontSize: "2rem", marginBottom: "1rem" }}>Section Two</h2>
18
+ <p style={{ lineHeight: 1.8, opacity: 0.8 }}>
19
+ Add your content here. Each Scene pins its children while the user
20
+ scrolls through the specified duration.
21
+ </p>
22
+ </div>
23
+ </Scene>
24
+ </Kino>
25
+ );
26
+ }
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ import { Kino, Scene } from "react-kino";
4
+
5
+ export default function __PROJECT_NAME__Page() {
6
+ return (
7
+ <Kino>
8
+ <Scene duration="200vh">
9
+ <div style={{ padding: "20vh 2rem", textAlign: "center" }}>
10
+ <h1 style={{ fontSize: "3rem", fontWeight: 700 }}>__PROJECT_NAME__</h1>
11
+ <p style={{ opacity: 0.6, marginTop: "1rem" }}>
12
+ Start building your scroll experience here.
13
+ </p>
14
+ </div>
15
+ </Scene>
16
+
17
+ <Scene duration="200vh">
18
+ <div style={{ padding: "10vh 2rem", maxWidth: 640, margin: "0 auto" }}>
19
+ <h2 style={{ fontSize: "2rem", marginBottom: "1rem" }}>Section Two</h2>
20
+ <p style={{ lineHeight: 1.8, opacity: 0.8 }}>
21
+ Add your content here. Each Scene pins its children while the user
22
+ scrolls through the specified duration.
23
+ </p>
24
+ </div>
25
+ </Scene>
26
+ </Kino>
27
+ );
28
+ }
@@ -0,0 +1,70 @@
1
+ import { Kino, Scene, Reveal } from "react-kino";
2
+
3
+ export default function __PROJECT_NAME__() {
4
+ return (
5
+ <Kino>
6
+ {/* Title card */}
7
+ <Scene duration="150vh">
8
+ <Reveal animation="fade" at={0.05}>
9
+ <div style={{ padding: "30vh 2rem", textAlign: "center" }}>
10
+ <p style={{ fontSize: "0.875rem", textTransform: "uppercase", letterSpacing: "0.1em", opacity: 0.5 }}>
11
+ Case Study
12
+ </p>
13
+ <h1 style={{ fontSize: "3.5rem", fontWeight: 700, marginTop: "1rem" }}>
14
+ __PROJECT_NAME__
15
+ </h1>
16
+ </div>
17
+ </Reveal>
18
+ </Scene>
19
+
20
+ {/* The Challenge */}
21
+ <Scene duration="200vh">
22
+ <Reveal animation="fade-up" at={0.15}>
23
+ <section style={{ maxWidth: 720, margin: "0 auto", padding: "10vh 2rem" }}>
24
+ <h2 style={{ fontSize: "2rem", marginBottom: "1.5rem" }}>The Challenge</h2>
25
+ <p style={{ fontSize: "1.125rem", lineHeight: 1.8, opacity: 0.8 }}>
26
+ Describe the problem your team set out to solve. What were the constraints?
27
+ What made this project unique?
28
+ </p>
29
+ </section>
30
+ </Reveal>
31
+ </Scene>
32
+
33
+ {/* The Solution */}
34
+ <Scene duration="200vh">
35
+ <Reveal animation="fade-up" at={0.15}>
36
+ <section style={{ maxWidth: 720, margin: "0 auto", padding: "10vh 2rem" }}>
37
+ <h2 style={{ fontSize: "2rem", marginBottom: "1.5rem" }}>The Solution</h2>
38
+ <p style={{ fontSize: "1.125rem", lineHeight: 1.8, opacity: 0.8 }}>
39
+ Walk through your approach. Highlight key decisions, technologies used,
40
+ and creative breakthroughs.
41
+ </p>
42
+ </section>
43
+ </Reveal>
44
+ </Scene>
45
+
46
+ {/* Results */}
47
+ <Scene duration="250vh">
48
+ <Reveal animation="fade-up" at={0.15}>
49
+ <section style={{ maxWidth: 720, margin: "0 auto", padding: "10vh 2rem" }}>
50
+ <h2 style={{ fontSize: "2rem", marginBottom: "2rem" }}>Results</h2>
51
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "2rem", textAlign: "center" }}>
52
+ <Stat value="3x" label="Performance Gain" />
53
+ <Stat value="40%" label="Cost Reduction" />
54
+ <Stat value="99.9%" label="Uptime" />
55
+ </div>
56
+ </section>
57
+ </Reveal>
58
+ </Scene>
59
+ </Kino>
60
+ );
61
+ }
62
+
63
+ function Stat({ value, label }: { value: string; label: string }) {
64
+ return (
65
+ <div>
66
+ <div style={{ fontSize: "3rem", fontWeight: 700 }}>{value}</div>
67
+ <div style={{ fontSize: "0.875rem", opacity: 0.6, marginTop: "0.5rem" }}>{label}</div>
68
+ </div>
69
+ );
70
+ }
@@ -0,0 +1,72 @@
1
+ "use client";
2
+
3
+ import { Kino, Scene, Reveal } from "react-kino";
4
+
5
+ export default function __PROJECT_NAME__Page() {
6
+ return (
7
+ <Kino>
8
+ {/* Title card */}
9
+ <Scene duration="150vh">
10
+ <Reveal animation="fade" at={0.05}>
11
+ <div style={{ padding: "30vh 2rem", textAlign: "center" }}>
12
+ <p style={{ fontSize: "0.875rem", textTransform: "uppercase", letterSpacing: "0.1em", opacity: 0.5 }}>
13
+ Case Study
14
+ </p>
15
+ <h1 style={{ fontSize: "3.5rem", fontWeight: 700, marginTop: "1rem" }}>
16
+ __PROJECT_NAME__
17
+ </h1>
18
+ </div>
19
+ </Reveal>
20
+ </Scene>
21
+
22
+ {/* The Challenge */}
23
+ <Scene duration="200vh">
24
+ <Reveal animation="fade-up" at={0.15}>
25
+ <section style={{ maxWidth: 720, margin: "0 auto", padding: "10vh 2rem" }}>
26
+ <h2 style={{ fontSize: "2rem", marginBottom: "1.5rem" }}>The Challenge</h2>
27
+ <p style={{ fontSize: "1.125rem", lineHeight: 1.8, opacity: 0.8 }}>
28
+ Describe the problem your team set out to solve. What were the constraints?
29
+ What made this project unique?
30
+ </p>
31
+ </section>
32
+ </Reveal>
33
+ </Scene>
34
+
35
+ {/* The Solution */}
36
+ <Scene duration="200vh">
37
+ <Reveal animation="fade-up" at={0.15}>
38
+ <section style={{ maxWidth: 720, margin: "0 auto", padding: "10vh 2rem" }}>
39
+ <h2 style={{ fontSize: "2rem", marginBottom: "1.5rem" }}>The Solution</h2>
40
+ <p style={{ fontSize: "1.125rem", lineHeight: 1.8, opacity: 0.8 }}>
41
+ Walk through your approach. Highlight key decisions, technologies used,
42
+ and creative breakthroughs.
43
+ </p>
44
+ </section>
45
+ </Reveal>
46
+ </Scene>
47
+
48
+ {/* Results */}
49
+ <Scene duration="250vh">
50
+ <Reveal animation="fade-up" at={0.15}>
51
+ <section style={{ maxWidth: 720, margin: "0 auto", padding: "10vh 2rem" }}>
52
+ <h2 style={{ fontSize: "2rem", marginBottom: "2rem" }}>Results</h2>
53
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "2rem", textAlign: "center" }}>
54
+ <Stat value="3x" label="Performance Gain" />
55
+ <Stat value="40%" label="Cost Reduction" />
56
+ <Stat value="99.9%" label="Uptime" />
57
+ </div>
58
+ </section>
59
+ </Reveal>
60
+ </Scene>
61
+ </Kino>
62
+ );
63
+ }
64
+
65
+ function Stat({ value, label }: { value: string; label: string }) {
66
+ return (
67
+ <div>
68
+ <div style={{ fontSize: "3rem", fontWeight: 700 }}>{value}</div>
69
+ <div style={{ fontSize: "0.875rem", opacity: 0.6, marginTop: "0.5rem" }}>{label}</div>
70
+ </div>
71
+ );
72
+ }
@@ -0,0 +1,66 @@
1
+ import { Kino, Scene, Reveal } from "react-kino";
2
+
3
+ export default function __PROJECT_NAME__() {
4
+ return (
5
+ <Kino>
6
+ {/* Intro */}
7
+ <Scene duration="150vh">
8
+ <Reveal animation="fade" at={0.05}>
9
+ <div style={{ padding: "30vh 2rem", textAlign: "center" }}>
10
+ <h1 style={{ fontSize: "3.5rem", fontWeight: 700 }}>__PROJECT_NAME__</h1>
11
+ <p style={{ fontSize: "1.25rem", opacity: 0.6, marginTop: "1rem" }}>
12
+ Designer &amp; Developer
13
+ </p>
14
+ </div>
15
+ </Reveal>
16
+ </Scene>
17
+
18
+ {/* Project Grid */}
19
+ <Scene duration="300vh">
20
+ <Reveal animation="fade-up" at={0.15}>
21
+ <section style={{ maxWidth: 960, margin: "0 auto", padding: "10vh 2rem" }}>
22
+ <h2 style={{ fontSize: "1.5rem", marginBottom: "2rem" }}>Selected Work</h2>
23
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: "2rem" }}>
24
+ <ProjectCard title="Project Alpha" category="Web Design" />
25
+ <ProjectCard title="Project Beta" category="Mobile App" />
26
+ <ProjectCard title="Project Gamma" category="Brand Identity" />
27
+ <ProjectCard title="Project Delta" category="Motion Design" />
28
+ </div>
29
+ </section>
30
+ </Reveal>
31
+ </Scene>
32
+
33
+ {/* About */}
34
+ <Scene duration="200vh">
35
+ <Reveal animation="fade-up" at={0.15}>
36
+ <section style={{ maxWidth: 640, margin: "0 auto", padding: "10vh 2rem" }}>
37
+ <h2 style={{ fontSize: "2rem", marginBottom: "1.5rem" }}>About</h2>
38
+ <p style={{ fontSize: "1.125rem", lineHeight: 1.8, opacity: 0.8 }}>
39
+ Write a short bio here. Describe your background, what drives your work,
40
+ and what you are looking for.
41
+ </p>
42
+ </section>
43
+ </Reveal>
44
+ </Scene>
45
+
46
+ {/* Contact */}
47
+ <Scene duration="100vh">
48
+ <Reveal animation="fade" at={0.05}>
49
+ <div style={{ textAlign: "center", padding: "20vh 2rem" }}>
50
+ <h2 style={{ fontSize: "2.5rem", fontWeight: 700 }}>Get in Touch</h2>
51
+ <p style={{ marginTop: "1rem", opacity: 0.6 }}>hello@example.com</p>
52
+ </div>
53
+ </Reveal>
54
+ </Scene>
55
+ </Kino>
56
+ );
57
+ }
58
+
59
+ function ProjectCard({ title, category }: { title: string; category: string }) {
60
+ return (
61
+ <div style={{ background: "#f5f5f5", borderRadius: 12, padding: "2rem", aspectRatio: "4/3", display: "flex", flexDirection: "column", justifyContent: "flex-end" }}>
62
+ <h3 style={{ fontSize: "1.25rem", fontWeight: 600 }}>{title}</h3>
63
+ <p style={{ fontSize: "0.875rem", opacity: 0.5, marginTop: "0.25rem" }}>{category}</p>
64
+ </div>
65
+ );
66
+ }
@@ -0,0 +1,68 @@
1
+ "use client";
2
+
3
+ import { Kino, Scene, Reveal } from "react-kino";
4
+
5
+ export default function __PROJECT_NAME__Page() {
6
+ return (
7
+ <Kino>
8
+ {/* Intro */}
9
+ <Scene duration="150vh">
10
+ <Reveal animation="fade" at={0.05}>
11
+ <div style={{ padding: "30vh 2rem", textAlign: "center" }}>
12
+ <h1 style={{ fontSize: "3.5rem", fontWeight: 700 }}>__PROJECT_NAME__</h1>
13
+ <p style={{ fontSize: "1.25rem", opacity: 0.6, marginTop: "1rem" }}>
14
+ Designer &amp; Developer
15
+ </p>
16
+ </div>
17
+ </Reveal>
18
+ </Scene>
19
+
20
+ {/* Project Grid */}
21
+ <Scene duration="300vh">
22
+ <Reveal animation="fade-up" at={0.15}>
23
+ <section style={{ maxWidth: 960, margin: "0 auto", padding: "10vh 2rem" }}>
24
+ <h2 style={{ fontSize: "1.5rem", marginBottom: "2rem" }}>Selected Work</h2>
25
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: "2rem" }}>
26
+ <ProjectCard title="Project Alpha" category="Web Design" />
27
+ <ProjectCard title="Project Beta" category="Mobile App" />
28
+ <ProjectCard title="Project Gamma" category="Brand Identity" />
29
+ <ProjectCard title="Project Delta" category="Motion Design" />
30
+ </div>
31
+ </section>
32
+ </Reveal>
33
+ </Scene>
34
+
35
+ {/* About */}
36
+ <Scene duration="200vh">
37
+ <Reveal animation="fade-up" at={0.15}>
38
+ <section style={{ maxWidth: 640, margin: "0 auto", padding: "10vh 2rem" }}>
39
+ <h2 style={{ fontSize: "2rem", marginBottom: "1.5rem" }}>About</h2>
40
+ <p style={{ fontSize: "1.125rem", lineHeight: 1.8, opacity: 0.8 }}>
41
+ Write a short bio here. Describe your background, what drives your work,
42
+ and what you are looking for.
43
+ </p>
44
+ </section>
45
+ </Reveal>
46
+ </Scene>
47
+
48
+ {/* Contact */}
49
+ <Scene duration="100vh">
50
+ <Reveal animation="fade" at={0.05}>
51
+ <div style={{ textAlign: "center", padding: "20vh 2rem" }}>
52
+ <h2 style={{ fontSize: "2.5rem", fontWeight: 700 }}>Get in Touch</h2>
53
+ <p style={{ marginTop: "1rem", opacity: 0.6 }}>hello@example.com</p>
54
+ </div>
55
+ </Reveal>
56
+ </Scene>
57
+ </Kino>
58
+ );
59
+ }
60
+
61
+ function ProjectCard({ title, category }: { title: string; category: string }) {
62
+ return (
63
+ <div style={{ background: "#f5f5f5", borderRadius: 12, padding: "2rem", aspectRatio: "4/3", display: "flex", flexDirection: "column", justifyContent: "flex-end" }}>
64
+ <h3 style={{ fontSize: "1.25rem", fontWeight: 600 }}>{title}</h3>
65
+ <p style={{ fontSize: "0.875rem", opacity: 0.5, marginTop: "0.25rem" }}>{category}</p>
66
+ </div>
67
+ );
68
+ }
@@ -0,0 +1,49 @@
1
+ import { Kino, Scene, Reveal, CompareSlider } from "react-kino";
2
+
3
+ export default function __PROJECT_NAME__() {
4
+ return (
5
+ <Kino>
6
+ {/* Hero section — fades in on scroll */}
7
+ <Scene duration="200vh">
8
+ <Reveal animation="fade" at={0.05}>
9
+ <div style={{ textAlign: "center", padding: "20vh 2rem" }}>
10
+ <h1 style={{ fontSize: "4rem", fontWeight: 700 }}>
11
+ Introducing __PROJECT_NAME__
12
+ </h1>
13
+ <p style={{ fontSize: "1.25rem", opacity: 0.7, maxWidth: 600, margin: "1rem auto" }}>
14
+ A cinematic scroll experience built with react-kino.
15
+ </p>
16
+ </div>
17
+ </Reveal>
18
+ </Scene>
19
+
20
+ {/* Features section — each feature reveals on scroll */}
21
+ <Scene duration="300vh">
22
+ <Reveal animation="fade-up" at={0.15}>
23
+ <div style={{ display: "grid", gap: "4rem", padding: "10vh 2rem", maxWidth: 800, margin: "0 auto" }}>
24
+ <Feature title="Blazing Fast" description="Built on a tiny RAF-driven scroll engine for smooth performance." />
25
+ <Feature title="Framework Ready" description="Works with Next.js, Vite, and any React setup." />
26
+ <Feature title="Accessible" description="Respects prefers-reduced-motion out of the box." />
27
+ </div>
28
+ </Reveal>
29
+ </Scene>
30
+
31
+ {/* Before / After comparison */}
32
+ <Scene duration="200vh">
33
+ <CompareSlider
34
+ before={<div style={{ background: "#1a1a2e", width: "100%", height: "100vh", display: "grid", placeItems: "center", color: "#fff" }}>Before</div>}
35
+ after={<div style={{ background: "#e94560", width: "100%", height: "100vh", display: "grid", placeItems: "center", color: "#fff" }}>After</div>}
36
+ />
37
+ </Scene>
38
+ </Kino>
39
+ );
40
+ }
41
+
42
+ function Feature({ title, description }: { title: string; description: string }) {
43
+ return (
44
+ <div>
45
+ <h2 style={{ fontSize: "2rem", marginBottom: "0.5rem" }}>{title}</h2>
46
+ <p style={{ fontSize: "1.125rem", opacity: 0.7 }}>{description}</p>
47
+ </div>
48
+ );
49
+ }
@@ -0,0 +1,51 @@
1
+ "use client";
2
+
3
+ import { Kino, Scene, Reveal, CompareSlider } from "react-kino";
4
+
5
+ export default function __PROJECT_NAME__Page() {
6
+ return (
7
+ <Kino>
8
+ {/* Hero section — fades in on scroll */}
9
+ <Scene duration="200vh">
10
+ <Reveal animation="fade" at={0.05}>
11
+ <div style={{ textAlign: "center", padding: "20vh 2rem" }}>
12
+ <h1 style={{ fontSize: "4rem", fontWeight: 700 }}>
13
+ Introducing __PROJECT_NAME__
14
+ </h1>
15
+ <p style={{ fontSize: "1.25rem", opacity: 0.7, maxWidth: 600, margin: "1rem auto" }}>
16
+ A cinematic scroll experience built with react-kino.
17
+ </p>
18
+ </div>
19
+ </Reveal>
20
+ </Scene>
21
+
22
+ {/* Features section — each feature reveals on scroll */}
23
+ <Scene duration="300vh">
24
+ <Reveal animation="fade-up" at={0.15}>
25
+ <div style={{ display: "grid", gap: "4rem", padding: "10vh 2rem", maxWidth: 800, margin: "0 auto" }}>
26
+ <Feature title="Blazing Fast" description="Built on a tiny RAF-driven scroll engine for smooth performance." />
27
+ <Feature title="Framework Ready" description="Works with Next.js, Vite, and any React setup." />
28
+ <Feature title="Accessible" description="Respects prefers-reduced-motion out of the box." />
29
+ </div>
30
+ </Reveal>
31
+ </Scene>
32
+
33
+ {/* Before / After comparison */}
34
+ <Scene duration="200vh">
35
+ <CompareSlider
36
+ before={<div style={{ background: "#1a1a2e", width: "100%", height: "100vh", display: "grid", placeItems: "center", color: "#fff" }}>Before</div>}
37
+ after={<div style={{ background: "#e94560", width: "100%", height: "100vh", display: "grid", placeItems: "center", color: "#fff" }}>After</div>}
38
+ />
39
+ </Scene>
40
+ </Kino>
41
+ );
42
+ }
43
+
44
+ function Feature({ title, description }: { title: string; description: string }) {
45
+ return (
46
+ <div>
47
+ <h2 style={{ fontSize: "2rem", marginBottom: "0.5rem" }}>{title}</h2>
48
+ <p style={{ fontSize: "1.125rem", opacity: 0.7 }}>{description}</p>
49
+ </div>
50
+ );
51
+ }