contact page animation

main
alexanderroese 2024-06-20 19:40:05 +02:00
parent 2007e37e82
commit e88b028b58
2 changed files with 25 additions and 12 deletions

View File

@ -18,6 +18,12 @@
.contact .field {
margin-bottom: 2rem;
}
.contact__fields {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-column-gap: 2rem;
}
}
/*
.contact__button {
@ -35,10 +41,15 @@
}
} */
#shx-contact-form-contact-us-send {
width: 150px;
height: 150px;
margin: 0 auto;
}
@media screen and (min-width: 750px) {
.contact__fields {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-column-gap: 2rem;
#shx-contact-form-contact-us-send {
width: 250px;
height: 250px;
}
}

View File

@ -33,19 +33,21 @@
-%}
{%- form 'contact', id: 'ContactForm', class: contact_form_class -%}
{%- if form.posted_successfully? -%}
<dotlottie-player
id="shx-contact-form-contact-us-send"
src="{{ 'lottie_page_contact_us_send.lottie' | asset_url }}"
background="transparent"
speed="1"
autoplay
direction="1"
mode="bounce"></dotlottie-player>
<h2 class="form-status form-status-list form__message" tabindex="-1" autofocus>
{% render 'icon-success' %}
{{ 'templates.contact.form.post_success' | t }}
</h2>
<dotlottie-player
src="{{ 'lottie_page_contact_us_send.lottie' | asset_url }}"
background="transparent"
speed="1"
autoplay
style="width: 300px; height: 300px; margin: 0 auto;"
direction="1"
mode="bounce"></dotlottie-player>
{%- elsif form.errors -%}
<div class="form__message">
<h2 class="form-status caption-large text-body" role="alert" tabindex="-1" autofocus>