website / templates /admin /dashboard.html
Swapnilbpatil's picture
Upload 18 files
a593a1f verified
Raw History Blame Contribute Delete
3.36 kB
<!-- templates/admin/dashboard.html -->
{% extends 'admin/layout.html' %}
{% block content %}
<div class="bg-white rounded-2xl shadow-lg p-8">
<h1 class="text-4xl font-extrabold text-gray-800 mb-8">👋 Welcome to the Admin Dashboard</h1>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Products Management Card -->
<div class="bg-blue-50 hover:shadow-xl transition-shadow duration-300 p-6 rounded-2xl border border-blue-100">
<div class="flex items-center justify-between mb-4">
<h2 class="text-2xl font-semibold text-blue-800">Products</h2>
<svg class="w-8 h-8 text-blue-500" fill="none" stroke="currentColor" stroke-width="2"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M3 3h18v4H3z"></path>
<path d="M3 7h18v13H3z"></path>
</svg>
</div>
<p class="text-gray-600 mb-4">Add, edit, and manage your product inventory with ease.</p>
<a href="{{ url_for('admin_products') }}"
class="inline-block bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200">
Manage Products
</a>
</div>
<!-- Orders Management Card -->
<div class="bg-green-50 hover:shadow-xl transition-shadow duration-300 p-6 rounded-2xl border border-green-100">
<div class="flex items-center justify-between mb-4">
<h2 class="text-2xl font-semibold text-green-800">Orders</h2>
<svg class="w-8 h-8 text-green-500" fill="none" stroke="currentColor" stroke-width="2"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M9 21V12H4l8-8 8 8h-5v9z"></path>
</svg>
</div>
<p class="text-gray-600 mb-4">Track and manage all customer orders efficiently.</p>
<a href="{{ url_for('admin_orders') }}"
class="inline-block bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200">
View Orders
</a>
</div>
<!-- Store Front Card -->
<div class="bg-purple-50 hover:shadow-xl transition-shadow duration-300 p-6 rounded-2xl border border-purple-100">
<div class="flex items-center justify-between mb-4">
<h2 class="text-2xl font-semibold text-purple-800">Store Front</h2>
<svg class="w-8 h-8 text-purple-500" fill="none" stroke="currentColor" stroke-width="2"
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M4 4h16v4H4z"></path>
<path d="M4 8h16v12H4z"></path>
</svg>
</div>
<p class="text-gray-600 mb-4">Preview your online store as customers see it.</p>
<a href="{{ url_for('home') }}"
class="inline-block bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200"
target="_blank">
Visit Store
</a>
</div>
</div>
</div>
{% endblock %}