diff --git a/package.json b/package.json index 84b778a..9308969 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,13 @@ "@astrojs/node": "^9.2.2", "@tailwindcss/vite": "^4.1.8", "astro": "^5.10.1", + "cssnano": "^7.0.7", + "postcss": "^8.5.6", "swiper": "^11.2.10", "tailwindcss": "^4.1.8" + }, + "devDependencies": { + "@fullhuman/postcss-purgecss": "^7.0.2", + "autoprefixer": "^10.4.21" } } diff --git a/postcss.config.cjs b/postcss.config.cjs new file mode 100644 index 0000000..81ae37c --- /dev/null +++ b/postcss.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + plugins: [ + // require('autoprefixer'), + // require('cssnano'), + ], +}; \ No newline at end of file diff --git a/public/template_2/douyin.svg b/public/template_2/douyin.svg new file mode 100644 index 0000000..f773168 --- /dev/null +++ b/public/template_2/douyin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/template_2/Footer.astro b/src/components/template_2/Footer.astro index 9f0d25f..6c30085 100644 --- a/src/components/template_2/Footer.astro +++ b/src/components/template_2/Footer.astro @@ -35,92 +35,6 @@ const { path = [] } = Astro.props
@@ -259,12 +90,6 @@ const { path = [] } = Astro.props {TP2_COLUMN_NEWS} - - @@ -281,66 +106,11 @@ const { path = [] } = Astro.props - - - : '' } + { + extra.douyin_offical.address ? +
  • + + + +
  • : '' + } @@ -432,9 +187,15 @@ const { path = [] } = Astro.props 版权所有 © {config.app_company} 。保留一切权利。{config.app_biling} - diff --git a/src/components/template_2/Header.astro b/src/components/template_2/Header.astro index d3f754a..ea8a7c3 100644 --- a/src/components/template_2/Header.astro +++ b/src/components/template_2/Header.astro @@ -1,7 +1,7 @@ --- import { getConfig } from "../../../utils/config"; import { Image } from 'astro:assets'; -import { TP2_COLUMN_CONTACT_US, TP2_COLUMN_CONTACT_US_URL, TP2_COLUMN_NEWS, TP2_COLUMN_NEWS_URL } from "../../../utils/const"; +import { TP2_COLUMN_ABOUT_US, TP2_COLUMN_ABOUT_US_URL, TP2_COLUMN_CONTACT_US, TP2_COLUMN_CONTACT_US_URL, TP2_COLUMN_NEWS, TP2_COLUMN_NEWS_URL } from "../../../utils/const"; const config = getConfig(Astro) --- -
    -
    -
    -

    {extra.about_us.title}{config.app_name}

    +
    +
    + +
    +
    +
    +

    {extra.about_us.title}{config.app_name}

    +
    -
    -
    -
    - +
    +
    + +
    -
    -
    -
    -
    -
    - -

    {config.app_company}

    +
    +
    +
    +
    + +

    {config.app_company}

    +
    -
    +
    \ No newline at end of file diff --git a/src/pages/template/2/contact-us.astro b/src/pages/template/2/contact-us.astro index 0882eb3..b860dfc 100644 --- a/src/pages/template/2/contact-us.astro +++ b/src/pages/template/2/contact-us.astro @@ -2,55 +2,44 @@ import Layout from "../../../layouts/Layout_2.astro"; import { Image } from "astro:assets"; import { getConfig, getExtra } from "../../../../utils/config"; -import { TP2_COLUMN_CONTACT_US, TP2_COLUMN_CONTACT_US_URL } from "../../../../utils/const"; +import { + TP2_COLUMN_CONTACT_US, + TP2_COLUMN_CONTACT_US_URL, + TP2_COLUMN_INDEX, + TP2_COLUMN_INDEX_URL, +} from "../../../../utils/const"; import BaijiahaoLogo from '../../../../public/template_2/baijiahao.svg' import Toutiaohao from '../../../../public/template_2/toutiaohao.svg' // import Youxiang from "../../../../public/template_2/contact-us/youxiang.svg"; const extra = getExtra('') const config = getConfig(Astro); const breadcrumb = [ - { title: '主页', url: '/' }, + { title: TP2_COLUMN_INDEX, url: TP2_COLUMN_INDEX_URL }, { title: TP2_COLUMN_CONTACT_US, url: TP2_COLUMN_CONTACT_US_URL } ]; --- - - -
    -
    -

    {extra.contact_us.title}

    - -
    -

    在线客服

    - - -

    联系邮箱

    - -

    官方媒体平台

    -
    - - - : '' - } - { - extra.baijiahao_offical.address ? -
  • - -
  • : '' + } + { + extra.baijiahao_offical.address ? +
  • + +
    + +
    +

    {extra.baijiahao_offical.name}

    +
    -
  • - - - : '' - } - { - extra.toutiaohao_offical.address ? -
  • - -
  • : '' + } + { + extra.toutiaohao_offical.address ? +
  • + +
    + +
    +

    {extra.toutiaohao_offical.name}

    +
    -
  • - - - : '' - } - - -
    - + + + : '' + } + + +
    +