Complete Refactor - Changed to Django
This commit is contained in:
19
theme/templates/base.html
Normal file
19
theme/templates/base.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% load static tailwind_tags %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Django Tailwind</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
{% tailwind_css %}
|
||||
</head>
|
||||
|
||||
<body class="bg-gray-50 font-serif leading-normal tracking-normal">
|
||||
<div class="container mx-auto">
|
||||
<section class="flex items-center justify-center h-screen">
|
||||
<h1 class="text-5xl">Django + Tailwind = ❤️</h1>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
theme/templates/unfold/dashboard.html
Normal file
13
theme/templates/unfold/dashboard.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "unfold/admin/base_site.html" %}
|
||||
{% block content %}
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div class="bg-white dark:bg-gray-900 p-6 rounded-2xl shadow">
|
||||
<h2 class="text-xl font-semibold mb-2">Users</h2>
|
||||
<p class="text-3xl font-bold">{{ user_count }}</p>
|
||||
</div>
|
||||
<div class="bg-white dark:bg-gray-900 p-6 rounded-2xl shadow">
|
||||
<h2 class="text-xl font-semibold mb-2">Groups</h2>
|
||||
<p class="text-3xl font-bold">{{ group_count }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user