mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-25 22:18:30 +02:00
Optimize the image on the subscribe page (#1247)
* optimize image on the subscribe page * mobile files, fix
This commit is contained in:
@@ -4,8 +4,9 @@ section_title: Subscribe
|
||||
subtitle: Subscribe
|
||||
description: Subscribe
|
||||
image:
|
||||
src: /img/subscribe.svg
|
||||
srcMobile: /img/mobile/subscribe.svg
|
||||
src: /img/subscribe.webp
|
||||
srcMobile: /img/mobile/subscribe.webp
|
||||
# always add png image to the same folder as webp image for compatibility with older browsers
|
||||
alt: Astronaut
|
||||
form:
|
||||
title: Sign up for Qdrant Updates
|
||||
|
||||
@@ -12,12 +12,28 @@
|
||||
<!-- </form>-->
|
||||
|
||||
{{ with (.Site.GetPage "/headless/newsletter") }}
|
||||
{{ partial "hubspot-form.html" (dict "hubspotFormOptions" .Params.hubspotFormOptions "id" "subscribe-page" "context" . "classes" "subscribe-block__hs-form") }}
|
||||
{{ partial "hubspot-form.html" (dict "hubspotFormOptions" .Params.hubspotFormOptions "id" "subscribe-page" "context" . "classes" "subscribe-block__hs-form") }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<img class="subscribe-body__image" src="{{ .Params.image.src }}" alt="{{ .Params.image.alt }}" />
|
||||
<img class="subscribe-body__image-mobile" src="{{ .Params.image.srcMobile }}" alt="{{ .Params.image.alt }}" />
|
||||
<picture>
|
||||
<source srcset="{{ .Params.image.src }}" type="image/png" />
|
||||
<img
|
||||
class="subscribe-body__image"
|
||||
src="{{ .Params.image.src | replaceRE "\\.[^.]+$" ".png" }} "
|
||||
alt="{{ .Params.image.alt }}"
|
||||
loading="lazy"
|
||||
/>
|
||||
</picture>
|
||||
<picture>
|
||||
<source srcset="{{ .Params.image.srcMobile }}" type="image/png" />
|
||||
<img
|
||||
class="subscribe-body__image-mobile"
|
||||
src="{{ .Params.image.srcMobile | replaceRE "\\.[^.]+$" ".png" }}"
|
||||
alt="{{ .Params.image.alt }}"
|
||||
loading="lazy"
|
||||
/>
|
||||
</picture>
|
||||
</div>
|
||||
<div class="subscribe-header">
|
||||
<p class="subscribe-header__rights">{{ .Params.footer.rights | safeHTML }}</p>
|
||||
@@ -25,6 +41,8 @@
|
||||
<a class="subscribe-header__link" href="{{ .Params.footer.policyLink.url }}">
|
||||
{{ .Params.footer.policyLink.text }}
|
||||
</a>
|
||||
<a class="subscribe-header__link" href="{{ .Params.footer.impressumLink.url }}">{{ .Params.footer.impressumLink.text }}</a>
|
||||
<a class="subscribe-header__link" href="{{ .Params.footer.impressumLink.url }}"
|
||||
>{{ .Params.footer.impressumLink.text }}</a
|
||||
>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 131 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 238 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 158 KiB |
Reference in New Issue
Block a user