feat(site): 完善官网主体信息与部署配置
This commit is contained in:
1 parent
dfa9f311e0
commit
0dc1b3a68e
14 files changed
+147
-20
No files matched your search
@@ -0,0 +1,70 @@
|
||||
// Author: fruit.com.cn
|
||||
import { useEffect } from 'react';
|
||||
import { useLocale } from '../../app/providers/AppProviders';
|
||||
import { COMPANY } from '../../shared/data/company';
|
||||
|
||||
/** 联系我们:邓白氏审核会找联系页,必须出现法定名称、注册地址、电话、邮箱。 */
|
||||
const CONTACT_COPY = {
|
||||
id: {
|
||||
title: 'Hubungi Kami',
|
||||
summary: 'Informasi kontak resmi perusahaan. Kami biasanya membalas dalam 1–2 hari kerja.',
|
||||
companyTitle: 'Entitas Perusahaan',
|
||||
contactTitle: 'Kontak',
|
||||
emailLabel: 'Email',
|
||||
phoneLabel: 'Telepon',
|
||||
nibLabel: 'NIB',
|
||||
addressLabel: 'Alamat Terdaftar',
|
||||
},
|
||||
en: {
|
||||
title: 'Contact Us',
|
||||
summary: 'Official company contact details. We usually reply within 1–2 business days.',
|
||||
companyTitle: 'Company Entity',
|
||||
contactTitle: 'Contact',
|
||||
emailLabel: 'Email',
|
||||
phoneLabel: 'Phone',
|
||||
nibLabel: 'NIB',
|
||||
addressLabel: 'Registered Address',
|
||||
},
|
||||
zh: {
|
||||
title: '联系我们',
|
||||
summary: '公司官方联系方式,通常在 1–2 个工作日内回复。',
|
||||
companyTitle: '公司主体',
|
||||
contactTitle: '联系方式',
|
||||
emailLabel: '邮箱',
|
||||
phoneLabel: '电话',
|
||||
nibLabel: 'NIB 注册号',
|
||||
addressLabel: '注册地址',
|
||||
},
|
||||
};
|
||||
|
||||
export function ContactPage() {
|
||||
const { locale } = useLocale();
|
||||
const copy = CONTACT_COPY[locale.code] || CONTACT_COPY.en;
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${copy.title} · ${COMPANY.legalName}`;
|
||||
}, [copy.title]);
|
||||
|
||||
return (
|
||||
<article className="legal-page">
|
||||
<header className="legal-header">
|
||||
<span className="legal-kicker">{COMPANY.legalName}</span>
|
||||
<h1>{copy.title}</h1>
|
||||
<p className="legal-summary">{copy.summary}</p>
|
||||
</header>
|
||||
<div className="legal-body">
|
||||
<section className="legal-section">
|
||||
<h2>{copy.companyTitle}</h2>
|
||||
<p><strong>{COMPANY.legalName}</strong></p>
|
||||
<p>{copy.addressLabel}: {COMPANY.address}</p>
|
||||
<p>{copy.nibLabel}: {COMPANY.nib}</p>
|
||||
</section>
|
||||
<section className="legal-section">
|
||||
<h2>{copy.contactTitle}</h2>
|
||||
<p>{copy.emailLabel}: <a href={`mailto:${COMPANY.email}`}>{COMPANY.email}</a></p>
|
||||
<p>{copy.phoneLabel}: <a href={`tel:${COMPANY.phoneHref}`}>{COMPANY.phone}</a></p>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
@@ -35,6 +35,10 @@
|
||||
.legal-contact { margin-top: 22px; padding: 30px 44px; border-radius: 22px; background: #171a22; }
|
||||
.legal-contact p { margin: 8px 0; overflow-wrap: anywhere; }
|
||||
.legal-contact a { color: #a9ccff; }
|
||||
.site-footer-company { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; color: #8b93a1; line-height: 1.7; }
|
||||
.site-footer-company strong { color: #d7dbe2; font-size: 13px; }
|
||||
.site-footer-company a { color: #8b93a1; }
|
||||
.site-footer-company a:hover { color: #fff; text-decoration: underline; }
|
||||
.site-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
|
||||
.site-footer-links a { color: #a0a0a0; }
|
||||
.site-footer-links a:hover { color: #fff; text-decoration: underline; }
|
||||
|
||||
Reference in new issue
Block a user