diff --git a/hub/services/static/css/servala-main.css b/hub/services/static/css/servala-main.css index 9d99d26..dc240b5 100644 --- a/hub/services/static/css/servala-main.css +++ b/hub/services/static/css/servala-main.css @@ -12322,4 +12322,20 @@ a.btn:focus { .page-content .page-action a { text-decoration: none +} + +.clickable-card { + cursor: pointer; + transition: transform 0.2s, box-shadow 0.2s; + position: relative; +} + +.clickable-card:hover { + transform: translateY(-5px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); +} + +.clickable-button { + position: relative; + z-index: 2; } \ No newline at end of file diff --git a/hub/services/static/js/servala-addons.js b/hub/services/static/js/servala-addons.js new file mode 100644 index 0000000..d3c164f --- /dev/null +++ b/hub/services/static/js/servala-addons.js @@ -0,0 +1,9 @@ +function cardClicked(event, url) { + // Don't navigate if the click was on a button or link + if (event.target.closest('.clickable-button') || event.target.closest('.clickable-link')) { + return; + } + + // Navigate to the provider detail page + window.location.href = url; +} \ No newline at end of file diff --git a/hub/services/templates/base.html b/hub/services/templates/base.html index f103d7c..fd32704 100644 --- a/hub/services/templates/base.html +++ b/hub/services/templates/base.html @@ -23,6 +23,7 @@ + {% block extra_js %}{% endblock %}
diff --git a/hub/services/templates/pages/homepage.html b/hub/services/templates/pages/homepage.html index c3d235a..f16da44 100644 --- a/hub/services/templates/pages/homepage.html +++ b/hub/services/templates/pages/homepage.html @@ -41,20 +41,31 @@{{ category.name }}
+ {% endfor %} +{{ service.description|safe|truncatewords:15 }}
+{{ category.name }}
- {% endfor %} -{{ service.description|safe|truncatewords:15 }}
-{{ provider.description|safe|truncatewords:15 }}
+{{ provider.description|safe|truncatewords:15 }}
No featured provider available at the moment.
-No featured provider available at the moment.
+{{ partner.description|safe|truncatewords:15 }}
+{{ partner.description|safe|truncatewords:15 }}
+No featured partner available at the moment.
+No featured partner available at the moment.
Still need more information? Read our FAQ or contact us to learn more about the Servala.
+Still need more information? Read our FAQ or contact us to learn more about the Servala.
{% for category in service.categories.all %} @@ -211,8 +192,13 @@