diff --git a/assets/custom.css.liquid b/assets/custom.css.liquid index 0f9cfbf..1c18af4 100644 --- a/assets/custom.css.liquid +++ b/assets/custom.css.liquid @@ -431,4 +431,125 @@ body { box-shadow: 0 1px var(--input-color) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset; --size: calc(var(--size-field, 0.25rem) * 10); } +@media(min-width:768px){ + +.footer-main{ +max-width:1200px; +margin:0 auto; +display:grid; +grid-template-columns:1.5fr 1fr 1fr 1fr; +grid-template-areas: +"brand col1 col2 col3 col4"; +gap:3rem; +justify-content:center; +} +.footer-brand{ +grid-area:brand; +border-right:1px solid rgba(255,255,255,0.2); +padding-right:2.5rem; +display:flex; +flex-direction:column; +gap:1.5rem; +} + +.footer-col-1{grid-area:col1;} +.footer-col-2{grid-area:col2;} +.footer-col-3{grid-area:col3;} +.footer-col-4{grid-area:col4;} + +.footer-bottom{ +grid-area:bottom; +border-top:1px solid rgba(255,255,255,0.2); +padding-top:2.5rem; +} +.footer-bottom-inner{ +display:flex; +justify-content:center; +align-items:flex-start; +gap:6rem; +} +} +.footer-bottom .container, +.footer-copyright.container{ +max-width:100%; +} +.footer-title{ +font-weight:600; +margin-bottom:.75rem; +} +.social-icons{ +display:flex; +gap:1rem; +align-items:center; +} +.shopify-payments, +.footer-payments ul{ +display:flex; +gap:.75rem; +align-items:center; +} +.footer-cta{ +background:#5b3df5; +color:white; +padding:.75rem 1.5rem; +font-weight:600; +border-radius:4px; +text-decoration:none; +width:fit-content; +} +.footer-bottom-title, +.footer-title{ +margin-bottom:.20rem; +font-weight:600; +} +.footer-navigation{ +display:contents; +} +@media(max-width:767px){ + +.footer-main{ +display:grid; +grid-template-columns:1fr; +gap:0.5rem; +} +.footer-brand{ +border-right:none; +padding-right:0; +} +.footer-links{ +border-bottom:1px solid rgba(255,255,255,0.15); +padding:1rem 0; +} +} +.payment-single ul{ +max-width:420px; +grid-template-columns:repeat(4,1fr); +} + +@media(min-width:768px){ +.payment-single ul{ +grid-template-columns:repeat(5,1fr); +} +.payment-single{ +max-width:420px; +}.payment-single ul li{ +min-width:48px; +min-height:32px; +} +/* center footer when only one link column */ + +.footer-main.footer-single{ +max-width:1100px; +margin-left:auto; +margin-right:auto; +padding-left:25rem; +grid-template-columns:1fr 1fr 1fr; +column-gap:15em; +} +@media (min-width:768px) and (max-width:1024px){ +.footer-main.footer-single{ +padding-left:4rem; +column-gap:2rem; +} +} /**/ diff --git a/config/settings.json b/config/settings.json index d824a78..9f6629f 100644 --- a/config/settings.json +++ b/config/settings.json @@ -85,7 +85,8 @@ ], "type": "select" } - ] + ], + "default": null }, { "key": "colors", @@ -298,7 +299,8 @@ ], "type": "select" } - ] + ], + "default": null }, { "key": "social_media", @@ -336,7 +338,8 @@ "key": "social_linkedin_url", "type": "text" } - ] + ], + "default": null }, { "key": "header", @@ -409,7 +412,8 @@ "key": "headerTopURL", "type": "text" } - ] + ], + "default": null }, { "key": "homepage", @@ -841,7 +845,8 @@ "key": "homepage_blog", "type": "blog" } - ] + ], + "default": null }, { "key": "pages", @@ -894,7 +899,8 @@ ], "type": "select" } - ] + ], + "default": null }, { "key": "blogs", @@ -911,7 +917,8 @@ "key": "articleRelated", "type": "checkbox" } - ] + ], + "default": null }, { "key": "products", @@ -959,7 +966,8 @@ "key": "ppRelatedProducts", "type": "checkbox" } - ] + ], + "default": null }, { "key": "collections", @@ -1025,7 +1033,8 @@ ], "type": "select" } - ] + ], + "default": null }, { "key": "shop", @@ -1066,7 +1075,8 @@ "key": "coPaymentCard", "type": "checkbox" } - ] + ], + "default": null }, { "key": "restricted", @@ -1341,7 +1351,8 @@ "key": "closedSocialTrue", "type": "checkbox" } - ] + ], + "default": null }, { "key": "footer", @@ -1426,8 +1437,48 @@ "caption": "Button text", "key": "footerButtonText", "type": "text" + }, + { + "caption": "Payment options", + "key": "footer_payment_header", + "type": "header" + }, + { + "caption": "Show payment options", + "default": false, + "key": "footer_payment_enable", + "type": "checkbox" + }, + { + "caption": "Payment text", + "default": "We accept", + "key": "footer_payment_text", + "type": "text" + }, + { + "caption": "Payment methods", + "key": "footer_payment_methods", + "settings": [ + { + "caption": "Payment name", + "key": "name", + "type": "text" + }, + { + "caption": "Logo", + "key": "logo", + "type": "image" + }, + { + "caption": "Logo alt text", + "key": "alt", + "type": "text" + } + ], + "type": "struct" } - ] + ], + "default": null } ] -} +} \ No newline at end of file diff --git a/snippets/siteFooter.liquid b/snippets/siteFooter.liquid index ef78dcd..1cb6c84 100644 --- a/snippets/siteFooter.liquid +++ b/snippets/siteFooter.liquid @@ -1,37 +1,153 @@