Skip to content

Repository files navigation

Silk Sarees E-commerce Platform

A premium, modern e-commerce platform for silk sarees built with ASP.NET Core 8 MVC, featuring stunning UI/UX with Tailwind CSS v3 and Alpine.js.

✨ Features

🎨 Premium Design & Themes

  • Luxury Maroon-Gold Theme: Rich, elegant design perfect for premium fashion
  • Minimal Pastel Theme: Clean, modern aesthetic for contemporary appeal
  • Theme Switching: Seamless theme toggle with persistent storage
  • Responsive Design: Mobile-first approach with beautiful desktop experience

πŸš€ Modern Front-End Stack

  • Tailwind CSS v3: Utility-first CSS framework with custom design system
  • Alpine.js: Lightweight JavaScript framework for interactivity
  • Custom Components: Reusable UI components (header, footer, modals, drawers)
  • Smooth Animations: CSS transitions, keyframes, and micro-interactions

πŸ›οΈ E-commerce Features

  • Product Catalog: Beautiful product grids with lazy loading
  • Shopping Cart: Slide-out cart drawer with real-time updates
  • Search System: Advanced search with suggestions and results
  • Quick View: Product preview modals for fast browsing
  • Wishlist: Save favorite products for later
  • User Management: Profile, orders, and admin panel

πŸ“± User Experience

  • Mobile-First: Optimized for all device sizes
  • Accessibility: ARIA labels, keyboard navigation, screen reader support
  • Performance: Lazy loading, optimized images, smooth scrolling
  • SEO Optimized: Meta tags, structured data, semantic HTML

πŸ› οΈ Setup Instructions

Prerequisites

  • .NET 8.0 SDK
  • Node.js 18+ and npm
  • PostgreSQL database
  • Visual Studio 2022 or VS Code

1. Clone & Setup

git clone <repository-url>
cd SilkSareeEcommerce

2. Install Dependencies

# Install .NET dependencies
dotnet restore

# Install Node.js dependencies for Tailwind CSS
npm install

3. Configure Database

# Update connection string in appsettings.json
# Run migrations
dotnet ef database update

4. Build Tailwind CSS

# Development (with watch mode)
npm run dev

# Production build
npm run build:css:prod

5. Run Application

dotnet run

🎨 Tailwind CSS Configuration

Custom Colors

  • Luxury Theme: Maroon, gold, and warm tones
  • Minimal Theme: Pastel, sage, and blush colors
  • Semantic Colors: Primary, secondary, accent variants

Custom Animations

  • fade-in, slide-up, slide-down
  • scale-in, bounce-gentle
  • Smooth transitions and hover effects

Typography

  • Inter: Modern sans-serif for body text
  • Playfair Display: Elegant serif for headings
  • Cormorant Garamond: Display font for special text

πŸ“ Project Structure

SilkSareeEcommerce/
β”œβ”€β”€ Views/
β”‚   β”œβ”€β”€ Shared/
β”‚   β”‚   β”œβ”€β”€ _Layout.cshtml          # Main layout with theme switching
β”‚   β”‚   β”œβ”€β”€ _Header.cshtml          # Navigation header
β”‚   β”‚   β”œβ”€β”€ _Footer.cshtml          # Site footer
β”‚   β”‚   β”œβ”€β”€ _CartDrawer.cshtml      # Shopping cart drawer
β”‚   β”‚   β”œβ”€β”€ _SearchModal.cshtml     # Search functionality
β”‚   β”‚   └── _QuickViewModal.cshtml  # Product quick view
β”‚   └── [Other Views]
β”œβ”€β”€ wwwroot/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   β”œβ”€β”€ site.css                # Base styles
β”‚   β”‚   └── tailwind.css            # Generated Tailwind CSS
β”‚   └── js/
β”‚       └── site.js                 # Custom JavaScript
β”œβ”€β”€ tailwind.config.js              # Tailwind configuration
β”œβ”€β”€ package.json                    # Node.js dependencies
└── README.md                       # This file

πŸ”§ Customization

Adding New Themes

  1. Add color palette to tailwind.config.js
  2. Update CSS variables in _Layout.cshtml
  3. Add theme toggle logic in JavaScript

Creating New Components

  1. Create partial view in Views/Shared/
  2. Add Tailwind classes for styling
  3. Include in layout or other views

Modifying Colors

// In tailwind.config.js
colors: {
  custom: {
    50: '#fef7f0',
    500: '#f2751a',
    900: '#7a2e14',
  }
}

πŸš€ Deployment

Local Development

npm run dev          # Watch Tailwind CSS
dotnet watch run     # Watch .NET app

Production Build

npm run build:css:prod    # Build optimized CSS
dotnet publish -c Release # Publish .NET app

Docker Deployment

docker build -t silk-sarees .
docker run -p 8080:80 silk-sarees

πŸ“± Responsive Breakpoints

  • Mobile: < 640px - Single column, stacked layout
  • Tablet: 640px - 1024px - Two column grid
  • Desktop: > 1024px - Full layout with sidebars

🎯 Browser Support

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

πŸ” Performance Tips

  1. Use lazy class for images - Enables lazy loading
  2. Optimize Tailwind output - Use @apply for repeated patterns
  3. Minimize JavaScript - Use Alpine.js for simple interactions
  4. Cache static assets - Leverage browser caching

πŸ› Troubleshooting

Tailwind CSS Not Loading

  • Ensure npm install completed successfully
  • Check tailwind.css file exists in wwwroot/css/
  • Verify build script ran without errors

Theme Switching Not Working

  • Check browser console for JavaScript errors
  • Verify localStorage is enabled
  • Ensure theme classes are properly applied

Responsive Issues

  • Test on different screen sizes
  • Check Tailwind responsive prefixes
  • Verify viewport meta tag

πŸ“š Resources

🀝 Contributing

  1. Fork the repository
  2. Create feature branch
  3. Make changes with proper Tailwind classes
  4. Test responsiveness and theme switching
  5. Submit pull request

πŸ“„ License

MIT License - see LICENSE file for details


Built with ❀️ for the Silk Sarees community

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages