feat: 备案号

main
luochuan 9 months ago
parent 872236f385
commit ffe00b8f74

@ -3,7 +3,7 @@
"lang": "en", "lang": "en",
"language": "简体中文", "language": "简体中文",
"languageInChineseSimple": "简体中文", "languageInChineseSimple": "简体中文",
"title": "SoraWebui", "title": "智能学习",
"description": "SoraWebui 是一个开源平台,使用户能够使用 OpenAI 的 Sora 模型轻松地从文本创建视频。", "description": "SoraWebui 是一个开源平台,使用户能够使用 OpenAI 的 Sora 模型轻松地从文本创建视频。",
"loadingText": "加载中...", "loadingText": "加载中...",
"generateText": "生成中...", "generateText": "生成中...",

@ -3,18 +3,18 @@ import Link from "next/link";
const navigation = { const navigation = {
product: [ product: [
{name: 'SoraWebui', href: 'https://sorawebui.com'} { name: 'SoraWebui', href: 'https://sorawebui.com' }
], ],
legal: [ legal: [
{name: 'Privacy Policy', href: '/privacy-policy'}, { name: 'Privacy Policy', href: '/privacy-policy' },
{name: 'Terms & Conditions', href: '/terms-of-service'}, { name: 'Terms & Conditions', href: '/terms-of-service' },
] ]
} }
export default function Footer({ export default function Footer({
locale = '', locale = '',
description = '' description = ''
}) { }) {
return ( return (
<footer className="bg-[#020d24]" aria-labelledby="footer-heading"> <footer className="bg-[#020d24]" aria-labelledby="footer-heading">
<div id="footer-heading" className="sr-only"> <div id="footer-heading" className="sr-only">
@ -36,12 +36,13 @@ export default function Footer({
{description} {description}
</p> </p>
</div> </div>
<div className="mt-2 grid grid-cols-2 gap-8 xl:col-span-2 xl:mt-0"> <div className="mt-2 grid grid-cols-2 gap-8 xl:col-span-2 xl:mt-0">
<div className="md:grid md:grid-cols-2 md:gap-8"> <div className="md:grid md:grid-cols-2 md:gap-8">
<div> <div>
<div className="text-sm font-semibold leading-6 text-white"></div> <div className="text-sm font-semibold leading-6 text-white"></div>
<ul role="list" className="mt-6 space-y-4"> <ul role="list" className="mt-6 space-y-4">
</ul> </ul>
</div> </div>
<div className="mt-10 md:mt-0"> <div className="mt-10 md:mt-0">
@ -51,41 +52,43 @@ export default function Footer({
</ul> </ul>
</div> </div>
</div> </div>
<div className="md:grid md:grid-cols-2 md:gap-8"> <div className="md:grid md:grid-cols-2 md:gap-8">
<div> <div>
<div className="text-sm font-semibold leading-6 text-white">Product</div> <div className="text-sm font-semibold leading-6 text-white">Product</div>
<ul role="list" className="mt-6 space-y-4"> <ul role="list" className="mt-6 space-y-4">
{navigation.product.map((item) => { {navigation.product.map((item) => {
return ( return (
<li key={item.name}> <li key={item.name}>
<Link href={`${item.href}`} <Link href={`${item.href}`}
target={"_blank"} target={"_blank"}
className="text-sm leading-6 text-gray-300 hover:text-[#2d6ae0]"> className="text-sm leading-6 text-gray-300 hover:text-[#2d6ae0]">
{item.name} {item.name}
</Link> </Link>
</li> </li>
) )
} }
)} )}
</ul> </ul>
</div> </div>
<div className="mt-10 md:mt-0"> <div className="mt-10 md:mt-0">
<div className="text-sm font-semibold leading-6 text-white">Legal</div> <div className="text-sm font-semibold leading-6 text-white">Legal</div>
<ul role="list" className="mt-6 space-y-4"> <ul role="list" className="mt-6 space-y-4">
{navigation.legal.map((item) => { {navigation.legal.map((item) => {
let hrefTo = `/${locale}${item.href}`; let hrefTo = `/${locale}${item.href}`;
if (locale == 'en') { if (locale == 'en') {
hrefTo = `${item.href}`; hrefTo = `${item.href}`;
}
return (
<li key={item.name}>
<Link href={`${hrefTo}`}
className="text-sm leading-6 text-gray-300 hover:text-[#2d6ae0]">
{item.name}
</Link>
</li>
)
} }
return (
<li key={item.name}>
<Link href={`${hrefTo}`}
className="text-sm leading-6 text-gray-300 hover:text-[#2d6ae0]">
{item.name}
</Link>
</li>
)
}
)} )}
</ul> </ul>
</div> </div>
@ -93,6 +96,21 @@ export default function Footer({
</div> </div>
</div> </div>
</div> </div>
<div className="mx-auto max-w-7xl px-6 py-4">
<div className="mt-2 grid grid-cols-2 gap-8 xl:col-span-2 xl:mt-0">
</div>
<div className="mt-10 md:mt-0">
<div>
{/* align="center" */}
<div className="text-sm font-semibold leading-6 text-white " style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}} >ICP2024057100</div>
</div>
</div>
</div>
</footer> </footer>
) )
} }

Loading…
Cancel
Save