{% extends "base.html" %} {% block title %}Home - Product Recommendation Engine{% endblock %} {% block content %}

Discover Products You'll Love

Our AI-powered recommendation engine helps you find the perfect products based on your preferences and browsing history.

{% if not current_user.is_authenticated %} {% else %} {% endif %}

Featured Products

Popular products that other customers love

{% if featured_products %}
{% for product in featured_products %}
{% if product.image_url %} {{ product.name }} {% else %}
{% endif %}
{{ product.name }}

{{ product.description[:100] }}{% if product.description|length > 100 %}...{% endif %}

{{ product.category }}
{% set avg_rating = product.get_average_rating() %} {% if avg_rating > 0 %} {% for i in range(5) %} {% if i < avg_rating %}★{% else %}☆{% endif %} {% endfor %} ({{ product.get_rating_count() }}) {% else %} No ratings yet {% endif %}
${{ "%.2f"|format(product.price) }} View Details
{% endfor %}
{% else %}

No featured products available

Check back later for new products!

{% endif %}
{% if current_user.is_authenticated and recommendations %}

Recommended for You

Personalized recommendations based on your preferences

{% for product in recommendations %}
{% if product.image_url %} {{ product.name }} {% else %}
{% endif %}
{{ product.name }}

{{ product.description[:100] }}{% if product.description|length > 100 %}...{% endif %}

{{ product.category }}
{% set avg_rating = product.get_average_rating() %} {% if avg_rating > 0 %} {% for i in range(5) %} {% if i < avg_rating %}★{% else %}☆{% endif %} {% endfor %} ({{ product.get_rating_count() }}) {% else %} No ratings yet {% endif %}
${{ "%.2f"|format(product.price) }} View Details
{% endfor %}
{% endif %}

Smart Recommendations

AI-powered collaborative filtering to suggest products you'll love based on similar users' preferences.

Advanced Search

Find products quickly with our powerful search and filtering capabilities across all categories.

User Ratings

Rate and review products to help others make informed decisions and improve recommendations.

{% endblock %} {% block extra_scripts %} {% endblock %}