Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#14] Added about us #22

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/bobvance/base/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.urls import path, include
from bobvance.base.views import Home, ProductsView, ProductDetailView, AddToCartView, CartView, UpdateCartView, RemoveFromCartView
from bobvance.base.views import Home, ProductsView, ProductDetailView, AddToCartView, CartView, UpdateCartView, RemoveFromCartView, AboutUsView

urlpatterns = [
path('', Home.as_view(), name='home'),
Expand All @@ -9,4 +9,5 @@
path('cart/', CartView.as_view(), name='cart'),
path('update-cart/', UpdateCartView.as_view(), name='update_cart'),
path('remove-from-cart/', RemoveFromCartView.as_view(), name='remove_from_cart'),
path('about-us/', AboutUsView.as_view(), name='about_us'),
]
3 changes: 3 additions & 0 deletions src/bobvance/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@ def post(self, request, *args, **kwargs):
return JsonResponse({'status': status, 'message': message})

return redirect('cart')

class AboutUsView(TemplateView):
template_name = 'base/aboutus.html'
25 changes: 25 additions & 0 deletions src/bobvance/templates/base/aboutus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% extends 'master.html' %}
{% block content %}
{% include 'components/header.html' %}

<div class="py-12">
<h1 class="font-bold text-3xl text-center my-10">Over Ons</h1>

<div class="max-w-2xl mx-auto px-4 sm:px-6 lg:px-8">
<p class="text-center text-gray-700 mb-6">
Welkom bij Bobvance, uw vertrouwde partner in de wereld van hoogwaardige, duurzame producten die het dagelijkse leven verrijken en vergemakkelijken.
</p>
<p class="text-center text-gray-700 mb-6">
Bobvance werd geboren uit een passie voor innovatie en een niet-aflatende toewijding aan kwaliteit. Ons assortiment omvat een zorgvuldig geselecteerde collectie van producten, variërend van de nieuwste technologische gadgets en huishoudelijke apparaten tot unieke en stijlvolle lifestyle-artikelen.
</p>
<p class="text-center text-gray-700 mb-6">
Ons team is toegewijd aan het leveren van uitzonderlijke klantenservice en een plezierige winkelervaring, waarbij we voortdurend nieuwe en opwindende producten aan ons assortiment toevoegen om aan uw behoeften te voldoen.
</p>
<p class="text-center text-gray-700 mb-6">
Bij Bobvance streven we naar duurzaamheid, kwaliteit en klanttevredenheid, terwijl we innovatieve oplossingen bieden die uw leven verbeteren en verrijken. Dank u dat u deel uitmaakt van onze reis naar een betere, duurzamere toekomst.
</p>
</div>
</div>

{% include 'components/footer.html' %}
{% endblock %}
2 changes: 1 addition & 1 deletion src/bobvance/templates/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<a class="mt-3 text-gray-600 hover:underline sm:mx-3 sm:mt-0" href="{% url 'home' %}">Home</a>
<a class="mt-3 text-gray-600 hover:underline sm:mx-3 sm:mt-0" href="{% url 'products'%}">Shop</a>
<a class="mt-3 text-gray-600 hover:underline sm:mx-3 sm:mt-0" href="{% url 'contact'%}">Contact</a>
<a class="mt-3 text-gray-600 hover:underline sm:mx-3 sm:mt-0" href="#">Over ons</a>
<a class="mt-3 text-gray-600 hover:underline sm:mx-3 sm:mt-0" href="{% url 'about_us'%}">Over ons</a>
</div>
</nav>
<div class="relative mt-6 max-w-lg mx-auto">
Expand Down
Loading