Skip to content

shashanka2a/threadz

Repository files navigation

THREADZ - Next.js Production App

A production-ready Next.js application converted from React, featuring AI-powered fashion design studio.

Features

  • βœ… Next.js 15 with App Router
  • βœ… TypeScript
  • βœ… Tailwind CSS v3
  • βœ… Dark mode support (next-themes)
  • βœ… GSAP animations
  • βœ… Optimized images (next/image)
  • βœ… SEO optimized with metadata
  • βœ… Responsive design

Prerequisites

  • Node.js 18+ installed
  • npm or yarn

Installation

  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser.

Build for Production

npm run build
npm start

Project Structure

threadz/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ layout.tsx      # Root layout with metadata and theme provider
β”‚   β”œβ”€β”€ page.tsx        # Home page
β”‚   └── globals.css     # Global styles and animations
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ navigation.tsx  # Navigation bar
β”‚   β”œβ”€β”€ hero.tsx        # Hero section
β”‚   β”œβ”€β”€ studio-section.tsx
β”‚   β”œβ”€β”€ gallery-section.tsx
β”‚   β”œβ”€β”€ quality-section.tsx
β”‚   β”œβ”€β”€ footer.tsx
β”‚   β”œβ”€β”€ magnetic-button.tsx
β”‚   β”œβ”€β”€ gsap-provider.tsx
β”‚   └── theme-provider.tsx
β”œβ”€β”€ hooks/
β”‚   └── use-typing-effect.ts
└── public/             # Static assets (favicon, og-image, etc.)

Key Changes from React

  1. App Router Structure: Converted to Next.js App Router format
  2. Client Components: All interactive components marked with "use client"
  3. Image Optimization: All <img> tags replaced with next/image
  4. GSAP Integration: GSAP loaded as npm package instead of CDN
  5. Theme Management: Using next-themes for dark mode
  6. SEO: Added comprehensive metadata in layout.tsx
  7. TypeScript: Full TypeScript support with proper types

Configuration

  • Tailwind: Configured in tailwind.config.ts
  • TypeScript: Configured in tsconfig.json
  • ESLint: Configured in .eslintrc.json (ignored during builds)
  • Next.js: Configured in next.config.ts with image domains

Notes

  • The app uses Unsplash images for gallery and studio sections
  • GSAP animations are initialized in GSAPProvider component
  • Dark mode persists using next-themes
  • All components are properly typed with TypeScript

Next Steps

  1. Add your favicon to /public/favicon.ico
  2. Add Open Graph image to /public/og-image.jpg (1200x630px)
  3. Customize metadata in app/layout.tsx
  4. Deploy to Vercel or your preferred hosting platform

About

πŸ‘• AI powered T-shirt designs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published