diff --git a/apps/home/urls.py b/apps/home/urls.py index 91ab8db..f8dca9d 100644 --- a/apps/home/urls.py +++ b/apps/home/urls.py @@ -3,11 +3,11 @@ from django.urls import path, include, re_path from django.shortcuts import redirect -from apps.home import views +from .views import IndexView -def reverse_to_index(reqeust): - return redirect("admin:index") +# def reverse_to_index(reqeust): +# return redirect("admin:index") urlpatterns = [ - path("", reverse_to_index, name="index"), + path("", IndexView.as_view(), name="index"), ] diff --git a/apps/home/views.py b/apps/home/views.py index d5d345e..d81ba1c 100644 --- a/apps/home/views.py +++ b/apps/home/views.py @@ -1,9 +1,17 @@ # -*- encoding: utf-8 -*- -from django import template -from django.contrib.auth.decorators import login_required -from django.http import HttpResponse, HttpResponseRedirect -from django.template import loader +# from django import template +# from django.contrib.auth.decorators import login_required +# from django.http import HttpResponse, HttpResponseRedirect +# from django.template import loader +# from django.urls import reverse -from django.urls import reverse +from django.views.generic import TemplateView + +class IndexView(TemplateView): + """ + + """ + + template_name = "home/index.html" diff --git a/apps/static/css/index.css b/apps/static/css/index.css index 6670b68..64d374a 100644 --- a/apps/static/css/index.css +++ b/apps/static/css/index.css @@ -74,6 +74,14 @@ body { border-bottom: 1px solid var(--border-colour) !important; } +.bdR { + border-right: 1px solid var(--border-colour) !important; +} + +.bdL { + border-left: 1px solid var(--border-colour) !important; +} + .w-fc { width: fit-content; } @@ -115,7 +123,7 @@ body { } .sidebar-logo { - border-right: 1px solid var(--border-colour); + border-right: none !important; border-bottom: 1px solid var(--border-colour); } diff --git a/apps/static/images/pyrss.png b/apps/static/images/pyrss.png new file mode 100644 index 0000000..9a0f49f Binary files /dev/null and b/apps/static/images/pyrss.png differ diff --git a/apps/static/images/pyrss_logo.webp b/apps/static/images/pyrss_logo.webp new file mode 100644 index 0000000..fd0eb7e Binary files /dev/null and b/apps/static/images/pyrss_logo.webp differ diff --git a/apps/templates/home/blank.html b/apps/templates/home/blank.html index b8ac486..32465f7 100644 --- a/apps/templates/home/blank.html +++ b/apps/templates/home/blank.html @@ -8,7 +8,7 @@ {% block content %} -
+
diff --git a/apps/templates/home/index.html b/apps/templates/home/index.html index fece110..64ba000 100644 --- a/apps/templates/home/index.html +++ b/apps/templates/home/index.html @@ -8,7 +8,7 @@ {% block content %} -
+
@@ -16,7 +16,7 @@
-
+
Total Visits
@@ -35,7 +35,7 @@
-
+
Total Page Views
@@ -54,7 +54,7 @@
-
+
Unique Visitor
@@ -73,7 +73,7 @@
-
+
Bounce Rate
@@ -93,7 +93,7 @@
-
+
@@ -101,7 +101,7 @@
Site Visits
-
+
@@ -173,7 +173,7 @@
-
+
Monthly Stats
@@ -206,7 +206,7 @@
-
+
Todo List
@@ -283,7 +283,7 @@
-
+
Sales Report
@@ -365,7 +365,7 @@
-
+
@@ -489,7 +489,7 @@
-
+
Quick Chat
@@ -505,7 +505,7 @@
-
+
10:00 AM
@@ -515,7 +515,7 @@
-
+
10:00 AM
@@ -525,7 +525,7 @@
-
+
10:00 AM
@@ -546,7 +546,7 @@
-
+
10:00 AM
@@ -556,7 +556,7 @@
-
+
10:00 AM
@@ -570,7 +570,7 @@
-
+