From 6e13ac13b2547bdd24bca94b855ed30f50d0a584 Mon Sep 17 00:00:00 2001 From: imohkay Date: Wed, 27 Oct 2021 18:30:05 +0530 Subject: [PATCH] add contact form to accordion --- app/static/css/partials/_contact.scss | 11 +++++-- app/templates/about.html | 42 ++++++++++++++++----------- 2 files changed, 33 insertions(+), 20 deletions(-) diff --git a/app/static/css/partials/_contact.scss b/app/static/css/partials/_contact.scss index a8018f7..d325156 100755 --- a/app/static/css/partials/_contact.scss +++ b/app/static/css/partials/_contact.scss @@ -1,7 +1,7 @@ -main > .contact { +.contact { max-width: var(--container-lg-width); margin: 0 auto; - padding: var(--spacing-2); + padding: var(--spacing) 0; h1 { font-size: 22px; @@ -26,8 +26,11 @@ main > .contact { border: 0; line-height: 1.3; display: block; - max-width: 500px; width: 100%; + + @media screen and (min-width: 800px) { + width: 50%; + } } textarea { @@ -43,6 +46,8 @@ main > .contact { font-weight: 700; padding: var(--spacing) var(--spacing-2); display: block; + background-size: 400% 100%; + animation: background_animation 60s ease-in-out infinite, text_animation 60s ease-in-out infinite; } } diff --git a/app/templates/about.html b/app/templates/about.html index 517e0e9..a265763 100755 --- a/app/templates/about.html +++ b/app/templates/about.html @@ -128,6 +128,31 @@ +
  • + + +
    +
    + {% if submitted %} + Thanks for your message + {% else %} +
    + + + + + + + + {% csrf_token %} +
    + {% endif %} +
    +
    +

  • @@ -137,23 +162,6 @@

    本計畫由國立臺灣美術館策劃,文化部指導、財團法人文化臺灣基金會支持、SEA plateaus協力。

    -
    - {% if submitted %} - Thanks for your message - {% else %} -

    Contact 聯絡

    -
    - - - - - - - - {% csrf_token %} -
    - {% endif %} -
    {% endblock %} {% block end %}