Compare commits

...

3 commits

Author SHA1 Message Date
290c4fb63e
get it button on offering details
All checks were successful
Build and Deploy / build (push) Successful in 39s
Build and Deploy / deploy (push) Successful in 5s
2025-05-07 09:53:34 +02:00
c22d75fe2b
style get it on buttons with csp logo as card 2025-05-07 09:48:17 +02:00
cbb5a4a1cb
add more prominent cta to service detail 2025-05-07 09:32:06 +02:00
2 changed files with 83 additions and 44 deletions

View file

@ -96,7 +96,9 @@
<div class="col-12 col-lg-9">
<div class="pr-lg-32">
<!-- Header -->
<div class="pt-60 pb-lg-60 w-lg-70">
<div class="pt-60 pb-lg-60">
<div class="row">
<div class="col-lg-8">
<header>
<h2 class="fs-50 fw-semibold lh-1 mb-12"><a href="{{ offering.service.get_absolute_url }}" class="text-decoration-none">Managed {{ offering.service.name }}</a></h2>
</header>
@ -115,6 +117,14 @@
{% endif %}
</div>
<div class="col-lg-4 d-flex align-items-center justify-content-lg-end mt-4 mt-lg-0">
<a href="#plans" class="btn btn-primary btn-lg px-4 py-2 fw-semibold d-flex align-items-center">
<i class="bi bi-cart me-2"></i>Get It
</a>
</div>
</div>
</div>
{% if offering.service.description %}
<!-- Service Overview -->
<div>

View file

@ -100,7 +100,9 @@
<div class="col-12 col-lg-9">
<div class="pr-lg-32">
<!-- Header -->
<div class="pt-60 pb-lg-60 w-lg-70">
<div class="pt-60 pb-lg-60">
<div class="row">
<div class="col-lg-8">
<header>
<h2 class="fs-50 fw-semibold lh-1 mb-12">{{ service.name }}</h2>
</header>
@ -118,6 +120,14 @@
{% endif %}
</div>
<div class="col-lg-4 d-flex align-items-center justify-content-lg-end mt-4 mt-lg-0">
<a href="#getit" class="btn btn-primary btn-lg px-4 py-2 fw-semibold d-flex align-items-center">
<i class="bi bi-cart me-2"></i>Get It
</a>
</div>
</div>
</div>
<!-- Description -->
<div class="pt-40 pt-lg-34">
<h3 class="fs-24 fw-semibold lh-1 mb-12">Overview</h3>
@ -137,17 +147,36 @@
{% endif %}
<!-- CTA -->
<div class="pt-24">
<div class="pt-24" id="getit">
<div class="page-action">
{% if service.offerings.exists %}
<h3 class="fs-24 fw-semibold lh-1 mb-12">Get it on</h3>
<p>Choose one of our trusted service providers</p>
<div class="d-flex flex-wrap gap-3">
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
{% for offering in service.offerings.all %}
{% if not offering.cloud_provider.disable_listing %}
<a class="btn btn-primary btn-lg w-auto"
href="{% url 'services:offering_detail' offering.cloud_provider.slug offering.service.slug %}"
role="button">{{ offering.cloud_provider.name }}</a>
<div class="col">
<a href="{% url 'services:offering_detail' offering.cloud_provider.slug offering.service.slug %}#plans"
class="text-decoration-none" style="display: block;">
<div class="card h-100 clickable-card">
<div class="card-body text-center">
{% if offering.cloud_provider.logo %}
<div class="mb-3 d-flex align-items-center justify-content-center" style="height: 80px;">
<img src="{{ offering.cloud_provider.logo.url }}" alt="{{ offering.cloud_provider.name }} logo"
class="img-fluid" style="max-height: 60px; object-fit: contain;">
</div>
{% else %}
<div class="mb-3 d-flex align-items-center justify-content-center" style="height: 80px;">
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" class="bi bi-cloud-fill text-primary" viewBox="0 0 16 16">
<path d="M4.406 3.342A5.53 5.53 0 0 1 8 2c2.69 0 4.923 2 5.166 4.579C14.758 6.804 16 8.137 16 9.773 16 11.569 14.502 13 12.687 13H3.781C1.708 13 0 11.366 0 9.318c0-1.763 1.266-3.223 2.942-3.593.143-.863.698-1.723 1.464-2.383"/>
</svg>
</div>
{% endif %}
<h5 class="card-title mb-0 fw-semibold">{{ offering.cloud_provider.name }}</h5>
</div>
</div>
</a>
</div>
{% endif %}
{% endfor %}
</div>