-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final Push with landing page, dashboard page and github actions
- Loading branch information
1 parent
7a4c4cb
commit d2e7225
Showing
32 changed files
with
1,606 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
STATICFILES_VENDOR_DIR = getattr(settings,'STATICFILES_VENDOR_DIR') | ||
|
||
VENDOR_STATICFILES = { | ||
"saas-theme.min.css":"https://raw.githubusercontent.com/codingforentrepreneurs/SaaS-Foundations/main/src/staticfiles/theme/saas-theme.min.css", | ||
"flowbite.min.css":"https://cdn.jsdelivr.net/npm/[email protected]/dist/flowbite.min.css", | ||
"flowbite.min.js":"https://cdn.jsdelivr.net/npm/[email protected]/dist/flowbite.min.js", | ||
"flowbite.min.js.map":"https://cdn.jsdelivr.net/npm/[email protected]/dist/flowbite.min.js.map" | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class DashboardConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'dashboard' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.contrib.auth.decorators import login_required | ||
from django.shortcuts import render | ||
|
||
@login_required | ||
def dashboard_view(request): | ||
return render(request, "dashboard/main.html", {}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class LandingConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'landing' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from django.shortcuts import render | ||
from visits.models import PageVisits | ||
from dashboard.views import dashboard_view | ||
|
||
def landing_dashboard_page_view(request): | ||
if request.user.is_authenticated: | ||
return dashboard_view(request) | ||
qs = PageVisits.objects.all() | ||
PageVisits.objects.create(path=request.path) | ||
return render(request,"landing/main.html", {"page_view_count":qs.count()}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,3 +72,4 @@ def subscription_price_view(request, interval="month"): | |
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
{% load static %} | ||
<link href="{% static 'vendors/flowbite.min.css' %}" rel="stylesheet" /> | ||
<link href="{% static 'vendors/saas-theme.min.css' %}" rel="stylesheet" /> | ||
|
||
<!-- Custom CSS Overrides --> | ||
<style> | ||
a[href="{% url 'account_login' %}"], a[href="/accounts/signup/"]"{ | ||
background-color: transparent !important; | ||
color: blue !important; | ||
border: none !important; | ||
padding: 0 !important; | ||
} | ||
|
||
a[href="{% url 'home' %}"] { | ||
background-color: transparent !important; | ||
color: gray !important; | ||
border: none !important; | ||
padding: 0 !important; | ||
} | ||
|
||
a[href="{% url 'home' %}"]:hover { | ||
color: blue !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title> | ||
{% block head_title %} | ||
saas | ||
{% endblock head_title%} | ||
</title> | ||
{% include "base/css.html" %} | ||
</head> | ||
<body> | ||
<div class="antialiased bg-gray-50 dark:bg-gray-900"> | ||
{% include "dashboard/nav.html" %} | ||
<!-- Sidebar --> | ||
{% include "dashboard/sidebar.html" %} | ||
|
||
<main class="p-4 md:ml-64 h-auto pt-20"> | ||
|
||
|
||
|
||
{% include 'base/messages.html' with messages=messages%} | ||
{% block content %} | ||
{% endblock content %} | ||
|
||
</main> | ||
</div> | ||
{% include "base/js.html" %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{% extends "dashboard/base.html" %} | ||
|
||
{% block head_title %} | ||
Build Your SAAS Now - {{block.super}} | ||
{% endblock head_title %} | ||
|
||
{% block content %} | ||
|
||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-4"> | ||
<div | ||
class="border-2 border-dashed border-gray-300 rounded-lg dark:border-gray-600 h-32 md:h-64" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-32 md:h-64" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-32 md:h-64" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-32 md:h-64" | ||
></div> | ||
</div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-96 mb-4" | ||
></div> | ||
<div class="grid grid-cols-2 gap-4 mb-4"> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
</div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-96 mb-4" | ||
></div> | ||
<div class="grid grid-cols-2 gap-4"> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
<div | ||
class="border-2 border-dashed rounded-lg border-gray-300 dark:border-gray-600 h-48 md:h-72" | ||
></div> | ||
</div> | ||
|
||
|
||
{% endblock content %} |
Oops, something went wrong.