Không phải app đếm calo bình thường. Nutree tự điều chỉnh mục tiêu hằng ngày, gợi ý bữa ăn và track macro cho bạn bằng AI. Tải miễn phí trên iOS và Android.
Translation pending
HealthTypeScript · MDXGitHub @Nutree-AI-VietnamOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗Next.js 14 landing page for Nutree - AI-powered nutrition tracking platform.
Live Demo: Coming soon Source: trandactri/nutree-web License: BSD-3-Clause
# Install dependencies
npm install
# Start development server
npm run dev
Open http://localhost:3000 in your browser.
npm run dev # Start dev server (hot reload)
npm run build # Build for production
npm start # Start production server
npm run lint # Run ESLint
npm run type-check # Run TypeScript type checking
web/
├── src/
│ ├── app/
│ │ ├── layout.tsx # Root layout with Header & Footer
│ │ ├── page.tsx # Home page with Hero + Aurora background
│ │ ├── changelog/
│ │ │ └── page.tsx # Changelog page (Phase 4)
│ │ └── globals.css # Global styles, CSS variables, animations
│ ├── components/ # Reusable React components (Phase 3: COMPLETE)
│ │ ├── ui/
│ │ │ ├── Button.tsx # Button component with variants (primary/secondary/ghost)
│ │ │ ├── Logo.tsx # Logo component with responsive sizes
│ │ │ ├── FeatureCard.tsx # Feature showcase with icon, title, description (Phase 3)
│ │ │ └── ScreenshotPlaceholder.tsx # Mock phone frame placeholder (Phase 3)
│ │ ├── layout/
│ │ │ ├── Header.tsx # Navigation header with scroll detection
│ │ │ ├── Footer.tsx # Footer with GitHub link and license
│ │ │ ├── MobileMenu.tsx # Mobile navigation drawer
│ │ │ └── AuroraBackground.tsx # Animated mesh gradient background
│ │ └── sections/
│ │ ├── Hero.tsx # Hero section with CTAs and trust badges
│ │ ├── Features.tsx # Features grid with scroll animations (Phase 3)
│ │ ├── DemoVideo.tsx # Demo video placeholder section (Phase 3)
│ │ └── DownloadCTA.tsx # Download CTA with stats (Phase 3)
│ ├── hooks/
│ │ └── useInView.ts # IntersectionObserver hook for scroll animations (Phase 3)
│ ├── lib/
│ │ ├── cn.ts # className utility (clsx + tailwind-merge)
│ │ ├── constants.ts # Site config, navigation links, FEATURES, FEATURE_ICONS (Phase 3 update)
│ │ └── utils.ts # Utility functions (Phase 3+)
│ └── types/
│ └── index.ts # TypeScript type definitions
├── public/
│ ├── logo.png # Brand logo
│ ├── favicon.ico # Browser favicon
│ └── apple-touch-icon.png # iOS home screen icon
├── package.json
├── tsconfig.json
├── tailwind.config.ts
├── next.config.js
├── postcss.config.js
├── .eslintrc.json
├── ONBOARDING.md # Developer onboarding guide
└── .gitignore
Brand Palette (extracted from Nutree logo):
Primary Forest Green: #1A4739 (rgb(26, 71, 57))
Teal: #29B6A1 (rgb(41, 182, 161))
Emerald: #2D8B70 (rgb(45, 139, 112))
Background: #FAFCFB (off-white, green tint)
Foreground: #0F1F1A (near black, green tint)
Muted: #6B7B75 (muted green-gray)
Border: #D4E5DE (soft green border)
Nutrition Accents:
Protein: #E91E63 (pink)
Carbs: #FFC107 (amber)
Fat: #9C27B0 (purple)
Calories: #FF5722 (deep orange)
Font: Be Vietnam Pro, one family for headings and body text
next/font/google as --font-be-vietnam; Tailwind's font-display and font-body both use itAurora Background: Animated radial gradient mesh effect
Button Styles:
Animations:
See src/app/globals.css for full implementation.
Custom theme configured in tailwind.config.ts:
Configuration in next.config.js:
Strict mode enabled in tsconfig.json:
strict: truenoImplicitAny: truemoduleResolution: bundler@/* → ./src/*// src/components/Header.tsx
import clsx from 'clsx';
interface HeaderProps {
className?: string;
}
export function Header({ className }: HeaderProps) {
return (
<header className={clsx('bg-background', className)}>
{/* Component content */}
</header>
);
}
Use Tailwind utility classes with custom theme colors:
<button className="bg-gradient-brand text-white px-8 py-4 rounded-full hover:shadow-lg">
Get Started
</button>
For complex styles, use globals.css with @layer directive:
@layer components {
.custom-component {
@apply flex items-center gap-4;
}
}
Always define props interfaces:
interface Props {
title: string;
count?: number;
onClick: (id: string) => void;
}
export function Component({ title, count, onClick }: Props) {
// ...
}
Principles: KISS (Keep It Simple) • DRY (Don't Repeat) • YAGNI (You Aren't Gonna Need It)
Rules:
any typessrc/lib/constants.tsFormatting:
npm run lint # Check ESLint rules
npm run type-check # Verify TypeScript types
No environment variables required for development. Optional for advanced features:
# .env.local (not committed)
NEXT_PUBLIC_API_URL=https://api.nutreeai.com
npm run build
npm start
Optimizations applied:
next/image)The project is configured for Docker deployment:
# Build image
docker build -t nutree-web:latest .
# Run container
docker run -p 3000:3000 nutree-web:latest
See the main project Deployment Guide for full Docker/K8s setup.
Modern Fitness Aesthetic (Completed Dec 9, 2025)
New sections implemented:
New UI components:
Design enhancements:
Completed Components (6 total, 518 LOC):
New Constants:
Key Design Decisions:
Code Quality (9.5/10):
Security Notes:
Accessibility Notes:
See Phase 3 Implementation Plan for details.
git checkout -b feature/descriptionnpm run lintnpm run type-checkgit commit -m "feat(scope): description"Comprehensive project documentation is available in the /docs directory:
BSD-3-Clause - See LICENSE file for details