* Vietnamese translation incomplete

Home.html is the homepage for the business directory

Home.html is the homepage for the business directory (English fallback)

Aug. 16, 2025

Posted by admin

 

This template (home.html) is the homepage for the business directory. Here’s what it does:

- Extends the main blog base template and uses Django’s translation system. - Sets the page title to “Business Directory”.

Main sections:

1. Hero Section

  • Large, colorful header with a title and subtitle.
  • Search box for users to search businesses by query and category.

2. Categories Section

  • Shows a grid of business categories (with icon, name in current language, and business count).
  • “View All Businesses” button links to the full directory.

3. Featured Businesses

  • Displays a grid of featured businesses, each as a card with:
    • Image (or placeholder), featured badge
    • Name, category, short description (all language-aware)
    • City and views
    • “View Details” button

4. Recently Added

  • Shows a grid of the most recently added businesses, with similar card layout.

5. Stats Section

  • Shows four stat cards:
    • Total active businesses (sum of featured and recent)
    • Number of categories
    • Number of featured businesses
    • “24/7 Support” (static)

6. Call to Action

  • Encourages users to list their business.
  • If logged in: “Add Your Business” button.
  • If not logged in: “Login to Add Business” button.

Styling:

  • Custom CSS for hero, cards, stats, and call-to-action for a modern, attractive look.

This homepage provides a welcoming, visually appealing entry point to the business directory, highlighting search, categories, featured/recent businesses, and encourages new listings

 

Vietnamese translation is not available for this article. Showing English content:

 

This template (home.html) is the homepage for the business directory. Here’s what it does:

- Extends the main blog base template and uses Django’s translation system. - Sets the page title to “Business Directory”.

Main sections:

1. Hero Section

  • Large, colorful header with a title and subtitle.
  • Search box for users to search businesses by query and category.

2. Categories Section

  • Shows a grid of business categories (with icon, name in current language, and business count).
  • “View All Businesses” button links to the full directory.

3. Featured Businesses

  • Displays a grid of featured businesses, each as a card with:
    • Image (or placeholder), featured badge
    • Name, category, short description (all language-aware)
    • City and views
    • “View Details” button

4. Recently Added

  • Shows a grid of the most recently added businesses, with similar card layout.

5. Stats Section

  • Shows four stat cards:
    • Total active businesses (sum of featured and recent)
    • Number of categories
    • Number of featured businesses
    • “24/7 Support” (static)

6. Call to Action

  • Encourages users to list their business.
  • If logged in: “Add Your Business” button.
  • If not logged in: “Login to Add Business” button.

Styling:

  • Custom CSS for hero, cards, stats, and call-to-action for a modern, attractive look.

This homepage provides a welcoming, visually appealing entry point to the business directory, highlighting search, categories, featured/recent businesses, and encourages new listings

 

Attached Files

0 files found.

You are viewing this article in public mode. Some features may be limited.