Skip to content

Commit

Permalink
Merge pull request KTC96#46 from rinalds98/location
Browse files Browse the repository at this point in the history
add contact page with boiler plate text
  • Loading branch information
KTC96 authored Sep 6, 2023
2 parents 593858a + 1721b1d commit 311a509
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions shorecleanse/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
path('accounts/', include('django.contrib.auth.urls')),
path('', views.index, name='index'),
path('about/', views.about, name='about'),
path('contact/', views.contact, name='contact'),
]
5 changes: 4 additions & 1 deletion shorecleanse/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ def index(request):
return render(request, 'index.html')

def about(request):
return render(request, 'about.html')
return render(request, 'about.html')

def contact(request):
return render(request, 'contact.html')
3 changes: 3 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
<li><a class="dropdown-item" href="#">Donabate</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'contact' %}">Contact</a>
</li>
</ul>
</div>
</div>
Expand Down
25 changes: 25 additions & 0 deletions templates/contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% extends 'base.html' %}

{% block content %}

<div class="bg-color">

<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-6 my-5">
<h1 class="mb-4">Location & Contact Details</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Consectetur a erat nam at lectus urna. Ac turpis egestas sed tempus
urna et pharetra.
</p>
<p><strong>Address:</strong> 123 grafton street, Dublin 1</p>
<p><strong>Phone:</strong> 01 123 4567</p>
<p><strong>Email:</strong> [email protected]</p></div>
<div class="col-sm-12 col-lg-6 my-5">
<img src="https://via.placeholder.com/400x400" alt="Google maps image"></div>
</div>
</div>

{% endblock %}

0 comments on commit 311a509

Please sign in to comment.