Skip to content

Commit

Permalink
Feature/landing page (#476)
Browse files Browse the repository at this point in the history
* updated landing page + changed template colours

---------
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW authored Sep 8, 2024
1 parent 7db15ba commit 6d052ca
Show file tree
Hide file tree
Showing 15 changed files with 367 additions and 50 deletions.
3 changes: 2 additions & 1 deletion backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from backend.views.core import receipts
from backend.views.core.invoices.single.view import view_invoice_with_uuid_endpoint
from backend.views.core.other.index import dashboard
from backend.views.core.other.index import index
from backend.views.core.other.index import index, pricing
from backend.views.core.quotas.view import quotas_list
from backend.views.core.quotas.view import quotas_page
from backend.views.core.quotas.view import view_quota_increase_requests
Expand All @@ -29,6 +29,7 @@
path("api/", include("backend.api.urls")),
path("webhooks/", include("backend.webhooks.urls")),
path("", index, name="index"),
path("pricing", pricing, name="pricing"),
path("dashboard/", dashboard, name="dashboard"),
path("dashboard/settings/", include("backend.views.core.settings.urls")),
path("dashboard/teams/", include("backend.views.core.teams.urls")),
Expand Down
9 changes: 8 additions & 1 deletion backend/views/core/other/index.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from django.http import HttpRequest
from django.shortcuts import render
from login_required import login_not_required


@login_not_required
def index(request: HttpRequest):
return render(request, "pages/index.html")
return render(request, "pages/landing/index.html")


@login_not_required
def pricing(request: HttpRequest):
return render(request, "pages/landing/pricing.html")


def dashboard(request: HttpRequest):
Expand Down
Binary file added frontend/static/img/brainstorming_finance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/static/img/invoices.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/static/img/receipt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/static/img/software.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6d052ca

Please sign in to comment.