update
This commit is contained in:
BIN
public/template_2/index/opening-pc.png
Normal file
BIN
public/template_2/index/opening-pc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 671 KiB |
@ -1,8 +1,10 @@
|
||||
---
|
||||
import { getConfig } from "../../../utils/config";
|
||||
import { getConfig, getExtra } from "../../../utils/config";
|
||||
import { Image } from 'astro:assets';
|
||||
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";
|
||||
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, TP2_COLUMN_DOWNLOAD, TP2_COLUMN_DOWNLOAD_URL } from "../../../utils/const";
|
||||
import { extractDirectives } from "astro/runtime/server/hydration.js";
|
||||
const config = getConfig(Astro)
|
||||
const extra = getExtra(config.app_extra_tag)
|
||||
---
|
||||
<div class="v4 header slide-down-corporation nav-v2 scroll-with-screen" id="header-v4" data-component="header" role="navigation">
|
||||
<div id="topTipsBox" class="top-tips-box"></div>
|
||||
@ -33,6 +35,10 @@ const config = getConfig(Astro)
|
||||
<li class="main-nav__item" role="menuitem">
|
||||
<a title={TP2_COLUMN_CONTACT_US} class="main-nav__link unhover title-hide-v5" href={TP2_COLUMN_CONTACT_US_URL}>{TP2_COLUMN_CONTACT_US}</a>
|
||||
</li>
|
||||
|
||||
<li class="main-nav__item" role="menuitem">
|
||||
<a title={TP2_COLUMN_DOWNLOAD} class="main-nav__link unhover title-hide-v5" href={extra.app_download}>{TP2_COLUMN_DOWNLOAD}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <div class="rg-nav nav-zone">
|
||||
@ -90,6 +96,12 @@ const config = getConfig(Astro)
|
||||
e.stopPropagation();
|
||||
if (!mainNav || !btn) return;
|
||||
const isOpen = mainNav.classList.toggle('main-nav--opened');
|
||||
if (isOpen) {
|
||||
document.body.style.overflow = 'hidden';
|
||||
} else {
|
||||
document.body.style.overflow = 'auto';
|
||||
}
|
||||
|
||||
btn.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
|
||||
btn.classList.toggle('nav-toggle--active', isOpen);
|
||||
// 控制 li 显示
|
||||
|
@ -11,6 +11,7 @@ import {
|
||||
import BaijiahaoLogo from '../../../../public/template_2/baijiahao.svg'
|
||||
import Toutiaohao from '../../../../public/template_2/toutiaohao.svg'
|
||||
import Douyin from '../../../../public/template_2/douyin.svg'
|
||||
import Youxiang from '../../../../public/template_2/youxiang.svg'
|
||||
const config = getConfig(Astro);
|
||||
const extra = getExtra(config.app_extra_tag)
|
||||
const breadcrumb = [
|
||||
@ -51,14 +52,14 @@ const desc = extra.contact_us.telephone.map(item => item.number).join('; ');
|
||||
}
|
||||
</ul>
|
||||
|
||||
<h2 class="list-title">联系邮箱</h2>
|
||||
{extra.contact_us.email.length > 0 ? <h2 class="list-title">联系邮箱</h2> : ''}
|
||||
<ul>
|
||||
{
|
||||
extra.contact_us.email.map(e => {
|
||||
return <li class="list-item">
|
||||
<a href={`tel:${e.address}`}>
|
||||
<div class="item-content">
|
||||
<Image height={50} width={50} src="/template_2/contact-us/hotline.png" alt="联系邮箱"/>
|
||||
<Image height={50} width={50} src="/template_2/contact-us/youxiang.svg" alt="联系邮箱"/>
|
||||
<div class="txt">
|
||||
<h3 style="margin-left: 1rem;font-weight: bold;">{e.address}</h3>
|
||||
<h4 style="margin-left: 1rem;"></h4>
|
||||
|
@ -50,7 +50,6 @@ const breadcrumb = [{
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -92,39 +91,6 @@ const breadcrumb = [{
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-read-sc5" id="sc5Scene">
|
||||
<div class="sc5-animation-box">
|
||||
<div class="sc5-book-container img-box" id="sc5ZdpScene">
|
||||
<Image class="h-full" src={extra.index.sc5.img_box} alt="背景" width={100} height={100} />
|
||||
</div>
|
||||
<div class="text-box">
|
||||
<div class="read-subtitle">
|
||||
{extra.index.sc5.read_subtitle}
|
||||
</div>
|
||||
<div class="read-title">
|
||||
{extra.index.sc5.read_title}
|
||||
</div>
|
||||
<p class="read-text">
|
||||
<Fragment set:html={extra.index.sc5.read_text}></Fragment>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-read-sc6" id="sc6Scene">
|
||||
<div class="sc6-animation-container">
|
||||
<div class="text-box">
|
||||
<div class="read-title">
|
||||
{extra.index.sc6.read_title}
|
||||
</div>
|
||||
<p class="read-text">
|
||||
<Fragment set:html={extra.index.sc6.read_text} />
|
||||
</p>
|
||||
</div>
|
||||
<div class="sc6-animation-box img-box" id="sc6ZdpScene">
|
||||
<Image src={extra.index.sc6.img_box} class="h-full" alt="" width={100} height={100}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-read-sc7">
|
||||
<div class="text-box">
|
||||
<div class="read-title">
|
||||
|
@ -77,7 +77,7 @@ const breadcrumb = [
|
||||
|
||||
<section>
|
||||
<h2>我们的承诺</h2>
|
||||
<p>葫芦时刻旨在为未成年人及老年人创造一个安全、健康、积极的网络阅读环境,提升他们的生活质量和使用体验,积极履行企业的社会责任,构建包容、关爱的网络生态环境。</p>
|
||||
<p>旨在为未成年人及老年人创造一个安全、健康、积极的网络阅读环境,提升他们的生活质量和使用体验,积极履行企业的社会责任,构建包容、关爱的网络生态环境。</p>
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
TP2_COLUMN_INDEX_URL,
|
||||
} from "../../../../utils/const";
|
||||
const config = getConfig(Astro);
|
||||
const extra = getExtra('');
|
||||
const extra = getExtra(config.app_extra_tag);
|
||||
const breadcrumb = [
|
||||
{ title: TP2_COLUMN_INDEX, url: TP2_COLUMN_INDEX_URL },
|
||||
{ title: TP2_COLUMN_ABOUT_US, url: TP2_COLUMN_ABOUT_US_URL },
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user