homepage
This commit is contained in:
parent
7026e61989
commit
5426b0678e
6 changed files with 27 additions and 2 deletions
BIN
hub/services/static/img/servala-logo.png
Normal file
BIN
hub/services/static/img/servala-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
|
@ -27,7 +27,7 @@
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="{% url 'services:service_list' %}">Servala</a>
|
<a class="navbar-brand" href="{% url 'services:homepage' %}">Servala</a>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
18
hub/services/templates/services/homepage.html
Normal file
18
hub/services/templates/services/homepage.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{% extends 'services/base.html' %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="px-4 py-5 my-5 text-center">
|
||||||
|
<img class="d-block mx-auto mb-4" src="{% static "img/servala-logo.png" %}" alt="" height="150">
|
||||||
|
<h1 class="display-5 fw-bold text-body-emphasis">The Cloud Native Service Hub</h1>
|
||||||
|
<div class="col-lg-6 mx-auto">
|
||||||
|
<p class="lead mb-4">Minions ipsum uuuhhh me want bananaaa! Ti aamoo! Daa la bodaaa tatata bala tu uuuhhh. Aaaaaah pepete uuuhhh po kass.</p>
|
||||||
|
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
|
||||||
|
<a href="{% url 'services:service_list' %}"><button type="button" class="btn btn-primary btn-lg px-4 gap-3">Discover Services</button></a>
|
||||||
|
<a href="{% url 'services:offering_list' %}"><button type="button" class="btn btn-primary btn-lg px-4 gap-3">Discover Offerings</button></a>
|
||||||
|
<a href="{% url 'services:provider_list' %}"><button type="button" class="btn btn-primary btn-lg px-4 gap-3">Discover Cloud Providers</button></a>
|
||||||
|
<a href="{% url 'services:partner_list' %}"><button type="button" class="btn btn-primary btn-lg px-4 gap-3">Discover Consulting</button></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
|
@ -4,10 +4,11 @@ from . import views
|
||||||
app_name = "services"
|
app_name = "services"
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", views.service_list, name="service_list"),
|
path("", views.homepage, name="homepage"),
|
||||||
path("offerings/", views.offering_list, name="offering_list"),
|
path("offerings/", views.offering_list, name="offering_list"),
|
||||||
path("providers/", views.provider_list, name="provider_list"),
|
path("providers/", views.provider_list, name="provider_list"),
|
||||||
path("partners/", views.partner_list, name="partner_list"),
|
path("partners/", views.partner_list, name="partner_list"),
|
||||||
|
path("service/", views.service_list, name="service_list"),
|
||||||
path("service/<slug:slug>/", views.service_detail, name="service_detail"),
|
path("service/<slug:slug>/", views.service_detail, name="service_detail"),
|
||||||
path("offering/<slug:slug>/", views.offering_detail, name="offering_detail"),
|
path("offering/<slug:slug>/", views.offering_detail, name="offering_detail"),
|
||||||
path("provider/<slug:slug>/", views.provider_detail, name="provider_detail"),
|
path("provider/<slug:slug>/", views.provider_detail, name="provider_detail"),
|
||||||
|
|
|
@ -3,3 +3,4 @@ from .offerings import *
|
||||||
from .partners import *
|
from .partners import *
|
||||||
from .providers import *
|
from .providers import *
|
||||||
from .services import *
|
from .services import *
|
||||||
|
from .pages import *
|
||||||
|
|
5
hub/services/views/pages.py
Normal file
5
hub/services/views/pages.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
|
||||||
|
def homepage(request):
|
||||||
|
return render(request, "services/homepage.html")
|
Loading…
Add table
Add a link
Reference in a new issue