From d47e621e6707d0036732d890f0cfb5a5b3794e3b Mon Sep 17 00:00:00 2001 From: brookee Date: Fri, 1 Mar 2024 14:34:27 -0500 Subject: [PATCH] update --- hugo.toml | 28 +++++- themes/agnes-hugo-theme/layouts/index.html | 25 +++--- .../layouts/partials/contact_form.html | 18 ++++ .../layouts/partials/head.html | 1 + themes/agnes-hugo-theme/static/css/style.css | 88 ++++++++++++++++++- 5 files changed, 144 insertions(+), 16 deletions(-) create mode 100644 themes/agnes-hugo-theme/layouts/partials/contact_form.html diff --git a/hugo.toml b/hugo.toml index 63124d3..de9db0f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -85,4 +85,30 @@ theme = "agnes-hugo-theme" [[params.pricing.Features]] Description = "Etiam faucibus finibus" [[params.pricing.Features]] - Description = "Etiam sit amet mi sapien" \ No newline at end of file + Description = "Etiam sit amet mi sapien" + + +[[params.buttons]] +label = "Button 1" +url = "#" +icon = "fa-brands fa-square-whatsapp" + +[[params.buttons]] +label = "Button 2" +url = "#" +icon = "fa-brands fa-skype" + +[[params.buttons]] +label = "Button 3" +url = "#" +icon = "fa-solid fa-envelope-open-text" + + +[[params.contact_forms]] +name = "contact_form" +fields = [ + { name = "Name", type = "text", required = true }, + { name = "Email", type = "email", required = true }, + { name = "Phone #", type = "tel", required = false, class = "full-width" }, + { name = "Message", type = "textarea", required = true, class = "full-width" } +] diff --git a/themes/agnes-hugo-theme/layouts/index.html b/themes/agnes-hugo-theme/layouts/index.html index 74e07ca..baa5bba 100644 --- a/themes/agnes-hugo-theme/layouts/index.html +++ b/themes/agnes-hugo-theme/layouts/index.html @@ -48,19 +48,20 @@ -
-
-
-
- {{ range site.Params.feature }} -
-
-

{{ .FeatureTitle }}

-

{{ .FeatureDescription }}

-
-
+
+
+

Contact

+
+
+ {{ range .Site.Params.buttons }} + {{ .label }} {{ end }}
+
+ {{ partial "contact_form.html" . }} +
@@ -83,7 +84,7 @@ {{ .ButtonText }}
diff --git a/themes/agnes-hugo-theme/layouts/partials/contact_form.html b/themes/agnes-hugo-theme/layouts/partials/contact_form.html new file mode 100644 index 0000000..558ecce --- /dev/null +++ b/themes/agnes-hugo-theme/layouts/partials/contact_form.html @@ -0,0 +1,18 @@ +{{ $form := index .Site.Params.contact_forms 0 }} +
+
+ {{ range $field := $form.fields }} +
+ + {{ if eq $field.type "textarea" }} + + {{ else }} + + {{ end }} +
+ {{ end }} +
+
+ +
+
diff --git a/themes/agnes-hugo-theme/layouts/partials/head.html b/themes/agnes-hugo-theme/layouts/partials/head.html index 1c12dc1..1ccd666 100644 --- a/themes/agnes-hugo-theme/layouts/partials/head.html +++ b/themes/agnes-hugo-theme/layouts/partials/head.html @@ -21,4 +21,5 @@ {{ end }} + diff --git a/themes/agnes-hugo-theme/static/css/style.css b/themes/agnes-hugo-theme/static/css/style.css index f7953f3..23287e7 100644 --- a/themes/agnes-hugo-theme/static/css/style.css +++ b/themes/agnes-hugo-theme/static/css/style.css @@ -1,7 +1,8 @@ :root { --background-color: #0D161E; --accent-1: linear-gradient(45deg, #0559B0, #BE528A); - --accent-2: #52B8BD; + --accent-2: linear-gradient(25deg, rgb(45, 85, 125), #0B2D4F); + --accent-3: linear-gradient(45deg, #BE528A, #762a51); --font-color: #d2d2d2; --font-color-dark: #1f1f1f } @@ -240,6 +241,56 @@ p { padding-right: 16px } +.contact { + padding-top: 2.5rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.contact-flex { + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 25px; + width: 100%; +} + +.contact-form { + display: flex; + flex-direction: column; + gap: 25px; + width: 100%; +} + +.form-group input, textarea { + width: 100%; + padding: 5px; + border-radius: 10px; +} + +.form-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 1rem; +} + +.full-width { + grid-column: span 2; + } + +.form-group label { + font-size: 16px; + font-weight: 700; + color:#1f2b35 +} + +.form-group { + display: flex; + flex-direction: column; +} + @media (min-width:481px) { .container { padding-left: 24px; @@ -341,8 +392,8 @@ p { font-weight: 700; line-height: 16px; text-decoration: none !important; - background-color: #fff; - color: #0081f6 !important; + background: var(--accent-2); + color: #efefef !important; border: none; border-radius: 4px; cursor: pointer; @@ -353,6 +404,11 @@ p { white-space: nowrap } +.button i { + transform: scale(1.5); + padding-right: 15px; +} + .button:active { outline: 0 } @@ -367,6 +423,10 @@ p { transition: .3s ease } +.button-pricing { + background: var(--accent-3) !important +} + .button-primary:hover { box-shadow: 2px 4px 10px rgba(255, 255, 255, .25); transition: .3s ease @@ -465,6 +525,18 @@ p { } } +.contact-inner { + height: 100%; + display: flex; + flex-direction: row; + gap: 1.5rem; + justify-content: space-between; +} + +.contact-inner a { + width: 100%; +} + .feature-icon { width: 3rem; height: 3rem; @@ -550,6 +622,16 @@ p { border-radius: 10px; } +.contact-table { + position: relative; + display: flex; + flex-direction: row; + background: #fff; + padding: 25px; + height: 100%; + border-radius: 10px; +} + @media (max-width: 768px) { .pricing-table-inner { flex-direction: column;