+
+ +
+
+
+ + 全部产品 + > +From 52468a7b702a91d2f45620775f9fb7d7f32bb1b7 Mon Sep 17 00:00:00 2001 From: Qubot <1445788683@qq.com> Date: Sat, 29 Mar 2025 15:54:19 +0000 Subject: [PATCH] add tittle and desc before product list --- settings.yaml | 14 ++++- templates/assets/css/style.css | 46 ++++++++++++++++ templates/index.html | 96 +++++++++++++++++++--------------- 3 files changed, 112 insertions(+), 44 deletions(-) diff --git a/settings.yaml b/settings.yaml index 9964350..422ebbb 100644 --- a/settings.yaml +++ b/settings.yaml @@ -56,17 +56,27 @@ spec: name: show_card id: show_home_card key: show_home_card - label: 显示卡片块 + label: 显示产品列表 value: true options: - label: 是 value: true - label: 否 value: false + - $formkit: text + if: "$get(show_home_card).value" + name: product_tittle + label: 标题 + value: 产品系列 + - $formkit: text + if: "$get(show_home_card).value" + name: product_desc + label: 描述 + value: 专注智能设备核心平台研发与制造。 - $formkit: repeater if: "$get(show_home_card).value" name: service - label: 企业文化 + label: 产品列表 help: 必须是五个的排版 目前不支持其他的 value: - product_img: /themes/theme-quark/assets/img/Sige1.png diff --git a/templates/assets/css/style.css b/templates/assets/css/style.css index 2596a86..2a1c192 100644 --- a/templates/assets/css/style.css +++ b/templates/assets/css/style.css @@ -673,6 +673,52 @@ section { /*-------------------------------------------------------------- # Our Services --------------------------------------------------------------*/ + +.pull-title { + display: flex; + justify-content: space-between; + align-items: flex-end; +} + +.pull-title h2 { + font-size: 28px; + line-height: 1.5; + color: #1d1d1d; + margin: 0 0 12px; +} + +.pull-title p { + font-size: 24px; + line-height: 1.7; + color: #3e3a39; + margin: 0; +} + +.pull-title>a { + display: flex; + justify-content: center; + align-items: center; + width: 140px; + height: 30px; + background-color: #085ca9; + border: 1px solid #085ca9; + border-radius: 6px; + font-size: 18px; + color: #fff; + margin-bottom: 10px; + transition: all .6s; +} + +.pull-title>a:hover { + background-color: #fff; + color: #085ca9; + transition: all .6s; +} + +.pull-title>a em { + margin-left: 10px; +} + .services { padding-bottom: 20px; } diff --git a/templates/index.html b/templates/index.html index ddebbcf..2071129 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,74 +6,86 @@