diff --git a/assets/sass/_blog-subscribe-form.scss b/assets/sass/_blog-subscribe-form.scss index 3233924..8ef583c 100644 --- a/assets/sass/_blog-subscribe-form.scss +++ b/assets/sass/_blog-subscribe-form.scss @@ -45,5 +45,35 @@ .form-group { flex-grow: 1; } + + &-submit { + display: flex; + flex-direction: column; + gap: 1rem; + margin-top: 3rem; + @include media-up(sm) { + align-items: center; + flex-direction: row; + justify-content: space-between; + } + } + } + + &--form-submitting { + animation: submitting 1s linear infinite; + pointer-events: none; + } + + &--success { + font-size: $font-size-bigger; + margin-top: 2rem; + @include media-up(xl) { + margin-top: 3rem; + } + + &-ico > svg { + margin-right: 0.75rem; + margin-top: -0.25rem; + } } } diff --git a/layouts/blog/single.html b/layouts/blog/single.html index cdda912..4c0d58d 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -54,7 +54,7 @@

{{ .Title }}

{{ .Content }}
- {{/* partial "blog-subscribe-form.html" . */}} + {{ partial "blog-subscribe-form.html" . }} {{ partial "blog-navigation.html" . }} diff --git a/layouts/partials/blog-subscribe-form.html b/layouts/partials/blog-subscribe-form.html index 8676480..2ffab65 100644 --- a/layouts/partials/blog-subscribe-form.html +++ b/layouts/partials/blog-subscribe-form.html @@ -3,26 +3,98 @@
Get more stories like this in your inbox
-
-
- - -
- +
+ + + + +