Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a0c6940cf | ||
|
|
4441c3aee3 | ||
|
|
58056f39f1 | ||
|
|
ef6cacb32d | ||
|
|
1a2a3045f5 | ||
|
|
69d4195718 | ||
|
|
7f1e77ad6d | ||
|
|
2650565c92 | ||
|
|
3330b8ed7b | ||
|
|
3380fa3ccf | ||
|
|
ba1e5f26dc | ||
|
|
df970e194a | ||
|
|
33fe8e03b9 | ||
|
|
f8f7a737dc | ||
|
|
d225e7ab6e | ||
|
|
e592b397cc | ||
|
|
df3f1541b4 | ||
|
|
acba642b05 | ||
|
|
d13008b334 | ||
|
|
44cb60ecfe | ||
|
|
b23bd8e066 | ||
|
|
8137c05e53 | ||
|
|
42bddad6b3 | ||
|
|
9065fd3eee | ||
|
|
431f56b90b | ||
|
|
fcd716463b | ||
|
|
8715e23be0 | ||
|
|
b00566fb99 | ||
|
|
6635ecc6e2 | ||
|
|
a0083e5219 | ||
|
|
d2e43a6da0 | ||
|
|
2c8286b837 | ||
|
|
7760722c76 | ||
|
|
ee518ff451 | ||
|
|
3d147dd3de | ||
|
|
f579b263b4 | ||
|
|
ec1f5c5c6a | ||
|
|
03b8924267 | ||
|
|
001628e233 | ||
|
|
583a1fe5a0 | ||
|
|
35a615f4ea | ||
|
|
d20f98cb36 | ||
|
|
378f76df54 | ||
|
|
de40a5582a | ||
|
|
b7238e7e1b | ||
|
|
7b5f21061a | ||
|
|
3390175f0d | ||
|
|
6300cd9cc9 | ||
|
|
51afbf573b | ||
|
|
d9ef1497a3 | ||
|
|
d2f377dd67 | ||
|
|
6349eb1f71 | ||
|
|
cd98c1a483 | ||
|
|
70e13c86b6 | ||
|
|
3296e1a6c0 | ||
|
|
e5c318099d | ||
|
|
de20dd4c7e | ||
|
|
57f73d1cf9 | ||
|
|
a53d8fc2aa | ||
|
|
b903cd0ecd | ||
|
|
a9b6080eeb | ||
|
|
6b2c0f92b3 | ||
|
|
8fa48c2d90 | ||
|
|
3cb202399f | ||
|
|
ad9a3ab000 | ||
|
|
5999b05c16 | ||
|
|
6a0bb61c05 | ||
|
|
378f5c40a9 | ||
|
|
63d850330e | ||
|
|
3d207c06e0 | ||
|
|
c8cf583633 | ||
|
|
b308f8d759 | ||
|
|
34daaf57af | ||
|
|
f9c98a87b4 | ||
|
|
561718870b | ||
|
|
e7aa732892 | ||
|
|
b47b033ab7 | ||
|
|
8cec9692dc | ||
|
|
cff3369ab6 | ||
|
|
3bdd5b6d8a | ||
|
|
6cba2256b4 | ||
|
|
c764ffca14 | ||
|
|
f4f22be762 | ||
|
|
dac1b3fefa |
@@ -11,3 +11,8 @@ yarn-error.log*
|
||||
|
||||
# Superpowers scratch and ledgers
|
||||
.superpowers/
|
||||
*.tsbuildinfo
|
||||
.analysis-shots/
|
||||
.preview/
|
||||
.hallmark/
|
||||
|
||||
|
||||
@@ -0,0 +1,343 @@
|
||||
# 🌐 Complete Git Architecture & Cross-Location Workflow Guide
|
||||
### For Working Between Office (🏢) and Home (🏠) on the WEBB Project
|
||||
|
||||
---
|
||||
|
||||
## Table of Contents
|
||||
1. [Core Mental Model: What is Happening?](#1-core-mental-model-what-is-happening)
|
||||
2. [Visual Architecture Diagrams](#2-visual-architecture-diagrams)
|
||||
3. [Every Git Command Explained Line-by-Line](#3-every-git-command-explained-line-by-line)
|
||||
4. [Step-by-Step Playbooks for Every Scenario](#4-step-by-step-playbooks-for-every-scenario)
|
||||
- [Scenario A: Right Now & Tonight at HOME](#scenario-a-right-now--tonight-at-home)
|
||||
- [Scenario B: Tomorrow Morning at the OFFICE](#scenario-b-tomorrow-morning-at-the-office)
|
||||
- [Scenario C: Tomorrow Evening Leaving the OFFICE](#scenario-c-tomorrow-evening-leaving-the-office)
|
||||
- [Scenario D: Tomorrow Night Arriving back HOME](#scenario-d-tomorrow-night-arriving-back-home)
|
||||
5. [How and When to Merge (`work-at-home` ➔ `main`)](#5-how-and-when-to-merge-work-at-home--main)
|
||||
6. [Emergency Troubleshooting & "What If?" Guide](#6-emergency-troubleshooting--what-if-guide)
|
||||
|
||||
---
|
||||
|
||||
## 1. Core Mental Model: What is Happening?
|
||||
|
||||
To feel 100% confident with Git, picture **three physical locations** and **two parallel tracks**:
|
||||
|
||||
```
|
||||
[ Your Home PC 🏠 ] [ GitHub in the Cloud ☁️ ] [ Your Office PC 🏢 ]
|
||||
Local storage Remote central repository Local storage
|
||||
```
|
||||
|
||||
### The Two Parallel Tracks (Branches):
|
||||
1. **`main`**: The official, production-ready website. This is what runs in the office. It must always stay clean and working.
|
||||
2. **`work-at-home`**: Your private sandbox. Any experiments, optimizations, or incomplete features made at home stay here.
|
||||
|
||||
### Why this guarantees ZERO conflicts:
|
||||
* If you edit files at home and push directly to `main`, your office machine might have different uncommitted edits on `main`. When you `git pull`, Git gets confused and creates **Merge Conflicts**.
|
||||
* By keeping home work on `work-at-home`, the GitHub remote stores two completely independent sets of files.
|
||||
* Your office computer never touches `work-at-home` unless you explicitly tell it to.
|
||||
|
||||
---
|
||||
|
||||
## 2. Visual Architecture Diagrams
|
||||
|
||||
### System Architecture Diagram
|
||||
```
|
||||
┌────────────────────────────────────────────────────────┐
|
||||
│ GitHub Remote Repository │
|
||||
│ vaishnosingh/webb │
|
||||
│ │
|
||||
│ [main branch] [work-at-home branch] │
|
||||
│ (Production / Office) (Home Features / Sandbox) │
|
||||
└──────────┬──────────────────────────┬──────────────────┘
|
||||
│ │
|
||||
git pull/push │ │ git pull/push
|
||||
(on main) │ │ (on work-at-home)
|
||||
│ │
|
||||
▼ ▼
|
||||
┌──────────────────────┐ ┌──────────────────────┐
|
||||
│ Office PC 🏢 │ │ Home PC 🏠 │
|
||||
│ Active branch: │ │ Active branch: │
|
||||
│ `main` │ │ `work-at-home` │
|
||||
└──────────────────────┘ └──────────────────────┘
|
||||
```
|
||||
|
||||
### Timeline & Commit Tree Diagram
|
||||
```mermaid
|
||||
gitGraph
|
||||
commit id: "Initial stable website"
|
||||
commit id: "Office work commit A"
|
||||
branch work-at-home
|
||||
checkout work-at-home
|
||||
commit id: "perf: remove smooth cursor & canvas"
|
||||
commit id: "feat: home improvements"
|
||||
checkout main
|
||||
commit id: "Office work commit B"
|
||||
checkout work-at-home
|
||||
merge main id: "Sync office changes into home"
|
||||
checkout main
|
||||
merge work-at-home id: "Merge home features into main when ready"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. Every Git Command Explained Line-by-Line
|
||||
|
||||
Here is the exact anatomy of every single command you will ever type, and what Git is doing behind the scenes:
|
||||
|
||||
### 1. `git status`
|
||||
* **What it means:** "Git, inspect my folder right now and show me what changed."
|
||||
* **What you see:** Green files (ready to save), red files (modified but not yet saved), or `"nothing to commit, working tree clean"`.
|
||||
* **When to run it:** Anytime you are unsure what state your project is in. It never alters your files.
|
||||
|
||||
### 2. `git branch`
|
||||
* **What it means:** "List all local branches and put a star (`*`) next to the one I am currently standing on."
|
||||
* **Example Output:**
|
||||
```text
|
||||
main
|
||||
* work-at-home
|
||||
```
|
||||
*(Here, `*` means you are currently editing inside `work-at-home`).*
|
||||
|
||||
### 3. `git checkout -b <new-branch-name>`
|
||||
* **What it means:** "Create a brand new branch named `<new-branch-name>` and immediately switch my code to it."
|
||||
* **Note:** The `-b` stands for **b**ranch. You only use `-b` the *first* time you create it.
|
||||
|
||||
### 4. `git checkout <existing-branch-name>`
|
||||
* **What it means:** "Switch my active workspace to an already existing branch."
|
||||
* **Example:** `git checkout main` switches all files on your screen back to the `main` version.
|
||||
|
||||
### 5. `git add .`
|
||||
* **What it means:** "Stage all modified and newly created files in this directory."
|
||||
* **The Dot (`.`):** Means "everything in the current folder".
|
||||
* **Mental Model:** Putting all your changed files into a cardboard box before sealing it with tape.
|
||||
|
||||
### 6. `git commit -m "your message here"`
|
||||
* **What it means:** "Permanently record a timestamped snapshot (checkpoint) of the staged files with an explanatory note."
|
||||
* **The `-m` flag:** Stands for **m**essage.
|
||||
* **Mental Model:** Sealing the cardboard box, putting a label on it, and stamping the date. This is stored on your local disk.
|
||||
|
||||
### 7. `git push origin <branch-name>`
|
||||
* **What it means:** "Upload my local commits to the remote cloud server (`origin` = GitHub) into the branch `<branch-name>`."
|
||||
* **Example:** `git push origin work-at-home` uploads your home work to the `work-at-home` branch on GitHub.
|
||||
|
||||
### 8. `git pull origin <branch-name>`
|
||||
* **What it means:** "Download the latest commits from GitHub for `<branch-name>` and apply them directly to my local files."
|
||||
* **When to use:** First thing in the morning before writing any code.
|
||||
|
||||
### 9. `git fetch origin`
|
||||
* **What it means:** "Ask GitHub what branches exist and what changed, but do NOT modify my files yet."
|
||||
* **When to use:** When you arrive at the office and want your office PC to discover the `work-at-home` branch from GitHub.
|
||||
|
||||
### 10. `git merge <branch-name>`
|
||||
* **What it means:** "Take all the work from `<branch-name>` and combine it into whatever branch I am currently standing on."
|
||||
|
||||
### 11. `git stash` and `git stash pop`
|
||||
* **`git stash`:** "Take my unsaved changes, put them into a temporary pocket, and revert my workspace to clean state so I can pull or switch branches."
|
||||
* **`git stash pop`:** "Pull my unsaved changes out of the temporary pocket and re-apply them to my files."
|
||||
|
||||
---
|
||||
|
||||
## 4. Step-by-Step Playbooks for Every Scenario
|
||||
|
||||
---
|
||||
|
||||
### Scenario A: Right Now & Tonight at HOME 🏠
|
||||
|
||||
You are currently on your home machine. The branch `work-at-home` is already active and pushed.
|
||||
|
||||
#### 1. Check your branch:
|
||||
```bash
|
||||
git branch
|
||||
```
|
||||
*Confirm you see `* work-at-home`.*
|
||||
|
||||
#### 2. Do your coding:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
Edit code, design components, test in your browser at `http://localhost:3000`.
|
||||
|
||||
#### 3. When you are done for the night (Push your work):
|
||||
```bash
|
||||
# Step 1: See what files you changed
|
||||
git status
|
||||
|
||||
# Step 2: Stage all changes
|
||||
git add .
|
||||
|
||||
# Step 3: Commit with a meaningful note
|
||||
git commit -m "feat: added new sections and updated styles from home"
|
||||
|
||||
# Step 4: Push to your home branch on GitHub
|
||||
git push origin work-at-home
|
||||
```
|
||||
*Your work is now securely stored in GitHub's cloud under `work-at-home`.*
|
||||
|
||||
---
|
||||
|
||||
### Scenario B: Tomorrow Morning at the OFFICE 🏢
|
||||
|
||||
You arrive at work, sit at your office PC (`/home/creserver/Desktop/WEBB` or similar).
|
||||
|
||||
You have **3 possible goals**:
|
||||
|
||||
#### Goal 1: You just want to do normal office work on `main`
|
||||
```bash
|
||||
# 1. Open terminal in project
|
||||
cd /home/creserver/Desktop/WEBB
|
||||
|
||||
# 2. Make sure you are on main
|
||||
git checkout main
|
||||
|
||||
# 3. Pull any latest office commits
|
||||
git pull origin main
|
||||
|
||||
# 4. Start your day
|
||||
npm run dev
|
||||
```
|
||||
*(Notice: The home work on `work-at-home` will NOT touch or break your office `main` branch).*
|
||||
|
||||
---
|
||||
|
||||
#### Goal 2: You want to PREVIEW the home work on your Office PC monitor
|
||||
If you want to run and test the home optimizations on the office machine without affecting `main`:
|
||||
|
||||
```bash
|
||||
# 1. Tell office Git to fetch all branches from GitHub
|
||||
git fetch origin
|
||||
|
||||
# 2. Switch to the home branch
|
||||
git checkout work-at-home
|
||||
|
||||
# 3. Run and test it
|
||||
npm run dev
|
||||
```
|
||||
When you are done previewing, switch back to `main`:
|
||||
```bash
|
||||
git checkout main
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### Goal 3: You love the home work and want to MERGE it into `main` at the office
|
||||
When you decide: *"The performance fixes made at home are awesome, let's make them part of our official main site!"*
|
||||
|
||||
```bash
|
||||
# 1. Switch to main
|
||||
git checkout main
|
||||
|
||||
# 2. Ensure main is up to date
|
||||
git pull origin main
|
||||
|
||||
# 3. Merge the work-at-home branch into main
|
||||
git merge work-at-home
|
||||
|
||||
# 4. Run tests or build to verify
|
||||
npm test
|
||||
npm run build
|
||||
|
||||
# 5. Push the updated main to GitHub
|
||||
git push origin main
|
||||
```
|
||||
*Congratulations! The home optimizations are now officially in production on `main`.*
|
||||
|
||||
---
|
||||
|
||||
### Scenario C: Tomorrow Evening Leaving the OFFICE 🏢
|
||||
|
||||
Before turning off your office PC:
|
||||
|
||||
```bash
|
||||
# 1. Check status
|
||||
git status
|
||||
|
||||
# 2. Stage and commit anything you did in the office
|
||||
git add .
|
||||
git commit -m "feat: completed catalog manager changes at office"
|
||||
|
||||
# 3. Push to main
|
||||
git push origin main
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Scenario D: Tomorrow Night Arriving back HOME 🏠
|
||||
|
||||
You get back home. Your office PC pushed new updates to `main`. You want those office updates inside your home setup so you don't fall behind.
|
||||
|
||||
```bash
|
||||
# 1. Switch to your local main and pull the latest office updates
|
||||
git checkout main
|
||||
git pull origin main
|
||||
|
||||
# 2. Switch back to your home branch
|
||||
git checkout work-at-home
|
||||
|
||||
# 3. Merge main into work-at-home (absorbs the office updates)
|
||||
git merge main
|
||||
|
||||
# 4. Push your updated home branch to GitHub
|
||||
git push origin work-at-home
|
||||
```
|
||||
*Now your home machine has BOTH your home work AND the latest office updates!*
|
||||
|
||||
---
|
||||
|
||||
## 5. Cheat Sheet Quick Reference
|
||||
|
||||
| Action | Machine | Commands |
|
||||
|---|---|---|
|
||||
| **Save & Push Home Work** | Home 🏠 | `git add .` <br> `git commit -m "..."` <br> `git push origin work-at-home` |
|
||||
| **Download Updates at Office** | Office 🏢 | `git checkout main` <br> `git pull origin main` |
|
||||
| **Inspect Home Work at Office** | Office 🏢 | `git fetch origin` <br> `git checkout work-at-home` |
|
||||
| **Merge Home Work into Main** | Office 🏢 | `git checkout main` <br> `git merge work-at-home` <br> `git push origin main` |
|
||||
| **Sync Office Updates into Home** | Home 🏠 | `git checkout work-at-home` <br> `git merge main` <br> `git push origin work-at-home` |
|
||||
|
||||
---
|
||||
|
||||
## 6. Emergency Troubleshooting & "What If?" Guide
|
||||
|
||||
### Q1: "Git says: 'error: Your local changes would be overwritten by checkout'"
|
||||
* **Cause:** You edited a file, but didn't commit it before trying to switch branches.
|
||||
* **Fix:**
|
||||
```bash
|
||||
# If you want to keep the edits:
|
||||
git stash
|
||||
git checkout <target-branch>
|
||||
git stash pop
|
||||
|
||||
# If you want to throw away the edits:
|
||||
git restore .
|
||||
git checkout <target-branch>
|
||||
```
|
||||
|
||||
### Q2: "What if there is a Merge Conflict?"
|
||||
* **What it means:** You changed line 20 of a file at the office, AND you also changed line 20 of the same file at home. Git asks you to decide which line to keep.
|
||||
* **Fix:**
|
||||
1. Open the file in VS Code / Antigravity editor.
|
||||
2. You will see markers:
|
||||
```text
|
||||
<<<<<<< HEAD
|
||||
Office code
|
||||
=======
|
||||
Home code
|
||||
>>>>>>> work-at-home
|
||||
```
|
||||
3. Delete the markers and keep the version you want.
|
||||
4. Save the file and run:
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "fix: resolved merge conflict"
|
||||
git push
|
||||
```
|
||||
|
||||
### Q3: "How do I check what commits exist?"
|
||||
```bash
|
||||
git log --oneline -5
|
||||
```
|
||||
*Shows the last 5 commits in a clean one-line summary.*
|
||||
|
||||
### Q4: "How do I see what changed between main and work-at-home?"
|
||||
```bash
|
||||
git diff main..work-at-home
|
||||
```
|
||||
*Shows every line added or removed in the home branch compared to main.*
|
||||
@@ -0,0 +1,181 @@
|
||||
# Git Guide: Cross-Machine Workflow & Branching
|
||||
|
||||
This guide covers the daily Git workflow for working on the **WEBB** project across multiple locations (Office & Home), as well as an introduction to **Git Branching** for safe experimenting.
|
||||
|
||||
---
|
||||
|
||||
## 🔄 1. Daily Multi-Location Workflow (Office 🏢 ↔ Home 🏠)
|
||||
|
||||
Follow this exact loop to keep your work completely synchronized between your office machine and home machine without merge conflicts.
|
||||
|
||||
```
|
||||
┌──────────────────────┐
|
||||
│ GitHub Remote │
|
||||
│ vaishnosingh/webb │
|
||||
└──────────┬───────────┘
|
||||
▲ ▲
|
||||
git push │ │ git push
|
||||
(leave office) │ │ (leave home)
|
||||
│ git pull │ git pull
|
||||
│ (arrive office) │ (arrive home)
|
||||
▼ ▼
|
||||
┌──────────────┐ ┌──────────────┐
|
||||
│ Office PC 🏢 │ │ Home PC 🏠 │
|
||||
└──────────────┘ └──────────────┘
|
||||
```
|
||||
|
||||
### 🏠 At Home (First Time Setup)
|
||||
1. **Clone the repository**:
|
||||
```bash
|
||||
git clone https://github.com/vaishnosingh/webb.git
|
||||
cd webb
|
||||
```
|
||||
2. **Install dependencies**:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
3. **Start the local server**:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 🏠 When You Finish Working at Home
|
||||
Before stepping away or turning off your home computer, push your work to GitHub:
|
||||
|
||||
1. **Check what changed**:
|
||||
```bash
|
||||
git status
|
||||
```
|
||||
2. **Stage and commit your work**:
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "feat: worked on components from home"
|
||||
```
|
||||
3. **Push to GitHub**:
|
||||
```bash
|
||||
git push origin main
|
||||
```
|
||||
*(If prompted for credentials: username = your GitHub username, password = your GitHub Personal Access Token).*
|
||||
|
||||
---
|
||||
|
||||
### 🏢 When You Arrive at the Office
|
||||
Before making any edits, download the updates you made at home:
|
||||
|
||||
1. **Open terminal in the project directory**:
|
||||
```bash
|
||||
cd /home/creserver/Desktop/WEBB
|
||||
```
|
||||
2. **Pull latest changes**:
|
||||
```bash
|
||||
git pull origin main
|
||||
```
|
||||
*(If you added any new npm packages at home, run `npm install`)*
|
||||
3. You are now working directly from where you left off at home!
|
||||
|
||||
---
|
||||
|
||||
### 🏢 When You Finish Working at the Office
|
||||
Before leaving the office:
|
||||
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "feat: updates made at the office"
|
||||
git push origin main
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### 🌟 The Golden Rule
|
||||
> **"Pull before you Start, Push before you Leave"**
|
||||
> 1. **Morning / Start**: `git pull origin main`
|
||||
> 2. **Evening / Finish**: `git add . && git commit -m "..." && git push origin main`
|
||||
|
||||
---
|
||||
|
||||
## 🌿 2. Understanding Git Branching
|
||||
|
||||
### What is a Branch?
|
||||
In Git, **branching** is like making a safe, parallel sandbox of your website. It allows you to build features or test redesigns without any risk of breaking your main, working website.
|
||||
|
||||
* **`main` (The Trunk)**: The stable, production-ready website code.
|
||||
* **Feature Branch (The Sandbox)**: An isolated duplicate where you experiment freely.
|
||||
|
||||
```
|
||||
main: ●──────●────────────────────────● (Merge back)
|
||||
\ /
|
||||
feature-redesign: ●──────●─────────────● (Safe experimenting)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Why Use Branches?
|
||||
|
||||
1. **Safety & Zero Risk**: If an experiment goes wrong, you simply delete the branch. Your `main` site stays completely untouched.
|
||||
2. **Multiple Tasks Simultaneously**: Work on a big feature on a branch without blocking quick hotfixes on `main`.
|
||||
3. **Clean Version History**: Each feature or experiment has its own organized log of commits.
|
||||
|
||||
---
|
||||
|
||||
### 🛠️ Everyday Branching Cheat Sheet
|
||||
|
||||
| Task | Command |
|
||||
|---|---|
|
||||
| **Create and jump into a new branch** | `git checkout -b feature-name` |
|
||||
| **List all branches (highlights current)** | `git branch` |
|
||||
| **Switch back to the main branch** | `git checkout main` |
|
||||
| **Merge branch work into main** | `git merge feature-name` |
|
||||
| **Delete feature branch when done** | `git branch -d feature-name` |
|
||||
| **Discard branch without saving** | `git branch -D feature-name` |
|
||||
|
||||
---
|
||||
|
||||
### 🎯 Real Example with Your Website (`WEBB`)
|
||||
|
||||
Suppose you want to try a new redesign for the **Pricing Page**:
|
||||
|
||||
1. **Create and switch to a feature branch**:
|
||||
```bash
|
||||
git checkout -b redesign-pricing
|
||||
```
|
||||
2. **Make your code edits and test them locally**:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
3. **Commit your changes on the branch**:
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "feat: experimental pricing layout"
|
||||
```
|
||||
4. **Choose your outcome**:
|
||||
* **If you love it and want to keep it**:
|
||||
```bash
|
||||
git checkout main
|
||||
git merge redesign-pricing
|
||||
git push origin main
|
||||
```
|
||||
* **If you don't like it and want to scrap it**:
|
||||
```bash
|
||||
git checkout main
|
||||
git branch -D redesign-pricing
|
||||
```
|
||||
*(Your project instantly returns to the stable working state!)*
|
||||
|
||||
---
|
||||
|
||||
## 🧰 3. Troubleshooting & Quick Fixes
|
||||
|
||||
### If you forgot to pull before editing:
|
||||
If you edited code locally before pulling and Git says you have local changes:
|
||||
```bash
|
||||
git stash # Temporarily sets your local edits aside
|
||||
git pull origin main # Gets the latest code from GitHub
|
||||
git stash pop # Re-applies your local edits on top
|
||||
```
|
||||
|
||||
### Save credentials so you don't retype tokens:
|
||||
```bash
|
||||
git config --global credential.helper store
|
||||
```
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
> Built strictly to specification from `PROJECT_REQUIREMENT_DOCUMENTATION.md` (PRD v1.1).
|
||||
> Dynamic React (Next.js App Router + TypeScript + Tailwind CSS) marketing and try-it engine driven by JSON content and an external, replaceable API Catalogue connected to `FastAPI_BACKEND`.
|
||||
>
|
||||
> 📘 **Home PC Setup Guide (What to do after clone):** See [SETUP_README.md](./SETUP_README.md).
|
||||
> 📘 **Multi-Location Sync & Branching Guide:** See [GIT_README.md](./GIT_README.md).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
# 🚀 Home PC Setup Guide: CRE Innovations (`WEBB`)
|
||||
|
||||
This step-by-step guide explains exactly how to set up and run this website on your home computer from scratch after cloning.
|
||||
|
||||
---
|
||||
|
||||
## 📋 Step 0: Check Prerequisites
|
||||
|
||||
Before starting, make sure your home PC has **Node.js** and **Git** installed.
|
||||
|
||||
Open your terminal (Command Prompt, PowerShell, or macOS/Linux Terminal) and run:
|
||||
|
||||
```bash
|
||||
node -v
|
||||
npm -v
|
||||
git --version
|
||||
```
|
||||
|
||||
* **Node.js**: Recommended version is **Node 18.17+** or **Node 20+** (LTS).
|
||||
*(If you don't have Node.js installed, download the LTS version from [nodejs.org](https://nodejs.org/)).*
|
||||
|
||||
---
|
||||
|
||||
## 📥 Step 1: Clone the Repository
|
||||
|
||||
Choose a folder on your home PC where you keep your coding projects (for example, `Desktop` or `Projects`), open your terminal in that folder, and run:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/vaishnosingh/webb.git
|
||||
```
|
||||
|
||||
Then move into the project directory:
|
||||
|
||||
```bash
|
||||
cd webb
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📦 Step 2: Install Project Dependencies
|
||||
|
||||
Install all required packages (Next.js, React, Tailwind CSS, Lucide, Framer Motion, Lenis, Three.js, etc.):
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
> **Note:** This will create your local `node_modules/` folder. It usually takes 30–60 seconds depending on your internet connection.
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ Step 3: Environment Configuration (Optional)
|
||||
|
||||
The website works **100% out of the box** without any `.env` file because it includes safe fallback defaults and an automatic simulated neural mock engine.
|
||||
|
||||
If you want to configure custom ports or backend endpoints, you can optionally create a `.env.local` file in the root folder:
|
||||
|
||||
```env
|
||||
# Optional configuration:
|
||||
SITE_URL=http://localhost:3000
|
||||
API_BACKEND_URL=http://127.0.0.1:6666
|
||||
```
|
||||
|
||||
> **Note:** If the local Python FastAPI GPU cluster (`http://127.0.0.1:6666`) is not running on your home PC, you can still test every photo tool seamlessly! The website has a built-in neural simulation engine (`mockEngine.ts`) that automatically returns high-fidelity results.
|
||||
|
||||
---
|
||||
|
||||
## 💻 Step 4: Run the Development Server
|
||||
|
||||
Start the local Next.js development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
You will see output like:
|
||||
```text
|
||||
▲ Next.js 14.2.35
|
||||
- Local: http://localhost:3000
|
||||
- Network: http://0.0.0.0:3000
|
||||
|
||||
✓ Ready in 1.5s
|
||||
```
|
||||
|
||||
Now, open your web browser (Chrome, Brave, Edge, Safari, Firefox) and navigate to:
|
||||
👉 **[http://localhost:3000](http://localhost:3000)**
|
||||
|
||||
---
|
||||
|
||||
## 🧪 Step 5: Verify the Build & Tests (Sanity Check)
|
||||
|
||||
To verify that all 19 unit tests pass and the production build compiles cleanly on your home machine:
|
||||
|
||||
### Run unit tests:
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
*(All 19 Vitest unit tests should pass with green checkmarks).*
|
||||
|
||||
### Test production build:
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
*(Confirms that all 18 static & dynamic pages compile with 0 TypeScript errors).*
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Common Issues & How to Fix Them
|
||||
|
||||
### 1. "Port 3000 is already in use"
|
||||
If another app on your home PC is using port 3000, either stop that process or start this site on port 3001:
|
||||
```bash
|
||||
npm run dev -- -p 3001
|
||||
```
|
||||
Then visit `http://localhost:3001`.
|
||||
|
||||
### 2. "Node version mismatch or unsupported engine"
|
||||
If you get Node syntax errors, verify your Node version with `node -v`. If it is older than version 18, update Node.js to the latest LTS from [nodejs.org](https://nodejs.org/).
|
||||
|
||||
### 3. "Permission denied when pushing to GitHub"
|
||||
When pushing changes from your home PC, GitHub requires a **Personal Access Token** (PAT) instead of your regular account password:
|
||||
* Username: your GitHub username (`vaishnosingh`)
|
||||
* Password: your GitHub Personal Access Token (starts with `ghp_...`)
|
||||
|
||||
To prevent typing it every time on your home PC:
|
||||
```bash
|
||||
git config --global credential.helper store
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🔄 Daily Workflow (Syncing Back to Office)
|
||||
|
||||
Once you make changes at home and want to continue at the office tomorrow:
|
||||
1. `git add .`
|
||||
2. `git commit -m "feat: work done at home"`
|
||||
3. `git push origin main`
|
||||
|
||||
For the full multi-location syncing guide and branching cheatsheet, read:
|
||||
👉 **[GIT_README.md](./GIT_README.md)**
|
||||
@@ -3,7 +3,11 @@
|
||||
"title": "Portrait_Retouching",
|
||||
"api_key": "Portrait_Retouching",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/portrait/",
|
||||
"chips": ["portrait", "face", "beauty"],
|
||||
"chips": [
|
||||
"portrait",
|
||||
"face",
|
||||
"beauty"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-blemish-remover",
|
||||
@@ -35,9 +39,21 @@
|
||||
}
|
||||
],
|
||||
"subs": [
|
||||
{ "d": "Primary acne and blemish removal", "m": "POST", "p": "/blemish_remover/image/" },
|
||||
{ "d": "Eye defect, iris clarity, and sclera correction", "m": "POST", "p": "/blemish_remover/eye_fix/" },
|
||||
{ "d": "Full skin texture smoothening and pore tone balancing", "m": "POST", "p": "/blemish_remover/improver/" }
|
||||
{
|
||||
"d": "Primary acne and blemish removal",
|
||||
"m": "POST",
|
||||
"p": "/blemish_remover/image/"
|
||||
},
|
||||
{
|
||||
"d": "Eye defect, iris clarity, and sclera correction",
|
||||
"m": "POST",
|
||||
"p": "/blemish_remover/eye_fix/"
|
||||
},
|
||||
{
|
||||
"d": "Full skin texture smoothening and pore tone balancing",
|
||||
"m": "POST",
|
||||
"p": "/blemish_remover/improver/"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -101,8 +117,16 @@
|
||||
}
|
||||
],
|
||||
"subs": [
|
||||
{ "d": "Targeted teeth whitening", "m": "POST", "p": "/teeth_whitener/image/" },
|
||||
{ "d": "Full face smile brightening", "m": "POST", "p": "/teeth_whitener/image_full/" }
|
||||
{
|
||||
"d": "Targeted teeth whitening",
|
||||
"m": "POST",
|
||||
"p": "/teeth_whitener/image/"
|
||||
},
|
||||
{
|
||||
"d": "Full face smile brightening",
|
||||
"m": "POST",
|
||||
"p": "/teeth_whitener/image_full/"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -142,7 +166,11 @@
|
||||
"title": "Restoration_And_Enhancement",
|
||||
"api_key": "Restoration_And_Enhancement",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/restoration/",
|
||||
"chips": ["restore", "enhance", "color"],
|
||||
"chips": [
|
||||
"restore",
|
||||
"enhance",
|
||||
"color"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-new-enhancer",
|
||||
@@ -174,8 +202,16 @@
|
||||
}
|
||||
],
|
||||
"subs": [
|
||||
{ "d": "Standard 2x Clarity Enhancement", "m": "POST", "p": "/new_enhancer/image/" },
|
||||
{ "d": "Legacy Balanced Enhancement", "m": "POST", "p": "/new_enhancer/image_previous/" }
|
||||
{
|
||||
"d": "Standard 2x Clarity Enhancement",
|
||||
"m": "POST",
|
||||
"p": "/new_enhancer/image/"
|
||||
},
|
||||
{
|
||||
"d": "Legacy Balanced Enhancement",
|
||||
"m": "POST",
|
||||
"p": "/new_enhancer/image_previous/"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -246,7 +282,11 @@
|
||||
"title": "Background_And_Cutout",
|
||||
"api_key": "Background_And_Cutout",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/cutout/",
|
||||
"chips": ["background", "cutout", "lama"],
|
||||
"chips": [
|
||||
"background",
|
||||
"cutout",
|
||||
"lama"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-bg-remover-p3m",
|
||||
@@ -316,7 +356,11 @@
|
||||
"title": "Creative_And_Artistic",
|
||||
"api_key": "Creative_And_Artistic",
|
||||
"api_ip_link": "http://127.0.0.1:6666/apis/mlm/creative/",
|
||||
"chips": ["cartoon", "polaroid", "art"],
|
||||
"chips": [
|
||||
"cartoon",
|
||||
"polaroid",
|
||||
"art"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-cartoon-avatar",
|
||||
@@ -381,5 +425,36 @@
|
||||
"subs": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "portrait-retouch",
|
||||
"api_key": "portrait-retouch",
|
||||
"api_ip_link": "http://127.0.0.1:8888",
|
||||
"chips": [
|
||||
"custom",
|
||||
"neural"
|
||||
],
|
||||
"endpoints": [
|
||||
{
|
||||
"id": "api-glow-portrait-ai",
|
||||
"title": "AI Studio Glow & Skin Illuminator",
|
||||
"summary": "Generates natural golden hour studio radiance and epidermal luminescence.",
|
||||
"full_url": "http://127.0.0.1:8888/apis/glow/process/",
|
||||
"path": "/apis/glow/process/",
|
||||
"port": "8888",
|
||||
"method": "POST",
|
||||
"resp": "image/jpeg",
|
||||
"params": [
|
||||
{
|
||||
"n": "image",
|
||||
"ty": "file (binary)",
|
||||
"rq": true,
|
||||
"lc": "multipart/form-data",
|
||||
"ds": "Input source photograph for transformation."
|
||||
}
|
||||
],
|
||||
"headers": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Blemish & Acne Remover",
|
||||
"hi": "एआई मुंहासे और दाग हटाने वाला"
|
||||
"en": "AI Blemish Remover",
|
||||
"hi": "एआई दाग हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Remove acne, pimples, scars, and eye defects while preserving natural skin pores.",
|
||||
"hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए मुंहासे, दाग और आंखों के दोष हटाएं।"
|
||||
"en": "Remove blemishes, pimples, scars, and eye defects while preserving natural skin pores.",
|
||||
"hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए दाग और आंखों के दोष हटाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.eyebag.remove",
|
||||
"slug": "eye-bag-remover",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "Eye Bag & Dark Circle Remover",
|
||||
"hi": "आई बैग और डार्क सर्कल हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Smooth under-eye dark circles, shadows, and puffiness for an awake, refreshed look without blur.",
|
||||
"hi": "थकी आंखों के नीचे के काले घेरे और सूजन को हटाएं और ताजा रूप पाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-eye-bag-remover",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload face photo", "hi": "चेहरे की फोटो अपलोड करें" },
|
||||
"desc": { "en": "Pick a clear portrait showing under-eye areas.", "hi": "आंखों के नीचे का क्षेत्र दिखाने वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Neural puffiness fix", "hi": "सूजन सुधार" },
|
||||
"desc": { "en": "Balances melanin shadows while preserving natural skin pores.", "hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए छाया संतुलित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download photo", "hi": "फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Save instant result or export 4K in Portrait Studio AI.", "hi": "तुरंत परिणाम सहेजें या 4K में निर्यात करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Natural dark circle softening with intact micro-skin texture"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Will this make my eyes look airbrushed or fake?",
|
||||
"a": "No, our model selectively brightens melanin hyperpigmentation and softens puffiness shadows without wiping away natural facial contours or skin micro-textures."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyeredness.remove", "face.teeth.whitener"],
|
||||
"seo": {
|
||||
"title": "Remove Eye Bags & Dark Circles Free Online | CRE Innovations",
|
||||
"description": "Gentle under-eye dark circle and puffiness reduction free online. Refresh tired eyes with natural skin texture preservation."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.eyeredness.remove",
|
||||
"slug": "eye-redness-remover",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Eye Redness & Flash Corrector",
|
||||
"hi": "आंखों का लालपन और फ्लैश हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Instantly fix red-eye from camera flash and restore natural dark iris clarity and bright sclera.",
|
||||
"hi": "कैमरा फ्लैश से आंखों के लालपन को हटाएं और प्राकृतिक आंखों की चमक वापस लाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "ml-eye-redness-remover",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any portrait or selfie with red-eye flash reflection.", "hi": "लाल आंखों वाली कोई भी तस्वीर अपलोड करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "AI eye correction", "hi": "एआई आंख सुधार" },
|
||||
"desc": { "en": "Neural iris segmentation restores authentic eye pigmentation.", "hi": "एआई प्राकृतिक आंखों का रंग पुनर्स्थापित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download HD result", "hi": "एचडी परिणाम डाउनलोड करें" },
|
||||
"desc": { "en": "Save clean photo or open in Portrait Studio AI.", "hi": "तस्वीर सहेजें या पोर्ट्रेट स्टूडियो में खोलें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Red-eye flash reflection removal with vibrant iris definition"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does AI detect red-eye reflections?",
|
||||
"a": "Our pupil-detection network locates the corneal reflection zone and neutralizes flash glare while preserving natural iris rings and pupil depth."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyebag.remove", "face.teeth.whitener"],
|
||||
"seo": {
|
||||
"title": "Free Online AI Eye Redness & Flash Corrector | CRE Innovations",
|
||||
"description": "Fix red-eye reflection and flash glare in portrait photos free online. Neural pupil correction with natural eye pigmentation."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "cutout.lama.erase",
|
||||
"slug": "object-eraser",
|
||||
"status": "published",
|
||||
"category": "background-cutout",
|
||||
"name": {
|
||||
"en": "LaMa AI Object Eraser",
|
||||
"hi": "लामा एआई ऑब्जेक्ट इरेज़र"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Erase unwanted photobombers, objects, text, and tourists with context-aware smart inpainting.",
|
||||
"hi": "स्मार्ट इनपेंटिंग के साथ अवांछित वस्तुओं, लोगों और टेक्स्ट को मिटाएं।"
|
||||
},
|
||||
"homeApp": "bg-cleaner-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-lama-cleaner",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload image", "hi": "छवि अपलोड करें" },
|
||||
"desc": { "en": "Select any photo with unwanted objects or photobombers.", "hi": "अवांछित वस्तुओं वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Brush to erase", "hi": "मिटाने के लिए ब्रश करें" },
|
||||
"desc": { "en": "AI inpainting predicts and reconstructs hidden background textures.", "hi": "एआई पृष्ठभूमि को निर्बाध रूप से पुनर्निर्मित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download clean photo", "hi": "साफ फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Download clean photo or open in Magic Cutout Studio.", "hi": "साफ तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Context-aware object erasing with natural texture reconstruction"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does LaMa inpainting work?",
|
||||
"a": "LaMa uses Large Mask Inpainting Fourier convolutions to understand scene context and seamlessly synthesize missing patterns, horizons, and textures."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["cutout.p3m.bg", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Free AI Object Eraser Online (LaMa Inpainting) | CRE Innovations",
|
||||
"description": "Erase photobombers, tourists, power lines, and unwanted objects from photos free online with LaMa neural inpainting."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.glow.portrait",
|
||||
"slug": "portrait-glow",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Studio Glow & Skin Illuminator",
|
||||
"hi": "एआई स्टूडियो ग्लो और त्वचा प्रदीपक"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Generates natural golden hour studio radiance, warm highlights, and epidermal luminescence.",
|
||||
"hi": "प्राकृतिक गोल्डन ऑवर स्टूडियो चमक और उज्ज्वल त्वचा का उत्पादन करें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-glow-portrait-ai",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any selfie or studio photo.", "hi": "कोई भी सेल्फी या पोर्ट्रेट चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Neural studio lighting", "hi": "न्यूरल स्टूडियो लाइटिंग" },
|
||||
"desc": { "en": "Calculates depth and applies soft golden hour luminescence.", "hi": "सॉफ्ट गोल्डन ऑवर रोशनी लागू करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download radiant portrait", "hi": "चमकदार पोर्ट्रेट डाउनलोड करें" },
|
||||
"desc": { "en": "Save your glowing portrait or export in 4K.", "hi": "अपनी चमकती तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Warm studio skin glow with three-dimensional facial contouring"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Does this alter my facial structure?",
|
||||
"a": "No, AI Studio Glow computes 3D surface normals to simulate physical studio rim and key lights without distorting facial anatomy."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.teeth.whitener", "face.eyebag.remove"],
|
||||
"seo": {
|
||||
"title": "AI Studio Glow & Skin Illuminator Free Online | CRE Innovations",
|
||||
"description": "Simulate warm golden hour studio lighting and radiant skin glow free online. Neural 3D portrait illumination."
|
||||
}
|
||||
}
|
||||
@@ -4,143 +4,192 @@
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "CRE Innovations | Advanced AI Photo Tools & Creative Studio",
|
||||
"description": "Transform photos in seconds with CRE Innovations neural vision models: acne removal, P3M background matting, 4K photo restoration, and anime avatars.",
|
||||
"description": "Transform photos in seconds with CRE Innovations neural vision models: portrait retouching, P3M background matting, 4K photo restoration, and anime avatars.",
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"id": "hero-section",
|
||||
"type": "hero",
|
||||
"variant": "tryit",
|
||||
"variant": "frontpage",
|
||||
"tier": "brand",
|
||||
"tierLabel": "Tier 1: Brand & Hero",
|
||||
"folderPath": "management/pages/home/sections/hero",
|
||||
"props": {
|
||||
"badge": "Photographic tools",
|
||||
"title": {
|
||||
"en": "Transform Photos with Next-Gen Neural AI",
|
||||
"en": "Photographic tools, built with precision.",
|
||||
"hi": "नेक्स्ट-जेन न्यूरल एआई के साथ फोटो बदलें"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Advanced neural vision tools with zero sign-up and zero data retention. Process high-resolution portraits, precision cutouts, and restorations directly in your browser.",
|
||||
"en": "Retouch portraits, extract cutouts, and restore archival prints directly in your browser.",
|
||||
"hi": "बिना साइन-अप के स्टूडियो-ग्रेड फोटो टूल्स मुफ़्त में आज़माएं। हमारे मोबाइल ऐप्स में 4K एक्सपोर्ट प्राप्त करें।"
|
||||
},
|
||||
"tryIt": {
|
||||
"toolRef": "face.blemish.remove"
|
||||
"primaryCta": {
|
||||
"label": "Explore our tools",
|
||||
"href": "#our-tools"
|
||||
},
|
||||
"secondaryCta": {
|
||||
"label": "Mobile studio apps",
|
||||
"href": "#recommended-apps"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "live-reel",
|
||||
"type": "transformationReel",
|
||||
"props": {}
|
||||
},
|
||||
{
|
||||
"id": "stats-section",
|
||||
"type": "stats",
|
||||
"id": "our-tools",
|
||||
"type": "shiftableToolsGrid",
|
||||
"tier": "showcase",
|
||||
"tierLabel": "Tier 2: Interactive Tools Grid",
|
||||
"folderPath": "management/pages/home/sections/our-tools",
|
||||
"props": {
|
||||
"items": [
|
||||
{ "value": "140M+", "label": "Photos Enhanced" },
|
||||
{ "value": "4.9 ★", "label": "App Store & Play Rating" },
|
||||
{ "value": "4K", "label": "Ultra HD Lossless Export" },
|
||||
{ "value": "4 Apps", "label": "Dedicated Mobile Suites" }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "flagship-banners",
|
||||
"type": "majorToolBanners",
|
||||
"props": {}
|
||||
},
|
||||
{
|
||||
"id": "tools-vertical-stack",
|
||||
"type": "verticalToolStack",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "The Creative Studio Suite",
|
||||
"hi": "क्रिएटिव स्टूडियो सूट"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "workflow-pipeline",
|
||||
"type": "workflowVisualizer",
|
||||
"props": {}
|
||||
},
|
||||
{
|
||||
"id": "apps-section",
|
||||
"type": "appCards",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "Specialized Mobile Apps for Every Creative Task",
|
||||
"hi": "हर रचनात्मक कार्य के लिए समर्पित मोबाइल ऐप्स"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Ready for high volume batch editing and lossless 4K export? Download our dedicated mobile apps for iOS and Android.",
|
||||
"hi": "बैच संपादन और 4K निर्यात के लिए तैयार हैं? हमारे समर्पित मोबाइल ऐप डाउनलोड करें।"
|
||||
},
|
||||
"source": "all",
|
||||
"showRating": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "quiz-section",
|
||||
"type": "appPicker",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "Not Sure Which Tool You Need?",
|
||||
"hi": "निश्चय नहीं कि कौन सा टूल चाहिए?"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Select your creative goal to get an instant tailored recommendation.",
|
||||
"hi": "त्वरित अनुशंसा प्राप्त करने के लिए अपना लक्ष्य चुनें।"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "home-faqs",
|
||||
"type": "faq",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "Frequently Asked Questions",
|
||||
"hi": "अक्सर पूछे जाने वाले प्रश्न"
|
||||
},
|
||||
"badge": "Tool catalogue",
|
||||
"title": "Our tools",
|
||||
"subtitle": "Test any tool directly in your browser with your own photos.",
|
||||
"items": [
|
||||
{
|
||||
"q": "Is the online web try 100% free without signing up?",
|
||||
"a": "Yes! You receive daily free tries across every tool without creating an account, giving an email, or entering a credit card."
|
||||
"id": "tool-blemish",
|
||||
"slug": "blemish-remover",
|
||||
"title": "Skin & Blemish Retoucher",
|
||||
"mediaType": "comparison",
|
||||
"beforeUrl": "/management/pages/home/sections/our-tools/blemish-remover/before.jpg",
|
||||
"afterUrl": "/management/pages/home/sections/our-tools/blemish-remover/after.jpg"
|
||||
},
|
||||
{
|
||||
"q": "What is the CRE Innovations Zero-Storage Policy?",
|
||||
"a": "When you process a photo on our web try tools, the pixels are analyzed exclusively in volatile RAM and streamed directly back to your browser session. Your photos are never stored on disk, logged, or used for model training."
|
||||
"id": "tool-bg-remover",
|
||||
"slug": "background-remover",
|
||||
"title": "Background Remover (Alpha Matting)",
|
||||
"mediaType": "video",
|
||||
"videoUrl": "/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4",
|
||||
"poster": "/management/pages/home/sections/our-tools/background-remover/poster.jpg"
|
||||
},
|
||||
{
|
||||
"q": "Why does each tool link to a specific mobile app?",
|
||||
"a": "Each CRE Innovations app is engineered for a specific craft (e.g. Portrait Studio AI for face retouching, Magic Cutout Studio for ecommerce and object removal). This ensures the fastest on-device neural acceleration and deep slider controls."
|
||||
"id": "tool-enhancer",
|
||||
"slug": "photo-enhancer",
|
||||
"title": "Photo Enhancer 4K",
|
||||
"mediaType": "comparison",
|
||||
"beforeUrl": "/management/pages/home/sections/our-tools/photo-enhancer/before.jpg",
|
||||
"afterUrl": "/management/pages/home/sections/our-tools/photo-enhancer/after.jpg"
|
||||
},
|
||||
{
|
||||
"q": "How do in-app purchases and credits work?",
|
||||
"a": "Free web tries are available daily on this website. When you install our mobile apps, in-app purchases and credit packs are handled safely through Apple App Store and Google Play Store. Purchases and credits are specific to each individual app."
|
||||
"id": "tool-restorer",
|
||||
"slug": "old-photo-restorer",
|
||||
"title": "Vintage Photo Restorer",
|
||||
"mediaType": "comparison",
|
||||
"beforeUrl": "/management/pages/home/sections/our-tools/old-photo-restorer/before.jpg",
|
||||
"afterUrl": "/management/pages/home/sections/our-tools/old-photo-restorer/after.jpg"
|
||||
},
|
||||
{
|
||||
"id": "tool-colorization",
|
||||
"slug": "colorization",
|
||||
"title": "AI Colorizer",
|
||||
"mediaType": "comparison",
|
||||
"beforeUrl": "/management/pages/home/sections/our-tools/colorization/before.jpg",
|
||||
"afterUrl": "/management/pages/home/sections/our-tools/colorization/after.jpg"
|
||||
},
|
||||
{
|
||||
"id": "tool-teeth",
|
||||
"slug": "teeth-whitener",
|
||||
"title": "Teeth Whitener & Brightener",
|
||||
"mediaType": "comparison",
|
||||
"beforeUrl": "/management/pages/home/sections/our-tools/teeth-whitener/before.jpg",
|
||||
"afterUrl": "/management/pages/home/sections/our-tools/teeth-whitener/after.jpg"
|
||||
},
|
||||
{
|
||||
"id": "tool-cartoon",
|
||||
"slug": "cartoon-avatar",
|
||||
"title": "Cartoon & Anime Avatar",
|
||||
"mediaType": "comparison",
|
||||
"beforeUrl": "/management/pages/home/sections/our-tools/cartoon-avatar/before.jpg",
|
||||
"afterUrl": "/management/pages/home/sections/our-tools/cartoon-avatar/after.jpg"
|
||||
},
|
||||
{
|
||||
"id": "tool-polaroid",
|
||||
"slug": "polaroid-maker",
|
||||
"title": "Vintage Polaroid Maker",
|
||||
"mediaType": "photo",
|
||||
"imageUrl": "/management/pages/home/sections/our-tools/polaroid-maker/image.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "cta-banner",
|
||||
"type": "ctaBanner",
|
||||
"id": "trendy-bento-section",
|
||||
"type": "trendyBento",
|
||||
"tier": "showcase",
|
||||
"tierLabel": "Tier 2: Trendy Neural Effects",
|
||||
"folderPath": "management/pages/home/sections/trendy-bento",
|
||||
"props": {
|
||||
"badge": "Model capabilities",
|
||||
"title": "Trendy features",
|
||||
"subtitle": "Computer vision models engineered for professional photographers and studios."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "recommended-apps",
|
||||
"type": "recommendedApps",
|
||||
"tier": "ecosystem",
|
||||
"tierLabel": "Tier 3: Native Apps Studio",
|
||||
"folderPath": "management/pages/home/sections/recommended-apps",
|
||||
"props": {
|
||||
"badge": "Native clients",
|
||||
"title": "Mobile studio applications",
|
||||
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "how-it-works",
|
||||
"type": "howItWorks",
|
||||
"tier": "workflow",
|
||||
"tierLabel": "Tier 4: Neural Workflow",
|
||||
"folderPath": "management/pages/home/sections/how-it-works",
|
||||
"props": {
|
||||
"badge": "Neural pipeline",
|
||||
"title": "How the process works",
|
||||
"subtitle": "Synchronous GPU inference in volatile memory, returning studio-quality exports in seconds."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "community-reviews",
|
||||
"type": "reviewsMarquee",
|
||||
"tier": "social-proof",
|
||||
"tierLabel": "Tier 4: Verified Reviews",
|
||||
"folderPath": "management/pages/home/sections/community-reviews",
|
||||
"props": {
|
||||
"badge": "Community feedback",
|
||||
"title": "Photographer & studio notes",
|
||||
"subtitle": "Feedback from portrait photographers, archivists, and studio retouchers."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "home-faqs",
|
||||
"type": "faq",
|
||||
"tier": "knowledge",
|
||||
"tierLabel": "Tier 5: FAQs & Knowledge",
|
||||
"folderPath": "management/pages/home/sections/faqs",
|
||||
"props": {
|
||||
"badge": "Inquiries & specifications",
|
||||
"title": {
|
||||
"en": "Ready to Transform Your Visuals?",
|
||||
"hi": "क्या आप अपनी तस्वीरों को बदलने के लिए तैयार हैं?"
|
||||
"en": "Frequently asked questions",
|
||||
"hi": "अक्सर पूछे जाने वाले सवाल"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Launch any of our 8+ AI photo tools online or download the apps for Android & iOS with 50 bonus credits.",
|
||||
"hi": "ऑनलाइन 8+ एआई फोटो टूल्स आज़माएं या 50 बोनस क्रेडिट के साथ ऐप डाउनलोड करें।"
|
||||
},
|
||||
"primaryCta": {
|
||||
"label": { "en": "Explore All Free Tools", "hi": "सभी टूल्स देखें" },
|
||||
"href": "/tools"
|
||||
},
|
||||
"secondaryCta": {
|
||||
"label": { "en": "Get Mobile Apps", "hi": "मोबाइल ऐप प्राप्त करें" },
|
||||
"href": "/apps"
|
||||
}
|
||||
"items": [
|
||||
{
|
||||
"q": "Do you store or retain uploaded user photos?",
|
||||
"a": "Never. CRE Innovations enforces a strict Zero-Retention Policy. All photo inferences occur synchronously in volatile GPU memory and the enhanced image is streamed straight back to your browser session. No images are saved on disk or remote servers."
|
||||
},
|
||||
{
|
||||
"q": "Can I try all tools free on the web without an account?",
|
||||
"a": "Yes! Every visitor gets 5 free trials each day per tool without registering or providing an email address. For high volume batch editing and unlimited processing, download our native mobile apps."
|
||||
},
|
||||
{
|
||||
"q": "How does the handoff to the mobile app work?",
|
||||
"a": "Each tool has a dedicated Home Mobile App. When you want to continue editing on your phone, click 'Get the App' or scan the dynamically generated QR code on desktop to jump directly into the app with a 50 free credit welcome bonus."
|
||||
},
|
||||
{
|
||||
"q": "What image formats and file sizes are supported?",
|
||||
"a": "We accept JPEG, PNG, and WebP images up to 12MB. The engine performs lossless reconstruction returning studio-quality 4K resolutions."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -8,47 +8,22 @@
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"id": "tools-header",
|
||||
"type": "hero",
|
||||
"variant": "centered",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "All Free Online AI Photo Tools",
|
||||
"hi": "सभी निःशुल्क ऑनलाइन एआई फोटो टूल्स"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Select any tool to try instantly in your browser. No sign-up required. Download the full mobile app for 4K batch processing.",
|
||||
"hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "all-tools-grid",
|
||||
"type": "toolGrid",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "AI Photo & Vision Tools Studio",
|
||||
"hi": "एआई फोटो और विज़न टूल्स स्टूडियो"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Client-side neural vision models running directly in volatile GPU memory with zero retention. Test interactive before/after sliders or export in native 4K.",
|
||||
"hi": "ब्राउज़र में तुरंत आज़माने के लिए कोई भी टूल चुनें। कोई साइन-अप आवश्यक नहीं है।"
|
||||
},
|
||||
"source": "all",
|
||||
"showCategoryFilter": true,
|
||||
"showSearch": true,
|
||||
"columns": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tools-cta",
|
||||
"type": "ctaBanner",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "Need Batch Processing or 4K Lossless Export?",
|
||||
"hi": "बैच प्रोसेसिंग या 4K एक्सपोर्ट चाहिए?"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Each tool connects directly to its dedicated mobile app with advanced brush tools and unlimited processing.",
|
||||
"hi": "प्रत्येक टूल सीधे अपने समर्पित मोबाइल ऐप से जुड़ता है।"
|
||||
},
|
||||
"primaryCta": {
|
||||
"label": { "en": "View Mobile Apps", "hi": "मोबाइल ऐप देखें" },
|
||||
"href": "/apps"
|
||||
}
|
||||
"columns": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -11,30 +11,14 @@
|
||||
"breadcrumbs": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tool-tryit",
|
||||
"type": "tryItWidget",
|
||||
"props": {
|
||||
"toolRef": "{{tool.id}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tool-beforeafter",
|
||||
"type": "beforeAfter",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "Real Before & After Comparisons",
|
||||
"hi": "वास्तविक पहले और बाद की तुलना"
|
||||
},
|
||||
"items": "{{tool.content.examples}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tool-handoff",
|
||||
"type": "appHandoff",
|
||||
"props": {
|
||||
"toolRef": "{{tool.id}}",
|
||||
"appRef": "{{tool.homeApp}}"
|
||||
"appRef": "{{tool.homeApp}}",
|
||||
"showBonus": true,
|
||||
"showQr": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
# 3D Cinematic Graphics Overhaul (Enigma Cult Reference - Light Luxury Theme)
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** Transform the website into an immersive 3D cinematic experience inspired by `enigmascult.com` (scroll-driven horizontal pinning, 3D holographic image comparison, 3D perspective spatial depth), while preserving an airy, high-fashion **Light Shade Theme** (creamy sandstone `#FAF8F5`, metallic champagne gold `#C5A880`, titanium glass, and studio sapphire accents).
|
||||
|
||||
**Architecture:**
|
||||
- **Cinematic 3D Comparison Viewport (`Cinematic3DComparison.tsx`)**: Replaces flat before/after containers with a 3D perspective card (`perspective(1400px)`) that reacts with real-time inertial 3D tilt to cursor/touch coordinates, floating 3D telemetry tags (`translateZ(40px)`), an illuminated holographic laser split line with champagne-sapphire edge caustics, and dynamic specular glare.
|
||||
- **Scroll-Driven Horizontal Motion Gallery (`CinematicHorizontalScrollSection.tsx`)**: Pinned vertical-to-horizontal scrolling section where the viewport locks and translates a filmstrip of flagship models horizontally with 3D perspective card rotations (`rotateY`, `scale`, `translateZ`) and index counters (`01 / 03`).
|
||||
- **3D Cinematic Hero & Spatial Atmosphere**: Integrates Three.js kinetic neural prism with light-mode refractions into the hero alongside luxury editorial display typography and metallic badges.
|
||||
- **Light Luxury Color Scheme & CSS Utilities**: Added to `globals.css` (sandstone `#FAF8F5`, metallic champagne `#C5A880`, 3D perspective, `preserve-3d`, deep ambient drop shadows).
|
||||
|
||||
**Tech Stack:** Next.js 14, React 18, Three.js, Lenis Smooth Scroll, Tailwind CSS, Lucide React.
|
||||
|
||||
---
|
||||
|
||||
### Task 1: Light Luxury 3D Perspective CSS Utilities & Theme Colors
|
||||
|
||||
**Files:**
|
||||
- Modify: `src/app/globals.css`
|
||||
- Test: Build verification (`npm run build`)
|
||||
|
||||
**Steps:**
|
||||
- [ ] Step 1.1: Add 3D perspective utilities to `globals.css` (`perspective-1000`, `perspective-1400`, `preserve-3d`, `backface-hidden`).
|
||||
- [ ] Step 1.2: Add light-mode luxury color variables and glass tokens (`--color-champagne: #C5A880`, `--color-sandstone: #FAF8F5`, `--shadow-cinematic-3d`).
|
||||
- [ ] Step 1.3: Add holographic laser line and caustic animation keyframes (`@keyframes laser-glow`, `@keyframes holographic-scan`).
|
||||
- [ ] Step 1.4: Build and verify CSS compile.
|
||||
|
||||
---
|
||||
|
||||
### Task 2: Build `Cinematic3DComparison.tsx` (Complete 3D Image Comparison Viewport)
|
||||
|
||||
**Files:**
|
||||
- Create: `src/components/ui/Cinematic3DComparison.tsx`
|
||||
- Modify: `src/components/ui/BeforeAfterSlider.tsx`
|
||||
- Test: Verify in browser with interactive dragging, cursor 3D tilting, and holographic laser line.
|
||||
|
||||
**Steps:**
|
||||
- [ ] Step 2.1: Implement 3D perspective wrapper with mouse/touch inertial tilt (`rotateX`, `rotateY`, `translateZ`).
|
||||
- [ ] Step 2.2: Implement dynamic specular glare overlay that follows mouse coordinates.
|
||||
- [ ] Step 2.3: Build holographic split divider with champagne-gold and sapphire laser illumination and 3D tactile circular handle.
|
||||
- [ ] Step 2.4: Add floating 3D telemetry tags at `translateZ(30px)` (`[ DELTA MAP: ACTIVE ]`, `[ 4K LOSSLESS ]`).
|
||||
- [ ] Step 2.5: Integrate into `BeforeAfterSlider.tsx` so existing before/after widgets gain the 3D cinematic capabilities.
|
||||
- [ ] Step 2.6: Verify in Puppeteer.
|
||||
|
||||
---
|
||||
|
||||
### Task 3: Build `CinematicHorizontalScrollSection.tsx` (Scroll-Driven Horizontal Motion Gallery)
|
||||
|
||||
**Files:**
|
||||
- Create: `src/components/sections/CinematicHorizontalScrollSection.tsx`
|
||||
- Modify: `src/components/sections/SectionRenderer.tsx`
|
||||
- Modify: `content/pages/home.json`
|
||||
- Test: Verify pinned scrolling and horizontal translation in browser.
|
||||
|
||||
**Steps:**
|
||||
- [ ] Step 3.1: Build sticky pinned container (`h-[320vh]`, `sticky top-0 h-screen overflow-hidden`) that calculates vertical scroll progress ($0 \to 1$).
|
||||
- [ ] Step 3.2: Translate horizontal track with smooth GPU transform `translate3d(-${x}px, 0, 0)` with 3D perspective rotation on cards based on viewport distance.
|
||||
- [ ] Step 3.3: Render 3 flagship cards with luxury editorial metadata (`INDEX // 01`, `INDEX // 02`, `INDEX // 03`, technical specs, and embedded 3D image comparison).
|
||||
- [ ] Step 3.4: Add progress bar at the bottom with luxury gold-to-sapphire indicator and mobile touch-swipe fallback.
|
||||
- [ ] Step 3.5: Register section in `SectionRenderer.tsx` and configure in `home.json`.
|
||||
- [ ] Step 3.6: Verify in Puppeteer on desktop and mobile viewports.
|
||||
|
||||
---
|
||||
|
||||
### Task 4: Upgrade Hero Section with 3D Kinetic Neural Prism & Luxury Editorial Layout
|
||||
|
||||
**Files:**
|
||||
- Modify: `src/components/sections/HeroSection.tsx`
|
||||
- Modify: `src/components/3d/Hero3DCanvas.tsx`
|
||||
- Test: Verify 3D canvas rendering with luxury light-mode refractions, zero errors, and clean responsive layout.
|
||||
|
||||
**Steps:**
|
||||
- [ ] Step 4.1: Tune `Hero3DCanvas.tsx` crystal materials for light luxury aesthetic (translucent sapphire-champagne refraction with high transmission and gold edge lines).
|
||||
- [ ] Step 4.2: Integrate `Hero3DCanvas` into `HeroSection.tsx` behind the hero title with depth layering.
|
||||
- [ ] Step 4.3: Add Enigma-style metadata chips (`NEURAL VISION SUITE // 2026`, `COORDINATES // STUDIO CORE`).
|
||||
- [ ] Step 4.4: Verify in Puppeteer.
|
||||
|
||||
---
|
||||
|
||||
### Task 5: Production Build, Server Verification, Frame Rate Benchmarks & Git Commit
|
||||
|
||||
**Files:**
|
||||
- All modified components
|
||||
- Test: `npm run build`, route verification script, Puppeteer frame rate benchmark (60/120 FPS).
|
||||
|
||||
**Steps:**
|
||||
- [ ] Step 5.1: Run `npm run build` and confirm 0 errors.
|
||||
- [ ] Step 5.2: Restart production server daemon and run route verification script (`verify_changes.py`).
|
||||
- [ ] Step 5.3: Benchmark scroll frame times in Puppeteer and take screenshots of the 3D cinematic comparison and horizontal scroll gallery.
|
||||
- [ ] Step 5.4: Git commit all changes cleanly.
|
||||
@@ -0,0 +1,90 @@
|
||||
# Homepage Complete UI Overhaul Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
This plan details the complete UI transformation of the homepage in `WEBB` (and synchronized with `WEBB_EDITOR`), implementing all 11 user requirements with MagicUI animations, SF Pro/Poppins/Inter typography, 2x4 expandable shifting tools grid, Bento Grid, 3D How-It-Works visualizer, Marquee reviews, Smooth Cursor, and updating `management/pages/home/page.config.json`.
|
||||
|
||||
---
|
||||
|
||||
## Proposed Changes & File Architecture
|
||||
|
||||
### 1. Typography & Global Styles
|
||||
- Modify: `src/app/layout.tsx` (Load Poppins & Inter via `next/font/google`, define SF Pro fallback, mount `SmoothCursor`)
|
||||
- Modify: `tailwind.config.ts` (Register `font-sans`, `font-display`, `font-poppins`, `font-sf`)
|
||||
- Modify: `src/app/globals.css` (Font variables, smooth cursor styles, bento & marquee keyframes)
|
||||
|
||||
### 2. MagicUI Core Components
|
||||
- Create: `src/components/magicui/text-animate.tsx` (MagicUI TextAnimate with character/word/line animations)
|
||||
- Create: `src/components/magicui/bento-grid.tsx` (MagicUI BentoGrid & BentoCard with spotlight/beam)
|
||||
- Create: `src/components/magicui/marquee.tsx` (MagicUI Marquee infinite scrolling component)
|
||||
- Create: `src/components/magicui/smooth-cursor.tsx` (Spring-interpolated custom cursor)
|
||||
|
||||
### 3. Top Navigation
|
||||
- Modify: `src/components/ui/Navbar.tsx` (Add dedicated Home button/link with active styling)
|
||||
|
||||
### 4. Homepage Sections
|
||||
- Create/Modify: `src/components/sections/HeroSection.tsx` (Clean hero viewport with heading, subheading, and interactive 3D WebGL background visuals)
|
||||
- Create: `src/components/sections/ShiftableToolsGridSection.tsx` (2 rows × 4 columns, rounded windows, photo/video/comparison slider, horizontal shift/expansion on hover, title below, See More button)
|
||||
- Create: `src/components/sections/TrendyBentoSection.tsx` (Bento Grid displaying trendy effects)
|
||||
- Create: `src/components/sections/RecommendedAppsSection.tsx` (Dedicated showcase of mobile apps)
|
||||
- Create: `src/components/sections/HowItWorks3DSection.tsx` (3D animation of image upload -> neural scan -> 4K output return)
|
||||
- Create: `src/components/sections/ReviewsMarqueeSection.tsx` (Infinite marquee with customer reviews)
|
||||
- Modify: `src/components/sections/SectionRenderer.tsx` (Wire up new section types)
|
||||
|
||||
### 5. Content & Management Sync
|
||||
- Modify: `management/pages/home/page.config.json` (Structured with new sections)
|
||||
- Modify: `content/pages/home.json` (Mirror configuration)
|
||||
- Sync to: `WEBB_EDITOR` via `syncEngine.ts`
|
||||
|
||||
---
|
||||
|
||||
## Tasks
|
||||
|
||||
- [ ] **Task 1: Fonts & Global Styling Setup**
|
||||
- Update `src/app/layout.tsx` to load `Poppins` and `Inter` from `next/font/google`, configure `SF Pro` font stack.
|
||||
- Update `tailwind.config.ts` with the new font families.
|
||||
- Verify build and font classes.
|
||||
|
||||
- [ ] **Task 2: Build MagicUI Core UI Components**
|
||||
- Implement `src/components/magicui/text-animate.tsx` supporting `slideLeft`, `fadeIn`, `blurIn`, `scaleUp` by character and word.
|
||||
- Implement `src/components/magicui/marquee.tsx` with bidirectional infinite scroll and fade masks.
|
||||
- Implement `src/components/magicui/bento-grid.tsx` with responsive layout and spotlight hover.
|
||||
- Implement `src/components/magicui/smooth-cursor.tsx` with spring physics and link detection.
|
||||
- Mount `SmoothCursor` in `src/app/layout.tsx`.
|
||||
|
||||
- [ ] **Task 3: Navbar Home Button**
|
||||
- Update `src/components/ui/Navbar.tsx` to include an explicit "Home" button/link with active route detection.
|
||||
|
||||
- [ ] **Task 4: Hero Section (Minimalist + Interactive 3D Background Visuals)**
|
||||
- Update `HeroSection.tsx` so the frontpage view features only the animated heading, subheading, and interactive 3D visuals behind the text.
|
||||
|
||||
- [ ] **Task 5: Shiftable Tools Grid (2 Rows × 4 Columns)**
|
||||
- Implement `ShiftableToolsGridSection.tsx`:
|
||||
- 2 rows × 4 columns (8 tools: blemish-remover, background-remover, photo-enhancer, old-photo-restorer, colorization, teeth-whitener, cartoon-avatar, polaroid-maker).
|
||||
- Windows support 3 media types: image, looping video, or animated comparison slider.
|
||||
- Hover effect: hovered window horizontally expands while shifting adjacent ones sideways.
|
||||
- Minimal title below each window.
|
||||
- Clicking opens `/tools/[slug]`.
|
||||
- Includes "See more tools" button redirecting to `/tools`.
|
||||
|
||||
- [ ] **Task 6: Trendy Effects Bento Grid Section**
|
||||
- Implement `TrendyBentoSection.tsx` with custom rows, columns, and dynamic effects cards using `BentoGrid` and `BentoCard`.
|
||||
|
||||
- [ ] **Task 7: Recommended Apps Section**
|
||||
- Implement `RecommendedAppsSection.tsx` featuring the 4 dedicated mobile apps with ratings, platform badges, and direct links.
|
||||
|
||||
- [ ] **Task 8: How It Works 3D Animation Section**
|
||||
- Implement `HowItWorks3DSection.tsx` with 3D canvas showing card upload, scanning laser processing, and 4K output generation.
|
||||
|
||||
- [ ] **Task 9: Reviews Marquee Section**
|
||||
- Implement `ReviewsMarqueeSection.tsx` with dual-direction infinite marquee showcasing verified user reviews.
|
||||
|
||||
- [ ] **Task 10: Register New Sections in SectionRenderer & Update Management Config**
|
||||
- Wire all new sections into `src/components/sections/SectionRenderer.tsx`.
|
||||
- Update `management/pages/home/page.config.json` and `content/pages/home.json` with the complete ordered section list.
|
||||
- Verify page render on Next.js server.
|
||||
|
||||
- [ ] **Task 11: Sync WEBB_EDITOR & Full System Verification**
|
||||
- Run sync engine to update `WEBB_EDITOR`.
|
||||
- Run test suite (`npm test`).
|
||||
- Verify Next.js production build (`npm run build`).
|
||||
@@ -0,0 +1,90 @@
|
||||
# Management Folder Architecture & Refined Visual UX Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
This plan resolves four core user requirements:
|
||||
1. **Centralized Management Folder (`management/`)**: Modular, page-by-page folder architecture housing all JSON configs and media (before/after images, banners, videos), allowing direct file-drop replacement for live website updates.
|
||||
2. **Tool Page Re-engineering (`/tools/[slug]`)**: Spacious prominent upload studio, borderless result-focused display stage, typography placed outside cards, and a generative latent grain transformation animation.
|
||||
3. **Homepage Tool Stack Cards Hover-Only Slide**: Eliminate simultaneous chaotic auto-sliding across all 8 cards; only animate the card that is actively hovered, and allow click/drag to manually inspect.
|
||||
4. **Fluid, Seamless Horizontal Scroll**: Fix sticky overflow constraints (`overflow-x: clip`), smooth scroll conflicts, and ensure frictionless progression from vertical -> horizontal -> vertical.
|
||||
|
||||
---
|
||||
|
||||
## File Structure & Responsibilities
|
||||
|
||||
```
|
||||
management/
|
||||
├── pages/
|
||||
│ ├── home/
|
||||
│ │ ├── page.config.json # Home page section configuration & copy
|
||||
│ │ └── media/ # Media assets used on home page
|
||||
│ └── tools/
|
||||
│ ├── cartoon-avatar/
|
||||
│ │ ├── tool.config.json # Tool metadata, copy, displayType ("beforeAfter" | "banner")
|
||||
│ │ └── media/ # before.jpg, after.jpg, sample-*.jpg
|
||||
│ ├── blemish-remover/
|
||||
│ ├── background-remover/
|
||||
│ ├── colorization/
|
||||
│ ├── old-photo-restorer/
|
||||
│ ├── photo-enhancer/
|
||||
│ ├── polaroid-maker/
|
||||
│ └── teeth-whitener/
|
||||
public/
|
||||
└── management -> symlink or synced to ../management
|
||||
src/
|
||||
├── components/
|
||||
│ ├── ui/
|
||||
│ │ ├── NeuralGrainOverlay.tsx # Generative AI latent grain transform animation
|
||||
│ │ ├── CardBeforeAfterSlider.tsx # Tool stack card slider (hover-only slide, click-drag)
|
||||
│ ├── sections/
|
||||
│ │ ├── HeroSection.tsx # Redesigned tool hero (prominent upload, result-focused display)
|
||||
│ │ ├── TryItWidget.tsx # Spacious, beautiful upload studio
|
||||
│ │ ├── CinematicHorizontalScrollSection.tsx # Frictionless horizontal showcase
|
||||
├── lib/
|
||||
│ ├── config/
|
||||
│ │ ├── loader.ts # Loads configurations and media paths from management/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Tasks
|
||||
|
||||
### Task 1: Create Centralized `management/` Folder Architecture
|
||||
- [ ] Create `management/pages/tools/[slug]/` directories for all 8 tools with `tool.config.json` and `media/` subdirectories.
|
||||
- [ ] Copy or generate high-res before/after assets into `management/pages/tools/[slug]/media/before.jpg` and `after.jpg`.
|
||||
- [ ] Create `management/pages/home/` with `page.config.json` and `media/`.
|
||||
- [ ] Ensure Next.js can serve assets from `management/` via symlink in `public/management` or Next route so replacing any file immediately updates the live site.
|
||||
- [ ] Update `src/lib/config/loader.ts` to source tool data and media paths from `management/`.
|
||||
- [ ] Verify `npm test` and build compile cleanly.
|
||||
|
||||
### Task 2: Home Page Tool Stack Cards — Hover-Only Sliding
|
||||
- [ ] Update `src/components/ui/CardBeforeAfterSlider.tsx`:
|
||||
- Static 50% rest state when not hovered.
|
||||
- Start smooth, gentle slide animation **only when cursor is hovering over the card**.
|
||||
- Clicking/dragging allows manual scrub.
|
||||
- Reset to rest on mouse leave.
|
||||
- [ ] Verify all cards remain calm and static until hovered.
|
||||
|
||||
### Task 3: Tool Landing Page (`/tools/[slug]`) Visual Redesign & Grain Transform Animation
|
||||
- [ ] Create `src/components/ui/NeuralGrainOverlay.tsx`:
|
||||
- Authentic generative AI latent grain / noise sweep animation representing neural model synthesis.
|
||||
- Canvas/SVG-based high-frequency grain texture with customizable intensity and scan sweep.
|
||||
- [ ] Redesign `src/components/sections/HeroSection.tsx` (`variant === 'toolHero'`):
|
||||
- Typography placed outside cards: Large editorial headline, category badge, and descriptive copy directly on page background.
|
||||
- **Left / Display Stage**: Focus 100% on actual transformation results with minimal border chrome, integrated Before/After slider, and the Neural Grain transformation effect.
|
||||
- **Right / Upload Studio**: Spacious, prominent, high-end upload dropzone with glowing borders, clear specs, and sample presets.
|
||||
- [ ] Update `src/components/sections/TryItWidget.tsx` to match the spacious, beautiful studio layout.
|
||||
|
||||
### Task 4: Fix Horizontal Showcase Scroll Fluidity
|
||||
- [ ] Fix `body` overflow in `src/app/globals.css`: replace `overflow-x: hidden` with `overflow-x: clip` so `position: sticky` is never disabled.
|
||||
- [ ] In `CinematicHorizontalScrollSection.tsx`, ensure synchronous DOM transform updates on scroll with liquid GPU hardware acceleration.
|
||||
- [ ] Ensure arrow navigation, wheel scrolling, and trackpad swipe glide seamlessly through all cards and transition cleanly to the next section.
|
||||
|
||||
### Task 5: Verification & End-to-End Testing
|
||||
- [ ] Run `npm test` to verify all unit tests pass.
|
||||
- [ ] Run headless browser script verifying:
|
||||
- Tool cards in "Find the right tool fast" slide ONLY on hover.
|
||||
- Tool specific page renders prominent upload studio + grain transformation display + typography outside cards.
|
||||
- Horizontal scroll glides seamlessly.
|
||||
- Replacing an image in `management/` updates the live page.
|
||||
- [ ] Commit all changes to git.
|
||||
@@ -0,0 +1,60 @@
|
||||
# Interactive Model Showcase Vertical Wheel Translation & Side Arrows Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** Enable visitors to navigate the flagship transformation models in the Interactive Model Showcase via vertical wheel/trackpad scrolling and dedicated Left/Right side arrow buttons.
|
||||
|
||||
**Architecture:** Client-side React hooks (`useRef`, `useState`, `useEffect`) in `CinematicHorizontalScrollSection.tsx` with non-passive wheel event interception, edge boundary pass-through, smooth card stepping via `scrollBy`, and floating accessible arrow buttons.
|
||||
|
||||
**Tech Stack:** Next.js 14 App Router, React 18, TypeScript, Tailwind CSS, Lucide React (`ChevronLeft`, `ChevronRight`).
|
||||
|
||||
**Spec:** `docs/superpowers/specs/2026-11-04-showcase-vertical-wheel-and-arrows-design.md`
|
||||
|
||||
## Global Constraints
|
||||
- Preserve existing data interfaces and Mustache binding resolution.
|
||||
- Never trap user scroll: when rail is at the left boundary and scrolling up, or right boundary and scrolling down, let vertical scroll bubble to page.
|
||||
- Accessible: `aria-label` attributes on both buttons, keyboard operable.
|
||||
- Responsive: Floating arrows styled to fit both mobile and wide screens without obscuring critical interactive elements.
|
||||
|
||||
## Review Focus
|
||||
1. Wheel listener must use `{ passive: false }` so `preventDefault()` functions cleanly without console warnings.
|
||||
2. Left and Right arrows calculate proper scroll distance (card width + gap) and smoothly animate.
|
||||
3. Clean boundary detection prevents stutter when reaching start/end of the rail.
|
||||
4. Touch swipe functionality on mobile devices is preserved intact.
|
||||
|
||||
---
|
||||
|
||||
### Task 1: Enhance `CinematicHorizontalScrollSection.tsx` with Wheel & Arrow Controls
|
||||
|
||||
**Files:**
|
||||
- Modify: `src/components/sections/CinematicHorizontalScrollSection.tsx`
|
||||
|
||||
- [ ] **Step 1: Add state and refs for rail, scroll boundaries, and wheel interaction**
|
||||
- Define `railRef = useRef<HTMLDivElement>(null)`
|
||||
- Define `canScrollLeft` and `canScrollRight` states
|
||||
- Define `isHovered` or rail event listener for `wheel` with `{ passive: false }`
|
||||
|
||||
- [ ] **Step 2: Implement boundary-aware vertical wheel translation**
|
||||
- Intercept vertical `deltaY` when dominant over `deltaX`
|
||||
- Translate `e.deltaY` into `rail.scrollLeft`
|
||||
- Allow natural page scroll if already at leftmost or rightmost boundary
|
||||
|
||||
- [ ] **Step 3: Implement floating Left and Right navigation buttons**
|
||||
- Place Left and Right arrow buttons vertically centered on the carousel flanks
|
||||
- Implement `scrollDirection('left')` and `scrollDirection('right')` using `rail.scrollBy({ left: +/- step, behavior: 'smooth' })`
|
||||
- Add `aria-label` and visual disabled/faded states
|
||||
|
||||
- [ ] **Step 4: Update scroll snap style to `snap-proximity`**
|
||||
- Prevent harsh snapping conflict during continuous wheel scrolling
|
||||
|
||||
---
|
||||
|
||||
### Task 2: Build Verification & Regression Check
|
||||
|
||||
**Files:**
|
||||
- Run test and build commands
|
||||
|
||||
- [ ] **Step 1: Run unit test suite**
|
||||
- `npm test`
|
||||
- [ ] **Step 2: Run production Next.js build**
|
||||
- `npm run build`
|
||||
@@ -0,0 +1,190 @@
|
||||
# WEBB Editor — Dedicated Admin Control Suite Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** Build a completely independent, modern visual Admin Control Suite in `/home/creserver/Desktop/WEBB_EDITOR` running on port 3001, allowing visual live editing of the main website (`/home/creserver/Desktop/WEBB` on port 3000) — including text, media uploads, section toggles, horizontal scroll animation controls, and full tool creation (frontend UI + backend multipart API configuration) directly backed by JSON and the `management/` folder.
|
||||
|
||||
**Architecture:** A standalone Next.js 14 web application in `/home/creserver/Desktop/WEBB_EDITOR` with Tailwind CSS, Lucide icons, and server-side API endpoints that read and write directly to `../WEBB/management/` and `../WEBB/content/`. The main website on port 3000 has zero links, buttons, or access to the editor, ensuring complete isolation. Changes saved in the editor immediately persist to JSON on disk and reflect instantly on the main site.
|
||||
|
||||
**Tech Stack:** Next.js 14 (App Router), React 18, TypeScript, Tailwind CSS, Lucide React, Node.js `fs/promises` file manipulation, Native Form-Data upload handling.
|
||||
|
||||
**Spec:** User request dated 2026-11-04 specifying a dedicated admin control suite in a new folder, independent on another port, with no access from the main site, supporting text editing, photo upload/removal, feature toggles, horizontal scroll animation removal/toggling, full tool creation with frontend and backend multipart/form-data configuration, and instant dynamic JSON persistence.
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- **Location:** The editor project MUST live at `/home/creserver/Desktop/WEBB_EDITOR`.
|
||||
- **Port:** The editor MUST run on port 3001 (or separate from main site port 3000).
|
||||
- **Isolation:** The main site (`WEBB`) MUST NOT contain any admin buttons, admin links, or administrative leakage.
|
||||
- **Data Source of Truth:** Edits must write directly to `management/pages/.../page.config.json`, `management/pages/.../media/`, `content/collections/tools/*.json`, `content/api.catalog.json`, and `content/site.config.json`.
|
||||
- **Python Venv Rule:** If python scripts are run, always use `/home/creserver/extras/local_venv/bin/python`.
|
||||
|
||||
## Review Focus
|
||||
|
||||
1. **Path Resolution:** Relative paths to `../WEBB` must reliably resolve regardless of process working directory.
|
||||
2. **File Permissions & Upload Safety:** Uploaded images must be written atomically to `../WEBB/management/.../media/` and sanitized to prevent directory traversal.
|
||||
3. **JSON Schema Integrity:** Written JSON files must preserve valid JSON formatting with proper whitespace and typed schema fields.
|
||||
4. **Instant Dynamic Reflection:** Main site `WEBB` on port 3000 must load updated JSON content immediately without requiring a full manual rebuild.
|
||||
5. **Form-Data Backend Config:** Tool creation must support full backend specifications: API endpoint URL, HTTP method, multipart/form-data field names (e.g. `image`), parameters, and header options.
|
||||
|
||||
---
|
||||
|
||||
### Task 1: Initialize Standalone WEBB_EDITOR Project & Scaffolding
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/package.json`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/tsconfig.json`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/tailwind.config.js`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/postcss.config.js`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/next.config.js`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/globals.css`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/layout.tsx`
|
||||
|
||||
- [ ] Step 1.1: Create directory `/home/creserver/Desktop/WEBB_EDITOR` with Next.js 14, Tailwind CSS, Lucide React dependencies.
|
||||
- [ ] Step 1.2: Configure `next.config.js` with port 3001 defaults and image domains.
|
||||
- [ ] Step 1.3: Configure `tailwind.config.js` with admin studio color palette (slate/indigo/amber luxury dark/light theme).
|
||||
- [ ] Step 1.4: Install dependencies using `npm install` inside `/home/creserver/Desktop/WEBB_EDITOR`.
|
||||
- [ ] Step 1.5: Verify project builds with `npm run build`.
|
||||
|
||||
---
|
||||
|
||||
### Task 2: Core File System Bridge & Backend Service Library
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/lib/bridge.ts`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/lib/types.ts`
|
||||
- Test: `/home/creserver/Desktop/WEBB_EDITOR/src/lib/bridge.test.ts`
|
||||
|
||||
- [ ] Step 2.1: Define TypeScript schemas for `HomePageConfig`, `ToolItem`, `ApiEndpoint`, `ShowcaseItem`, and `SectionToggle`.
|
||||
- [ ] Step 2.2: Implement `getWebbPath(subpath: string)` with absolute resolution targeting `/home/creserver/Desktop/WEBB`.
|
||||
- [ ] Step 2.3: Implement safe JSON reader and writer functions with backup snapshot creation.
|
||||
- [ ] Step 2.4: Implement media file scanner that lists all images in `../WEBB/management/pages/home/media/` and `../WEBB/management/pages/tools/*/media/`.
|
||||
- [ ] Step 2.5: Write unit tests verifying read/write integrity against test JSON structures.
|
||||
|
||||
---
|
||||
|
||||
### Task 3: API Endpoints for Pages, Sections, Media, and Tools
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/api/pages/home/route.ts`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/api/tools/route.ts`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/api/tools/[slug]/route.ts`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/api/media/upload/route.ts`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/api/media/delete/route.ts`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/api/sections/toggle/route.ts`
|
||||
|
||||
- [ ] Step 3.1: Build `GET` and `POST` for `/api/pages/home` to fetch and update `management/pages/home/page.config.json`.
|
||||
- [ ] Step 3.2: Build `/api/sections/toggle` to toggle section visibility or change layout settings (e.g. toggle horizontal scroll animation vs vertical stack).
|
||||
- [ ] Step 3.3: Build `POST` for `/api/media/upload` accepting `multipart/form-data` and writing files directly into `../WEBB/management/pages/.../media/`.
|
||||
- [ ] Step 3.4: Build `POST` for `/api/media/delete` to safely remove unused images.
|
||||
- [ ] Step 3.5: Build `GET`, `POST`, `PUT`, `DELETE` for `/api/tools` to manage `content/collections/tools/*.json` and `content/api.catalog.json`.
|
||||
|
||||
---
|
||||
|
||||
### Task 4: Admin Studio Navigation, Layout & Dashboard Overview
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/layout/AdminSidebar.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/layout/AdminHeader.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/page.tsx` (Dashboard Overview)
|
||||
|
||||
- [ ] Step 4.1: Build `AdminSidebar` with navigation links: Overview, Homepage Editor, Showcase Models, Tool Studio (Frontend + Backend), Media Asset Manager, and Settings.
|
||||
- [ ] Step 4.2: Build `AdminHeader` showing live server status badge (Main Site: `http://localhost:3000` status indicator, Editor: port 3001, quick Save & Sync button).
|
||||
- [ ] Step 4.3: Build Dashboard Overview page displaying active tools counter, active categories, total images managed, and quick actions.
|
||||
|
||||
---
|
||||
|
||||
### Task 5: Visual Homepage & Sections Manager (With Animation Toggles)
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/pages/home/page.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/editor/SectionCard.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/editor/HeroEditorModal.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/editor/AnimationControlsModal.tsx`
|
||||
|
||||
- [ ] Step 5.1: Build Section Manager list displaying all 10 homepage sections with drag/reorder and toggle switches (`enabled` / `disabled`).
|
||||
- [ ] Step 5.2: Implement **Horizontal Scrolling Animation Toggle**:
|
||||
- Option A: Pinned Sticky Cinematic Runway (horizontal scroll translation).
|
||||
- Option B: Clean Fluid Vertical Stack (horizontal animation completely disabled).
|
||||
- Option C: Completely Remove Flagship Showcase Section.
|
||||
- [ ] Step 5.3: Build in-place text editor for Hero title, subtitle, badges, and trust indicators.
|
||||
- [ ] Step 5.4: Implement instant save handler that writes to `../WEBB/management/pages/home/page.config.json`.
|
||||
|
||||
---
|
||||
|
||||
### Task 6: Interactive Model Showcase Manager
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/showcase/page.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/showcase/ShowcaseCardEditor.tsx`
|
||||
|
||||
- [ ] Step 6.1: Build visual card list for all flagship showcase models.
|
||||
- [ ] Step 6.2: Add card creation and deletion controls.
|
||||
- [ ] Step 6.3: Implement variant selector (`comparison` slider vs `banner`).
|
||||
- [ ] Step 6.4: Add direct image uploader for Before / After / Banner images with instant thumbnail preview.
|
||||
- [ ] Step 6.5: Add inputs for model name, latency chip, category, specs checklist, and tool link.
|
||||
|
||||
---
|
||||
|
||||
### Task 7: Full Tool Studio Creator (Frontend UI + Backend Multipart API)
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/tools/page.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/tools/new/page.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/tools/[slug]/page.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/tools/ToolFrontendForm.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/tools/ToolBackendApiForm.tsx`
|
||||
|
||||
- [ ] Step 7.1: Build Tool listing page showing all tools with search, category filtering, and status badges.
|
||||
- [ ] Step 7.2: Build `ToolFrontendForm` for frontend presentation:
|
||||
- Tool Name, Slug, Summary, Category, Associated App (`homeApp`), Badges, Limits (MB), and Sample Presets.
|
||||
- Before/After demonstration image uploader that saves directly into `../WEBB/management/pages/tools/[slug]/media/`.
|
||||
- [ ] Step 7.3: Build `ToolBackendApiForm` for backend execution:
|
||||
- API Endpoint URL (e.g. `http://127.0.0.1:8000/api/v1/process`), HTTP Method (`POST` / `GET`).
|
||||
- Multipart/form-data configuration: Upload file field name (e.g. `image` or `file`), optional fields, parameter bindings.
|
||||
- Custom headers (e.g. Bearer token, API keys), timeout settings.
|
||||
- [ ] Step 7.4: Build atomic save routine that writes:
|
||||
- Tool JSON -> `/home/creserver/Desktop/WEBB/content/collections/tools/[slug].json`
|
||||
- API Endpoint -> `/home/creserver/Desktop/WEBB/content/api.catalog.json` & `/content/api.overlay.json`
|
||||
- [ ] Step 7.5: Build tool deletion routine that removes tool definitions safely.
|
||||
|
||||
---
|
||||
|
||||
### Task 8: Media Asset Manager (Visual Upload & Delete Gallery)
|
||||
|
||||
**Files:**
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/app/media/page.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/media/MediaUploadZone.tsx`
|
||||
- Create: `/home/creserver/Desktop/WEBB_EDITOR/src/components/media/MediaCard.tsx`
|
||||
|
||||
- [ ] Step 8.1: Build visual gallery showing all media files in `../WEBB/management/`.
|
||||
- [ ] Step 8.2: Implement drag-and-drop file uploader supporting JPG, PNG, WEBP, and MP4.
|
||||
- [ ] Step 8.3: Add copy image path button (`/management/...`) for easy insertion into configs.
|
||||
- [ ] Step 8.4: Add delete asset modal with confirmation.
|
||||
|
||||
---
|
||||
|
||||
### Task 9: Enable Dynamic Revalidation in Main Site (WEBB)
|
||||
|
||||
**Files:**
|
||||
- Modify: `/home/creserver/Desktop/WEBB/src/app/page.tsx`
|
||||
- Modify: `/home/creserver/Desktop/WEBB/src/app/tools/[slug]/page.tsx`
|
||||
|
||||
- [ ] Step 9.1: Add `export const dynamic = 'force-dynamic'` and `export const revalidate = 0` to `src/app/page.tsx` in `WEBB`.
|
||||
- [ ] Step 9.2: Add `export const dynamic = 'force-dynamic'` and `export const revalidate = 0` to `src/app/tools/[slug]/page.tsx` in `WEBB`.
|
||||
- [ ] Step 9.3: Verify that modifying `management/pages/home/page.config.json` immediately updates the live page on `http://localhost:3000` without rebuilding.
|
||||
|
||||
---
|
||||
|
||||
### Task 10: End-to-End Verification, Server Startup & Health Audit
|
||||
|
||||
**Files:**
|
||||
- Verify: Port 3000 (`WEBB`) running without any admin links.
|
||||
- Verify: Port 3001 (`WEBB_EDITOR`) running cleanly as standalone admin suite.
|
||||
- Test script: `/home/creserver/Desktop/WEBB_EDITOR/tests/e2e-sync.test.ts`
|
||||
|
||||
- [ ] Step 10.1: Run `npm run build` inside `/home/creserver/Desktop/WEBB_EDITOR` with zero errors.
|
||||
- [ ] Step 10.2: Start `WEBB_EDITOR` on port 3001 (`npm run start -- -p 3001` or daemon).
|
||||
- [ ] Step 10.3: Execute test: Edit homepage badge via `WEBB_EDITOR` API / UI -> Verify updated text on `http://localhost:3000`.
|
||||
- [ ] Step 10.4: Execute test: Add new tool with frontend and backend multipart config -> Verify new tool appears in `/tools` and `/tools/[slug]`.
|
||||
- [ ] Step 10.5: Execute test: Upload image via Media Asset Manager -> Verify image exists in `management/` and renders on `http://localhost:3000`.
|
||||
- [ ] Step 10.6: Puppeteer in-browser verification of admin suite UI and live sync confirmation.
|
||||
@@ -0,0 +1,64 @@
|
||||
# Design: Interactive Model Showcase Vertical Scroll Translation & Side Navigation Arrows
|
||||
|
||||
**Date:** 2026-11-04
|
||||
**Status:** Approved (Option 1 selected by user)
|
||||
**Target File:** `src/components/sections/CinematicHorizontalScrollSection.tsx`
|
||||
|
||||
---
|
||||
|
||||
## 1. Intent & Purpose
|
||||
Enable visitors to navigate the flagship transformation models in the **Interactive Model Showcase** using natural vertical wheel/trackpad scrolling and dedicated tactile Left/Right side arrow buttons, making horizontal exploration effortless on both desktop and mobile.
|
||||
|
||||
---
|
||||
|
||||
## 2. Goals, Non-Goals, and Anti-Goals
|
||||
|
||||
### Goals
|
||||
- **Vertical-to-Horizontal Translation**: Vertical mouse wheel and trackpad scroll gestures (`deltaY`) over the showcase rail directly translate into horizontal scrolling.
|
||||
- **Natural Boundary Pass-Through**: When the rail reaches its horizontal start (scrolling up) or end (scrolling down), vertical page scrolling naturally resumes so users never get trapped.
|
||||
- **Side Navigation Arrows**: Sleek, accessible, liquid-glass Left and Right arrow buttons floating on either side of the rail that slide card-by-card on click.
|
||||
- **Dynamic State**: Arrow buttons automatically update their disabled/opacity state based on current scroll position.
|
||||
- **Zero Regressions**: Maintain high-contrast light creamy theme, mobile touch-swipe, and WCAG AA accessibility standards.
|
||||
|
||||
### Non-Goals
|
||||
- Full viewport height pinning (Option 2 was declined in favor of in-place wheel translation).
|
||||
- Modifying the underlying data schemas in `content/pages/home.json` or `SectionRenderer.tsx`.
|
||||
|
||||
### Anti-Goals
|
||||
- Trapping vertical scroll permanently or blocking scroll when at the edges.
|
||||
- Obscuring before/after comparison interactive sliders with arrow buttons.
|
||||
|
||||
---
|
||||
|
||||
## 3. Approaches Considered
|
||||
|
||||
1. **Option 1: In-Place Wheel & Trackpad Translation + Floating Side Arrows (Selected)**
|
||||
- Translates `deltaY` to `scrollLeft` on non-passive wheel events when hovering the showcase section.
|
||||
- Bails out when at the boundary edges to allow standard vertical document scroll.
|
||||
- Adds floating, accessible `ChevronLeft` and `ChevronRight` buttons on the left and right flanks.
|
||||
- **Trade-off:** Retains clean layout flow without modifying page scroll height.
|
||||
|
||||
2. **Option 2: Sticky Pinned Viewport Track (Rejected)**
|
||||
- Pins the section to the viewport for 300vh of vertical scroll distance.
|
||||
- **Trade-off:** High layout footprint, can feel disruptive on shorter viewports.
|
||||
|
||||
---
|
||||
|
||||
## 4. Implementation Details
|
||||
|
||||
- **File:** `src/components/sections/CinematicHorizontalScrollSection.tsx`
|
||||
- **State & Refs:**
|
||||
- `railRef = useRef<HTMLDivElement>(null)`: Reference to the horizontal scrolling rail.
|
||||
- `canScrollLeft`: boolean state, default false.
|
||||
- `canScrollRight`: boolean state, default true.
|
||||
- **Wheel Listener (`passive: false`):**
|
||||
- Attached via `useEffect` with clean cleanup.
|
||||
- Only intercepts when vertical delta is dominant (`Math.abs(e.deltaY) > Math.abs(e.deltaX)`).
|
||||
- Calls `e.preventDefault()` only if the rail has remaining scroll distance in the scroll direction.
|
||||
- **Arrow Navigation:**
|
||||
- Left button with `ChevronLeft` icon, right button with `ChevronRight` icon.
|
||||
- `scrollBy({ left: +/- scrollDistance, behavior: 'smooth' })`, calculating step based on card width + gap.
|
||||
- High z-index, styled with `bg-white/90`, `backdrop-blur-md`, `shadow-cream-md`, and smooth hover scale.
|
||||
- Hidden or opacity-0 when disabled to maintain a clean aesthetic at boundaries.
|
||||
- **Snap Polish:**
|
||||
- Uses `snap-x snap-proximity` for smooth wheel translation without abrasive snap fighting, locking neatly onto cards when resting.
|
||||
@@ -0,0 +1 @@
|
||||
GIT_README.md
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"id": "art-studio-app",
|
||||
"slug": "art-studio-app",
|
||||
"status": "published",
|
||||
"name": {
|
||||
"en": "Toonify & Art Studio",
|
||||
"hi": "\u091f\u0942\u0928\u0940\u092b\u093e\u0908 \u0914\u0930 \u0906\u0930\u094d\u091f \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b"
|
||||
},
|
||||
"tagline": {
|
||||
"en": "Transform selfies into anime, caricatures, and vintage film art",
|
||||
"hi": "\u0938\u0947\u0932\u094d\u092b\u093c\u0940 \u0915\u094b \u090f\u0928\u0940\u092e\u0947, \u0915\u0948\u0930\u093f\u0915\u0947\u091a\u0930 \u0914\u0930 \u0935\u093f\u0902\u091f\u0947\u091c \u0906\u0930\u094d\u091f \u092e\u0947\u0902 \u092c\u0926\u0932\u0947\u0902"
|
||||
},
|
||||
"description": {
|
||||
"en": "Unleash your creative persona. Turn real-life portraits into stunning anime drawings, comic book art, retro Polaroid prints, and museum-grade painted portraits.",
|
||||
"hi": "\u0905\u092a\u0928\u0940 \u0930\u091a\u0928\u093e\u0924\u094d\u092e\u0915\u0924\u093e \u0915\u094b \u0909\u091c\u093e\u0917\u0930 \u0915\u0930\u0947\u0902\u0964 \u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f\u094d\u0938 \u0915\u094b \u090f\u0928\u0940\u092e\u0947, \u0915\u0949\u092e\u093f\u0915 \u0914\u0930 \u0935\u093f\u0902\u091f\u0947\u091c \u092a\u094b\u0932\u0930\u0949\u0907\u0921 \u092e\u0947\u0902 \u092c\u0926\u0932\u0947\u0902\u0964"
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.creinnovations.artstudio",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.artstudio"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384913",
|
||||
"url": "https://apps.apple.com/app/id1672384913"
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "creinnovationsart://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
},
|
||||
"tools": [
|
||||
"art.cartoon.gan",
|
||||
"art.polaroid.film"
|
||||
],
|
||||
"rating": {
|
||||
"value": 4.8,
|
||||
"count": 31200,
|
||||
"source": "Google Play & App Store"
|
||||
},
|
||||
"welcomeBonus": {
|
||||
"code": "TOONWEB",
|
||||
"title": "40 Free Art Styles",
|
||||
"description": "Install through this link to claim 40 free artistic avatar transformations."
|
||||
},
|
||||
"features": [
|
||||
"Over 60+ neural cartoon, anime, and comic stylization filters",
|
||||
"Authentic 35mm film grain, leak, and vintage polaroid borders",
|
||||
"Lossless 4K social media avatar export",
|
||||
"Animated sticker and GIF generator"
|
||||
],
|
||||
"creditsNote": {
|
||||
"en": "Credits and in-app purchases are specific to Toonify & Art Studio.",
|
||||
"hi": "\u0915\u094d\u0930\u0947\u0921\u093f\u091f \u0914\u0930 \u0907\u0928-\u0910\u092a \u0916\u0930\u0940\u0926\u093e\u0930\u0940 \u0915\u0947\u0935\u0932 \u091f\u0942\u0928\u0940\u092b\u093e\u0908 \u0914\u0930 \u0906\u0930\u094d\u091f \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b \u0915\u0947 \u0932\u093f\u090f \u0935\u093f\u0936\u093f\u0937\u094d\u091f \u0939\u0948\u0902\u0964"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"id": "bg-cleaner-app",
|
||||
"slug": "bg-cleaner-app",
|
||||
"status": "published",
|
||||
"name": {
|
||||
"en": "Magic Cutout & Erase Studio",
|
||||
"hi": "\u092e\u0948\u091c\u093f\u0915 \u0915\u091f\u0906\u0909\u091f \u0914\u0930 \u0907\u0930\u0947\u091c\u093c \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b"
|
||||
},
|
||||
"tagline": {
|
||||
"en": "Cut out any subject, erase photobombers, and design product shots",
|
||||
"hi": "\u0915\u093f\u0938\u0940 \u092d\u0940 \u0935\u093f\u0937\u092f \u0915\u094b \u0915\u091f \u0915\u0930\u0947\u0902, \u0905\u0928\u091a\u093e\u0939\u0947 \u0932\u094b\u0917\u094b\u0902 \u0915\u094b \u092e\u093f\u091f\u093e\u090f\u0902"
|
||||
},
|
||||
"description": {
|
||||
"en": "The premier background removal and object erasing app for e-commerce sellers, content creators, and graphic designers. Transparent PNGs, studio backdrops, and seamless smart inpainting in one tap.",
|
||||
"hi": "\u0908-\u0915\u0949\u092e\u0930\u094d\u0938 \u0935\u093f\u0915\u094d\u0930\u0947\u0924\u093e\u0913\u0902 \u0914\u0930 \u0921\u093f\u091c\u093e\u0907\u0928\u0930\u094b\u0902 \u0915\u0947 \u0932\u093f\u090f \u092a\u094d\u0930\u092e\u0941\u0916 \u092c\u0948\u0915\u0917\u094d\u0930\u093e\u0909\u0902\u0921 \u0930\u093f\u092e\u0942\u0935\u0932 \u0914\u0930 \u0911\u092c\u094d\u091c\u0947\u0915\u094d\u091f \u0907\u0930\u0947\u091c\u093c\u0930 \u0910\u092a\u0964"
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.creinnovations.bgcleaner",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.bgcleaner"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384912",
|
||||
"url": "https://apps.apple.com/app/id1672384912"
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "creinnovationsbg://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
},
|
||||
"tools": [
|
||||
"cutout.p3m.bg",
|
||||
"cutout.lama.erase"
|
||||
],
|
||||
"rating": {
|
||||
"value": 4.7,
|
||||
"count": 19500,
|
||||
"source": "Google Play & App Store"
|
||||
},
|
||||
"welcomeBonus": {
|
||||
"code": "CUTOUTWEB",
|
||||
"title": "50 Free Cutouts",
|
||||
"description": "Install through this link to claim 50 free high-res cutout downloads."
|
||||
},
|
||||
"features": [
|
||||
"Sub-pixel hair strands and sheer cloth transparency detection",
|
||||
"Smart brush object eraser with context-aware fill",
|
||||
"Over 500+ curated studio backgrounds and e-commerce presets",
|
||||
"High volume batch cutout export with transparent alpha"
|
||||
],
|
||||
"creditsNote": {
|
||||
"en": "Credits and in-app purchases are specific to Magic Cutout & Erase Studio.",
|
||||
"hi": "\u0915\u094d\u0930\u0947\u0921\u093f\u091f \u0914\u0930 \u0907\u0928-\u0910\u092a \u0916\u0930\u0940\u0926\u093e\u0930\u0940 \u0915\u0947\u0935\u0932 \u092e\u0948\u091c\u093f\u0915 \u0915\u091f\u0906\u0909\u091f \u0914\u0930 \u0907\u0930\u0947\u091c\u093c \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b \u0915\u0947 \u0932\u093f\u090f \u0935\u093f\u0936\u093f\u0937\u094d\u091f \u0939\u0948\u0902\u0964"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"id": "photo-enhancer-pro",
|
||||
"slug": "photo-enhancer-pro",
|
||||
"status": "published",
|
||||
"name": {
|
||||
"en": "Enhance Ultra AI",
|
||||
"hi": "\u090f\u0928\u094d\u0939\u093e\u0902\u0938 \u0905\u0932\u094d\u091f\u094d\u0930\u093e \u090f\u0906\u0908"
|
||||
},
|
||||
"tagline": {
|
||||
"en": "Turn blurry or aged photos into crystal clear 4K masterpieces",
|
||||
"hi": "\u0927\u0941\u0902\u0927\u0932\u0940 \u092f\u093e \u092a\u0941\u0930\u093e\u0928\u0940 \u0924\u0938\u094d\u0935\u0940\u0930\u094b\u0902 \u0915\u094b \u0915\u094d\u0930\u093f\u0938\u094d\u091f\u0932 \u0915\u094d\u0932\u093f\u092f\u0930 4K \u092e\u0947\u0902 \u092c\u0926\u0932\u0947\u0902"
|
||||
},
|
||||
"description": {
|
||||
"en": "State-of-the-art super-resolution, scratch removal, and neural colorization for old and degraded photographs. Loved by genealogists, photographers, and memory keepers worldwide.",
|
||||
"hi": "\u092a\u0941\u0930\u093e\u0928\u0940 \u0914\u0930 \u0916\u0930\u093e\u092c \u0924\u0938\u094d\u0935\u0940\u0930\u094b\u0902 \u0915\u0947 \u0932\u093f\u090f \u0938\u0941\u092a\u0930-\u0930\u093f\u091c\u093c\u0949\u0932\u094d\u092f\u0942\u0936\u0928, \u0916\u0930\u094b\u0902\u091a \u0939\u091f\u093e\u0928\u093e \u0914\u0930 \u0928\u094d\u092f\u0942\u0930\u0932 \u0930\u0902\u0917\u093e\u0908\u0964"
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.creinnovations.photoenhancer",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.photoenhancer"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384911",
|
||||
"url": "https://apps.apple.com/app/id1672384911"
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "creinnovationsenhance://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
},
|
||||
"tools": [
|
||||
"restore.enhancer",
|
||||
"restore.oldphoto",
|
||||
"restore.colorization"
|
||||
],
|
||||
"rating": {
|
||||
"value": 4.9,
|
||||
"count": 42100,
|
||||
"source": "Google Play & App Store"
|
||||
},
|
||||
"welcomeBonus": {
|
||||
"code": "ENHANCEWEB",
|
||||
"title": "30 Free Ultra 4K Exports",
|
||||
"description": "Install through this link to claim 30 free Ultra 4K upscale exports."
|
||||
},
|
||||
"features": [
|
||||
"Generative face reconstruction from blurry selfies",
|
||||
"Deep crease and scratch removal on physical scanned prints",
|
||||
"Realistic historical color palettes from neural models",
|
||||
"Up to 8x resolution upscaling with high fidelity"
|
||||
],
|
||||
"creditsNote": {
|
||||
"en": "Credits and in-app purchases are specific to Enhance Ultra AI.",
|
||||
"hi": "\u0915\u094d\u0930\u0947\u0921\u093f\u091f \u0914\u0930 \u0907\u0928-\u0910\u092a \u0916\u0930\u0940\u0926\u093e\u0930\u0940 \u0915\u0947\u0935\u0932 \u090f\u0928\u094d\u0939\u093e\u0902\u0938 \u0905\u0932\u094d\u091f\u094d\u0930\u093e \u090f\u0906\u0908 \u0915\u0947 \u0932\u093f\u090f \u0935\u093f\u0936\u093f\u0937\u094d\u091f \u0939\u0948\u0902\u0964"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"id": "portrait-app",
|
||||
"slug": "portrait-app",
|
||||
"status": "published",
|
||||
"name": {
|
||||
"en": "Portrait Studio AI",
|
||||
"hi": "\u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b \u090f\u0906\u0908"
|
||||
},
|
||||
"tagline": {
|
||||
"en": "Natural professional portrait retouching in your pocket",
|
||||
"hi": "\u0906\u092a\u0915\u0940 \u091c\u0947\u092c \u092e\u0947\u0902 \u092a\u094d\u0930\u093e\u0915\u0943\u0924\u093f\u0915 \u092a\u0947\u0936\u0947\u0935\u0930 \u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f \u0938\u0902\u092a\u093e\u0926\u0928"
|
||||
},
|
||||
"description": {
|
||||
"en": "The all-in-one portrait perfection suite. Remove acne, wrinkles, and eye flaws, whiten teeth, and smooth skin without losing natural pore textures. Powered by real-time neural models with batch export.",
|
||||
"hi": "\u0938\u0930\u094d\u0935\u0936\u094d\u0930\u0947\u0937\u094d\u0920 \u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f \u0938\u0902\u092a\u093e\u0926\u0928 \u0910\u092a\u0964 \u092e\u0941\u0902\u0939\u093e\u0938\u0947, \u091d\u0941\u0930\u094d\u0930\u093f\u092f\u093e\u0902 \u0914\u0930 \u0926\u093e\u0917 \u0939\u091f\u093e\u090f\u0902, \u0926\u093e\u0902\u0924 \u0938\u092b\u0947\u0926 \u0915\u0930\u0947\u0902 \u0914\u0930 \u0924\u094d\u0935\u091a\u093e \u0915\u094b \u092a\u094d\u0930\u093e\u0915\u0943\u0924\u093f\u0915 \u092c\u0928\u093e\u0935\u091f \u0915\u0947 \u0938\u093e\u0925 \u0938\u0941\u0902\u0926\u0930 \u092c\u0928\u093e\u090f\u0902\u0964"
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.creinnovations.portraitpro",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.portraitpro"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384910",
|
||||
"url": "https://apps.apple.com/app/id1672384910"
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "creinnovationsportrait://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
},
|
||||
"tools": [
|
||||
"face.blemish.remove",
|
||||
"face.eyeredness.remove",
|
||||
"face.teeth.whitener",
|
||||
"face.eyebag.remove"
|
||||
],
|
||||
"rating": {
|
||||
"value": 4.8,
|
||||
"count": 28400,
|
||||
"source": "Google Play & App Store"
|
||||
},
|
||||
"welcomeBonus": {
|
||||
"code": "TRYWEB50",
|
||||
"title": "50 Free Pro Credits",
|
||||
"description": "Install through this link to claim 50 free HD export credits in Portrait Studio AI."
|
||||
},
|
||||
"features": [
|
||||
"Sub-millimeter pore-preserving acne & blemish removal",
|
||||
"Natural eye redness & flash reflection correction",
|
||||
"Multi-tone teeth whitening with enamel safeguard",
|
||||
"Batch processing for entire photoshoot galleries",
|
||||
"Lossless 4K PNG & RAW export"
|
||||
],
|
||||
"creditsNote": {
|
||||
"en": "Credits and in-app purchases are specific to Portrait Studio AI.",
|
||||
"hi": "\u0915\u094d\u0930\u0947\u0921\u093f\u091f \u0914\u0930 \u0907\u0928-\u0910\u092a \u0916\u0930\u0940\u0926\u093e\u0930\u0940 \u0915\u0947\u0935\u0932 \u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b \u090f\u0906\u0908 \u0915\u0947 \u0932\u093f\u090f \u0935\u093f\u0936\u093f\u0937\u094d\u091f \u0939\u0948\u0902\u0964"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"id": "apps-index",
|
||||
"route": "/apps",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "Mobile Apps Suite | Android & iOS | CRE Innovations",
|
||||
"description": "Download our dedicated AI photo editing mobile apps for Android and iOS. Portrait Studio AI, Enhance Ultra AI, Magic Cutout Studio, and Toonify.",
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
{
|
||||
"id": "apps-header",
|
||||
"type": "hero",
|
||||
"variant": "centered",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "Specialized Mobile Apps for Every Photo Task",
|
||||
"hi": "\u0939\u0930 \u092b\u094b\u091f\u094b \u0915\u093e\u0930\u094d\u092f \u0915\u0947 \u0932\u093f\u090f \u0938\u092e\u0930\u094d\u092a\u093f\u0924 \u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a\u094d\u0938"
|
||||
},
|
||||
"subtitle": {
|
||||
"en": "Enjoy lightning-fast on-device neural acceleration, batch processing, RAW & 4K exports, and creative toolkits on iOS and Android.",
|
||||
"hi": "\u0906\u0908\u0913\u090f\u0938 \u0914\u0930 \u090f\u0902\u0921\u094d\u0930\u0949\u0907\u0921 \u092a\u0930 \u0938\u0941\u092a\u0930\u092b\u093c\u093e\u0938\u094d\u091f \u0928\u094d\u092f\u0942\u0930\u0932 \u0938\u094d\u092a\u0940\u0921, \u092c\u0948\u091a \u092a\u094d\u0930\u094b\u0938\u0947\u0938\u093f\u0902\u0917 \u0914\u0930 4K \u0928\u093f\u0930\u094d\u092f\u093e\u0924 \u0915\u093e \u0906\u0928\u0902\u0926 \u0932\u0947\u0902\u0964"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "apps-list",
|
||||
"type": "appCards",
|
||||
"props": {
|
||||
"source": "all",
|
||||
"layout": "detailed",
|
||||
"showRating": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "apps-pricing-note",
|
||||
"type": "pricingExplainer",
|
||||
"props": {
|
||||
"title": {
|
||||
"en": "How App Pricing & Credits Work",
|
||||
"hi": "\u0910\u092a \u092e\u0942\u0932\u094d\u092f \u0928\u093f\u0930\u094d\u0927\u093e\u0930\u0923 \u0914\u0930 \u0915\u094d\u0930\u0947\u0921\u093f\u091f \u0915\u0948\u0938\u0947 \u0915\u093e\u092e \u0915\u0930\u0924\u0947 \u0939\u0948\u0902"
|
||||
},
|
||||
"notes": [
|
||||
"Every app offers free trial credits upon installation.",
|
||||
"Credits and purchases are specific to each individual app and store account.",
|
||||
"No shared wallets or cross-app subscriptions \u2014 you only pay for the exact tools you use.",
|
||||
"Purchases are safely processed by Apple App Store or Google Play Store."
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
@@ -0,0 +1,37 @@
|
||||
# Home Page Management Architecture
|
||||
|
||||
This directory contains the complete modular, hierarchical configuration and media assets for the CRE Innovations home page (`/`).
|
||||
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
management/pages/home/
|
||||
├── page.config.json # Master page configuration (sections, SEO, copy)
|
||||
├── sections/ # Modular section-by-section hierarchy
|
||||
│ ├── hero/ # Tier 1: Hero & Brand Impression
|
||||
│ │ └── media/ # Hero visual assets & particle configs
|
||||
│ ├── our-tools/ # Tier 2: 8 Interactive Tool Windows (Shiftable Grid)
|
||||
│ │ ├── blemish-remover/ # before.jpg, after.jpg
|
||||
│ │ ├── background-remover/ # poster.jpg, sample_reel.mp4
|
||||
│ │ ├── photo-enhancer/ # before.jpg, after.jpg
|
||||
│ │ ├── old-photo-restorer/ # before.jpg, after.jpg
|
||||
│ │ ├── colorization/ # before.jpg, after.jpg
|
||||
│ │ ├── teeth-whitener/ # before.jpg, after.jpg
|
||||
│ │ ├── cartoon-avatar/ # before.jpg, after.jpg
|
||||
│ │ └── polaroid-maker/ # image.jpg
|
||||
│ ├── trendy-bento/ # Tier 2: Trendy Neural Effects Bento Grid
|
||||
│ │ └── media/ # matting.jpg, restore.jpg, anime.jpg, video.jpg, etc.
|
||||
│ ├── recommended-apps/ # Tier 3: Native Mobile Apps Studio
|
||||
│ ├── how-it-works/ # Tier 4: 3-Step Neural Process Visualizer
|
||||
│ │ └── media/ # before.jpg, after.jpg
|
||||
│ ├── community-reviews/ # Tier 4: Verified Community Reviews Marquee
|
||||
│ ├── faqs/ # Tier 5: Frequently Asked Questions
|
||||
│ └── showcase/ # Flagship Model Showcase (5 Interactive Models)
|
||||
│ └── media/ # showcase_01..05 before/after assets
|
||||
└── media/ # Legacy alias folder ensuring backward URL compatibility
|
||||
```
|
||||
|
||||
## How to Update the Live Website
|
||||
- **Replace an image**: Drop your replacement file directly into the appropriate section folder (e.g., `sections/our-tools/blemish-remover/after.jpg`).
|
||||
- **Edit text or section settings**: Modify `page.config.json` directly or use the visual editor at `http://localhost:3001/pages/home`.
|
||||
- **Changes take effect immediately** without requiring a rebuild.
|
||||
|
After Width: | Height: | Size: 432 KiB |
|
After Width: | Height: | Size: 269 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 161 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 161 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 157 KiB |