优化主页,提供通用页面模板组件

This commit is contained in:
2025-12-15 14:09:17 +08:00
parent fd2afe5e01
commit c16bd76821
10 changed files with 509 additions and 475 deletions

View File

@@ -17,26 +17,26 @@ export default function HelpMenu() {
icon={h01} icon={h01}
title="提取 IP" title="提取 IP"
items={[ items={[
{lead: '短效 IP 提取', href: '/collect'}, {lead: '短效 IP 提取', href: '/collect?type=short'},
{lead: '长效 IP 提取', href: '#'}, {lead: '长效 IP 提取', href: '/collect?type=long'},
]} ]}
/> />
<Column <Column
icon={h02} icon={h02}
title="使用教程" title="平台教程"
items={[ items={[
{lead: '官方教程', href: '/help/tutorials/official-tutorial/browser-proxy'}, {lead: 'iOS 设置', href: '/docs/ios-proxy'},
{lead: '客户端教程', href: '/help/tutorials/client-tutorial/ios-proxy'}, {lead: 'Android 设置', href: '/docs/android-proxy'},
{lead: '操作指南', href: '/help/tutorials/operation-guide/windows7-proxy'}, {lead: 'Windows 设置', href: '/docs/windows10-proxy'},
]} ]}
/> />
<Column <Column
icon={h03} icon={h03}
title="产品功能" title="高级功能"
items={[ items={[
{lead: '常见问题', href: '/help/features/faq/faq-general'}, {lead: '套餐管理', href: '/docs/package-operations'},
{lead: '产品介绍', href: '/help/features/product-intro/product-overview'}, {lead: 'Socks5 教程', href: '/docs/socks5-usage'},
{lead: '新闻资讯', href: '/help/features/news/news-latest'}, {lead: '固定 IP 套餐', href: '/docs/fixed-package'},
]} ]}
/> />
<Image src={banner} alt="banner" className="hidden lg:block"/> <Image src={banner} alt="banner" className="hidden lg:block"/>

View File

@@ -1,18 +1,26 @@
import BreadCrumb from '@/components/bread-crumb' import BreadCrumb from '@/components/bread-crumb'
import Wrap from '@/components/wrap' import Wrap from '@/components/wrap'
import Extract from '@/components/composites/extract' import Extract from '@/components/composites/extract'
import HomePage from '@/components/home/page'
export type CollectPageProps = {} export type CollectPageProps = {}
export default function CollectPage(props: CollectPageProps) { export default function CollectPage(props: CollectPageProps) {
return ( return (
<main className="mt-20 flex flex-col gap-4"> // <main className="mt-20 flex flex-col gap-4">
<Wrap className="flex flex-col py-8 gap-4"> // <Wrap className="flex flex-col py-8 gap-4">
<BreadCrumb items={[ // <BreadCrumb items={[
{label: '短效IP 提取', href: '/collect'}, // {label: '短效IP 提取', href: '/collect'},
]}/> // ]}/>
// <Extract/>
// </Wrap>
// </main>
<HomePage path={[
{label: '短效IP 提取', href: '/collect'},
]}>
<Wrap>
<Extract/> <Extract/>
</Wrap> </Wrap>
</main> </HomePage>
) )
} }

View File

@@ -14,6 +14,7 @@ import banner from './_assets/Mask-group.webp'
import group from './_assets/Group.webp' import group from './_assets/Group.webp'
import {merge} from '@/lib/utils' import {merge} from '@/lib/utils'
import FreeTrial from '@/components/free-trial' import FreeTrial from '@/components/free-trial'
import HomePage from '@/components/home/page'
const formSchema = z.object({ const formSchema = z.object({
companyName: z.string().min(2, '企业名称至少2个字符'), companyName: z.string().min(2, '企业名称至少2个字符'),
@@ -38,217 +39,221 @@ export default function CollectPage() {
}) })
return ( return (
<main className="mt-20 flex flex-col gap-4"> // <main className="mt-20 flex flex-col gap-4">
<Wrap className="flex flex-col py-8 gap-8"> // <Wrap className="flex flex-col py-8 gap-8">
<BreadCrumb items={[ // <BreadCrumb items={[
{label: '产品订购/定制套餐', href: '/customized'}, // {label: '产品订购/定制套餐', href: '/customized'},
]}/> // ]}/>
<div className="flex flex-col gap-8"> // </Wrap>
<div className="bg-white rounded-lg shadow-md overflow-hidden p-6"> // </main>
<div className="text-center mb-4"> <HomePage path={[
<h1 className="text-2xl font-bold">IP服务商</h1> {label: '业务定制', href: '/customized'},
<p className="text-gray-600 font-medium mt-2"> ]}>
IP代理使用体验 <Wrap className='className="flex flex-col gap-8"'>
<div className="bg-white rounded-lg shadow-md overflow-hidden p-6">
<div className="text-center mb-4">
<h1 className="text-2xl font-bold">IP服务商</h1>
<p className="text-gray-600 font-medium mt-2">
IP代理使用体验
</p>
</div>
<div className="flex flex-col md:flex-row md:gap-4">
<div className="w-full md:w-1/3 mb-6 md:mb-0">
<div className="relative h-full w-full min-h-[200px] md:min-h-[300px] rounded-xl overflow-hidden">
<Image
src={banner}
alt="宣传图"
fill
className="object-cover"
priority
sizes="(max-width: 768px) 100vw, 33vw"
/>
</div>
</div>
<div className="w-full md:w-2/3 flex flex-col gap-4">
<p className="text-sm md:text-base text-gray-600 leading-relaxed">
IP领域访IP资源IP稳定使7×24
</p> </p>
</div>
<div className="flex flex-col md:flex-row md:gap-4"> <div className="mt-2 md:mt-4">
<div className="w-full md:w-1/3 mb-6 md:mb-0"> <Button className="w-full md:w-auto bg-blue-600 hover:bg-blue-700 text-white px-4 md:px-6 py-2 md:py-3 rounded-md">
<div className="relative h-full w-full min-h-[200px] md:min-h-[300px] rounded-xl overflow-hidden">
<Image </Button>
src={banner}
alt="宣传图"
fill
className="object-cover"
priority
sizes="(max-width: 768px) 100vw, 33vw"
/>
</div>
</div> </div>
<div className="w-full md:w-2/3 flex flex-col gap-4"> <div className="grid grid-cols-2 md:grid-cols-3 gap-3 md:gap-4 mt-2 md:mt-6">
<p className="text-sm md:text-base text-gray-600 leading-relaxed"> <div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
IP领域访IP资源IP稳定使7×24 <Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
</p> <span>IP时效3-30()</span>
<div className="mt-2 md:mt-4">
<Button className="w-full md:w-auto bg-blue-600 hover:bg-blue-700 text-white px-4 md:px-6 py-2 md:py-3 rounded-md">
</Button>
</div> </div>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<div className="grid grid-cols-2 md:grid-cols-3 gap-3 md:gap-4 mt-2 md:mt-6"> <Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm"> <span>IP时效3-30()</span>
<Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<span>IP时效3-30()</span>
</div>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<span>IP时效3-30()</span>
</div>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<span>IP时效3-30()</span>
</div>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<span></span>
</div>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<span></span>
</div>
<div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<span></span>
</div>
</div> </div>
</div> <div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
</div> <Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
</div> <span>IP时效3-30()</span>
<div className="text-center">
<h2 className="text-2xl font-semibold mb-6"></h2>
</div>
<div className="bg-white rounded-lg shadow-md p-6">
<Form form={form}>
<div className="mx-auto max-w-xl space-y-6">
{/* 企业名称 */}
<FormField name="companyName">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入企业名称"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
{/* 联系人姓名 */}
<FormField name="contactName">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入联系人姓名"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
{/* 联系人手机号码 */}
<FormField name="phone">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入手机号码"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
{/* 每月需求用量 */}
<FormField name="monthlyUsage">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Select onValueChange={field.onChange} value={field.value}>
<SelectTrigger
id={id}
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs">
<SelectValue placeholder="请选择您需要的用量"/>
</SelectTrigger>
<SelectContent>
<SelectItem value="less20">20</SelectItem>
<SelectItem value="20-100">20~100</SelectItem>
<SelectItem value="100-500">100~500</SelectItem>
<SelectItem value="more500">500</SelectItem>
</SelectContent>
</Select>
</div>
)}
</FormField>
{/* 用途 */}
<FormField name="purpose">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入用途,例如:爬虫"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
<div className="pt-4 flex justify-center">
<Button type="submit" className="bg-blue-600 hover:bg-blue-700 px-8">
</Button>
</div> </div>
</div> <div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
</Form> <Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
</div> <span></span>
</div>
<div className="relative mt-8 rounded-lg overflow-hidden"> <div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
<div className="h-40 md:h-48 relative"> <Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
<div <span></span>
className="absolute inset-0 bg-no-repeat" </div>
style={{ <div className="flex gap-1 md:gap-2 items-center text-xs md:text-sm">
backgroundImage: `url(${group.src})`, <Image src={check} alt="特性" width={16} height={16} className="w-4 h-4 md:w-5 md:h-5"/>
backgroundPosition: 'center', <span></span>
backgroundSize: 'cover',
}}
/>
<div className="absolute inset-0 flex items-center justify-center">
<div className="w-full max-w-4xl px-6 flex flex-col md:flex-row items-center gap-4 justify-between md:gap-10">
<div className="text-blue-600 font-bold text-2xl md:text-2xl text-center md:text-left">
5000IP
</div>
<FreeTrial className={merge('bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md whitespace-nowrap')}/>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div className="text-center">
<h2 className="text-2xl font-semibold mb-6"></h2>
</div>
<div className="bg-white rounded-lg shadow-md p-6">
<Form form={form}>
<div className="mx-auto max-w-xl space-y-6">
{/* 企业名称 */}
<FormField name="companyName">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入企业名称"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
{/* 联系人姓名 */}
<FormField name="contactName">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入联系人姓名"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
{/* 联系人手机号码 */}
<FormField name="phone">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入手机号码"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
{/* 每月需求用量 */}
<FormField name="monthlyUsage">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Select onValueChange={field.onChange} value={field.value}>
<SelectTrigger
id={id}
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs">
<SelectValue placeholder="请选择您需要的用量"/>
</SelectTrigger>
<SelectContent>
<SelectItem value="less20">20</SelectItem>
<SelectItem value="20-100">20~100</SelectItem>
<SelectItem value="100-500">100~500</SelectItem>
<SelectItem value="more500">500</SelectItem>
</SelectContent>
</Select>
</div>
)}
</FormField>
{/* 用途 */}
<FormField name="purpose">
{({id, field}) => (
<div className="flex flex-col md:flex-row items-start md:items-center justify-start md:justify-between">
<label
htmlFor={id}
className="text-sm flex items-center gap-1 mb-2 md:mb-0 md:w-1/3 md:text-right">
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
placeholder="请输入用途,例如:爬虫"
className="flex-1 w-full md:w-2/3 md:ml-4 md:max-w-xs"/>
</div>
)}
</FormField>
<div className="pt-4 flex justify-center">
<Button type="submit" className="bg-blue-600 hover:bg-blue-700 px-8">
</Button>
</div>
</div>
</Form>
</div>
<div className="relative mt-8 rounded-lg overflow-hidden">
<div className="h-40 md:h-48 relative">
<div
className="absolute inset-0 bg-no-repeat"
style={{
backgroundImage: `url(${group.src})`,
backgroundPosition: 'center',
backgroundSize: 'cover',
}}
/>
<div className="absolute inset-0 flex items-center justify-center">
<div className="w-full max-w-4xl px-6 flex flex-col md:flex-row items-center gap-4 justify-between md:gap-10">
<div className="text-blue-600 font-bold text-2xl md:text-2xl text-center md:text-left">
5000IP
</div>
<FreeTrial className={merge('bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md whitespace-nowrap')}/>
</div>
</div>
</div>
</div>
</Wrap> </Wrap>
</main> </HomePage>
) )
} }

View File

@@ -20,261 +20,260 @@ import check_main from '@/assets/check-main.svg'
import check_accent from '@/assets/check-accent.svg' import check_accent from '@/assets/check-accent.svg'
import {Button} from '@/components/ui/button' import {Button} from '@/components/ui/button'
import {merge} from '@/lib/utils' import {merge} from '@/lib/utils'
import HomePage from '@/components/home/page'
export type CollectPageProps = {} export type CollectPageProps = {}
export default function CollectPage(props: CollectPageProps) { export default function CollectPage(props: CollectPageProps) {
const router = useRouter() const router = useRouter()
return ( return (
<main className="mt-20 flex flex-col gap-4"> <HomePage path={[
<Wrap className="flex flex-col py-8 gap-8"> {label: '业务场景'},
<BreadCrumb items={[ {label: '数据抓取', href: '/data-capture'},
{label: '业务场景/数据抓取', href: '/data-capture'}, ]}>
]}/> <Wrap className="flex flex-col gap-16 lg:gap-32 mb-16 lg:mb-32">
<main className="flex flex-col gap-16 lg:gap-32 mb-16 lg:mb-32"> {/* banner */}
{/* banner */} <section className="flex-none basis-40 relative flex flex-col gap-4 justify-center">
<section className="flex-none basis-40 relative flex flex-col gap-4 justify-center"> <Wrap className="relative pt-30 pb-48 max-md:pt-32 max-md:pb-24 min-h-[500px]">
<Wrap className="relative pt-30 pb-48 max-md:pt-32 max-md:pb-24 min-h-[500px]"> <Image src={s12} alt="背景图" className="absolute inset-0 w-full h-full object-cover"/>
<Image src={s12} alt="背景图" className="absolute inset-0 w-full h-full object-cover"/> <div className="relative pl-20 w-1/2 flex-1">
<div className="relative pl-20 w-1/2 flex-1"> <h1 className="text-4xl"></h1>
<h1 className="text-4xl"></h1> <p className="mt-10 text-gray-500">沿 </p>
<p className="mt-10 text-gray-500">沿 </p> <div className="mt-24 max-md:mt-14 flex gap-8 max-md:flex-col">
<div className="mt-24 max-md:mt-14 flex gap-8 max-md:flex-col"> <p className="flex gap-4 items-center">
<p className="flex gap-4 items-center"> <Image src={check_main} alt="checkbox" width={24} height={24}/>
<Image src={check_main} alt="checkbox" width={24} height={24}/> <span className={`lg:text-md `}>广</span>
<span className={`lg:text-md `}>广</span> </p>
</p> <p className="flex gap-4 items-center">
<p className="flex gap-4 items-center"> <Image src={check_main} alt="checkbox" width={24} height={24}/>
<Image src={check_main} alt="checkbox" width={24} height={24}/> <span className={`lg:text-md `}></span>
<span className={`lg:text-md `}></span> </p>
</p> <p className="flex gap-4 items-center">
<p className="flex gap-4 items-center"> <Image src={check_main} alt="checkbox" width={24} height={24}/>
<Image src={check_main} alt="checkbox" width={24} height={24}/> <span className={`lg:text-md `}></span>
<span className={`lg:text-md `}></span> </p>
</p>
</div>
<button
className={[
`mt-32 max-md:mt-20 w-96 max-md:w-full h-16 md:h-24 rounded-lg shadow-lg`,
`bg-gradient-to-r from-blue-500 to-cyan-400 text-white text-xl lg:text-4xl`,
].join(' ')}
onClick={() => router.push('/product?type=short')}
>
</button>
</div> </div>
</Wrap>
</section>
{/* 数据展示 */} <button
<Section title="全方面增进数据分析的专业"> className={[
<ul className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> `mt-32 max-md:mt-20 w-96 max-md:w-full h-16 md:h-24 rounded-lg shadow-lg`,
<li className="p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center"> `bg-gradient-to-r from-blue-500 to-cyan-400 text-white text-xl lg:text-4xl`,
<Image ].join(' ')}
src={s5} onClick={() => router.push('/product?type=short')}
alt="全方位的数据样本" >
className="w-44 h-44 object-cover"
priority </button>
/> </div>
<h1 className="text-xl"></h1> </Wrap>
<p className="text-sm text-gray-500 flex gap-3 items-center"> </section>
广 广
</p>
</li>
<li className="p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center">
<Image
src={s3}
alt="达成提高抓取频次的目的"
className="w-44 h-44 object-cover"
priority
/>
<h1 className="text-xl"></h1>
<p className="text-sm text-gray-500 flex gap-3 items-center">
广 广
</p>
</li>
<li className="p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center">
<Image
src={s4}
alt="维护隐私安全"
className="w-44 h-44 object-cover"
priority
/>
<h1 className="text-xl"></h1>
<p className="text-sm text-gray-500 flex gap-3 items-center">
广 广
</p>
</li>
</ul>
</Section>
{/* 优势 1 */} {/* 数据展示 */}
<Section title=""> <Section title="全方面增进数据分析的专业">
<div className="flex gap-8"> <ul className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<li className="p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center">
<Image <Image
src={s1} src={s5}
alt="s1" alt="全方位的数据样本"
className="w-0 flex-1 object-cover" className="w-44 h-44 object-cover"
priority priority
/> />
<ul className="flex-1 flex flex-col gap-6"> <h1 className="text-xl"></h1>
<li className="p-8 flex flex-col gap-5 rounded-lg max-md:items-center"> <p className="text-sm text-gray-500 flex gap-3 items-center">
<h1 className="text-xl">HTTP解决方案</h1> 广 广
<p className="text-sm text-gray-500 flex gap-3 items-center"> </p>
广IP技术提供准确的广告展示和点击 广广 广广广 广 </li>
</p> <li className="p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center">
</li> <Image
</ul> src={s3}
</div> alt="达成提高抓取频次的目的"
</Section> className="w-44 h-44 object-cover"
priority
/>
<h1 className="text-xl"></h1>
<p className="text-sm text-gray-500 flex gap-3 items-center">
广 广
</p>
</li>
<li className="p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center">
<Image
src={s4}
alt="维护隐私安全"
className="w-44 h-44 object-cover"
priority
/>
<h1 className="text-xl"></h1>
<p className="text-sm text-gray-500 flex gap-3 items-center">
广 广
</p>
</li>
</ul>
</Section>
{/* 优势 2 */} {/* 优势 1 */}
<Section title="产品核心优势 "> <Section title="">
<ul className={merge('grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8')}> <div className="flex gap-8">
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}> <Image
<Image src={s1}
src={s6} alt="s1"
alt="s6" className="w-0 flex-1 object-cover"
className="w-44 h-44 object-cover" priority
priority />
/> <ul className="flex-1 flex flex-col gap-6">
<h3 className="text-xl"></h3> <li className="p-8 flex flex-col gap-5 rounded-lg max-md:items-center">
<div className="flex flex-col gap-3"> <h1 className="text-xl">HTTP解决方案</h1>
<p className="text-sm text-gray-500 flex gap-3 items-center"> <p className="text-sm text-gray-500 flex gap-3 items-center">
<span>/ / IP都经过技术团队 </span> 广IP技术提供准确的广告展示和点击 广广 广广广 广
</p> </p>
</div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s7}
alt="s7"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span>3000+ </span>
</p>
</div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s8}
alt="s8"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span> IP的纯净度高 99.8% IP的影响</span>
</p>
</div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s9}
alt="s9"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span>IP使用情况 </span>
</p>
</div>
</li> </li>
</ul> </ul>
<ul className="flex mt-8 gap-8"> </div>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}> </Section>
<Image
src={s10}
alt="s10"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span>IP使用情况 </span>
</p>
</div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s11}
alt="s11"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span> </span>
</p>
</div>
</li>
</ul>
</Section>
{/* 全栈式代理解决方案 */} {/* 优势 2 */}
<Section title=""> <Section title="产品核心优势 ">
<div className="flex gap-8 max-md:flex-col max-md:gap-4"> <ul className={merge('grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8')}>
<div className={merge('shadow-[4px_4px_20px_4px] shadow-blue-50 flex-1 p-4 flex justify-center items-center bg-gray-50')}> <li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image <Image
src={s2} src={s6}
alt="代理解决方案示意图" alt="s6"
className="w-full h-auto object-contain max-h-64" className="w-44 h-44 object-cover"
/> priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span>/ / IP都经过技术团队 </span>
</p>
</div> </div>
</li>
<div className="flex-1 flex flex-col gap-6"> <li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
<div> src={s7}
<h3 className="text-2xl font-medium"></h3> alt="s7"
<p className="text-gray-500 mt-2"> className="w-44 h-44 object-cover"
priority
</p> />
</div> <h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<div className="grid grid-cols-3 gap-4"> <p className="text-sm text-gray-500 flex gap-3 items-center">
<div className="flex gap-2 items-center"> <span>3000+ </span>
<Image src={check_accent} alt="特性" width={20} height={20}/> </p>
<span>IP时效3-30()</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>IP覆盖全国各地</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>线</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span></span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>0.03s</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>IP线路</span>
</div>
</div>
<Button className="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md whitespace-nowrap">
</Button>
</div> </div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s8}
alt="s8"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span> IP的纯净度高 99.8% IP的影响</span>
</p>
</div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s9}
alt="s9"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span>IP使用情况 </span>
</p>
</div>
</li>
</ul>
<ul className="flex mt-8 gap-8">
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s10}
alt="s10"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span>IP使用情况 </span>
</p>
</div>
</li>
<li className={merge('p-8 flex flex-col gap-5 shadow-[4px_4px_20px_4px] shadow-blue-50 bg-white rounded-lg max-md:items-center')}>
<Image
src={s11}
alt="s11"
className="w-44 h-44 object-cover"
priority
/>
<h3 className="text-xl"></h3>
<div className="flex flex-col gap-3">
<p className="text-sm text-gray-500 flex gap-3 items-center">
<span> </span>
</p>
</div>
</li>
</ul>
</Section>
{/* 全栈式代理解决方案 */}
<Section title="">
<div className="flex gap-8 max-md:flex-col max-md:gap-4">
<div className={merge('shadow-[4px_4px_20px_4px] shadow-blue-50 flex-1 p-4 flex justify-center items-center bg-gray-50')}>
<Image
src={s2}
alt="代理解决方案示意图"
className="w-full h-auto object-contain max-h-64"
/>
</div> </div>
</Section>
</main> <div className="flex-1 flex flex-col gap-6">
<div>
<h3 className="text-2xl font-medium"></h3>
<p className="text-gray-500 mt-2">
</p>
</div>
<div className="grid grid-cols-3 gap-4">
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>IP时效3-30()</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>IP覆盖全国各地</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>线</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span></span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>0.03s</span>
</div>
<div className="flex gap-2 items-center">
<Image src={check_accent} alt="特性" width={20} height={20}/>
<span>IP线路</span>
</div>
</div>
<Button className="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md whitespace-nowrap">
</Button>
</div>
</div>
</Section>
</Wrap> </Wrap>
</main> </HomePage>
) )
} }

View File

@@ -1,22 +1,19 @@
import BreadCrumb from '@/components/bread-crumb'
import Wrap from '@/components/wrap' import Wrap from '@/components/wrap'
import {Children} from '@/lib/utils' import {Children} from '@/lib/utils'
import Sidebar from './sidebar' import Sidebar from './sidebar'
import HomePage from '@/components/home/page'
export default function DocsLayout(props: Children) { export default function DocsLayout(props: Children) {
return ( return (
<main className="mt-20 flex flex-col gap-4"> <HomePage path={[
<Wrap className="flex flex-col py-8 gap-8"> {label: '帮助中心', href: '/docs'},
<BreadCrumb items={[ ]}>
{label: '帮助中心', href: '/help'}, <Wrap className="flex gap-3">
]}/> <Sidebar/>
<div className="flex gap-6"> <div className="flex-1 bg-white rounded-lg p-6 min-h-[420px]">
<Sidebar/> {props.children}
<div className="flex-1 bg-white rounded-lg p-6 min-h-[420px]">
{props.children}
</div>
</div> </div>
</Wrap> </Wrap>
</main> </HomePage>
) )
} }

View File

@@ -0,0 +1,9 @@
import Link from 'next/link'
import {Card, CardContent, CardDescription, CardHeader, CardTitle} from '@/components/ui/card'
import {BookOpen, Lightbulb, Smartphone, Zap, HelpCircle, FileText, Settings, TrendingUp} from 'lucide-react'
export default function DocsIndexPage() {
return (
<div></div>
)
}

View File

@@ -29,7 +29,7 @@ const MENU_ITEMS = [
{ {
group: '操作指南', group: '操作指南',
items: [ items: [
{key: 'windows7-proxy', label: 'Windows7电脑设置代理教程'}, {key: 'win7-proxy', label: 'Windows7电脑设置代理教程'},
{key: 'mac-proxy', label: 'MAC设置代理教程'}, {key: 'mac-proxy', label: 'MAC设置代理教程'},
{key: 'firefox-proxy', label: '火狐浏览器设置代理'}, {key: 'firefox-proxy', label: '火狐浏览器设置代理'},
{key: 'socks5-usage', label: 'Socks5代理使用教程'}, {key: 'socks5-usage', label: 'Socks5代理使用教程'},
@@ -110,7 +110,7 @@ export default function Sidebar({collapsed = false}: Props) {
return ( return (
<aside <aside
className={`bg-white rounded-lg p-3 transition-all duration-200 shrink-0 ${ className={`bg-white rounded-lg p-3 transition-all duration-200 shrink-0 ${
collapsed ? 'w-20' : 'w-72' collapsed ? 'w-20' : 'w-68'
}`} }`}
> >
<nav className="space-y-2"> <nav className="space-y-2">
@@ -129,7 +129,7 @@ export default function Sidebar({collapsed = false}: Props) {
finalExpandedGroups[section.group] ? 'rotate-90' : '' finalExpandedGroups[section.group] ? 'rotate-90' : ''
}`} }`}
> >
<ChevronRight size={16} /> <ChevronRight size={16}/>
</div> </div>
{!collapsed && ( {!collapsed && (
@@ -141,7 +141,7 @@ export default function Sidebar({collapsed = false}: Props) {
{finalExpandedGroups[section.group] && ( {finalExpandedGroups[section.group] && (
<ul className={`mt-1 text-base ${collapsed ? 'hidden' : 'block'}`}> <ul className={`mt-1 text-base ${collapsed ? 'hidden' : 'block'}`}>
{section.items.map(item => { {section.items.map((item) => {
const isActive = currentKey === item.key const isActive = currentKey === item.key
const href = getItemHref(item.key) const href = getItemHref(item.key)

View File

@@ -57,9 +57,9 @@ export default function Footer(props: FooterProps) {
<SiteNavList <SiteNavList
title="帮助文档" title="帮助文档"
items={[ items={[
{name: `产品功能`, href: `#`}, {name: `产品功能`, href: `/docs/product-features`},
{name: `使用教程`, href: `#`}, {name: `使用教程`, href: `/docs/browser-proxy`},
{name: `行业资讯`, href: `#`}, {name: `行业资讯`, href: `/docs/news-latest`},
]} ]}
/> />
</div> </div>

View File

@@ -2,6 +2,7 @@ import BreadCrumb from '@/components/bread-crumb'
import Wrap from '@/components/wrap' import Wrap from '@/components/wrap'
import Purchase, {TabType} from '@/components/composites/purchase' import Purchase, {TabType} from '@/components/composites/purchase'
import {Suspense} from 'react' import {Suspense} from 'react'
import HomePage from '@/components/home/page'
export type ProductPageProps = { export type ProductPageProps = {
searchParams?: Promise<{ searchParams?: Promise<{
@@ -11,15 +12,14 @@ export type ProductPageProps = {
export default function ProductPage(props: ProductPageProps) { export default function ProductPage(props: ProductPageProps) {
return ( return (
<main className="mt-20"> <HomePage path={[
<Wrap className="flex flex-col py-8 gap-4"> {label: '产品中心', href: '/product'},
<BreadCrumb items={[ ]}>
{label: '产品中心', href: '/product'}, <Wrap>
]}/>
<Suspense> <Suspense>
<Purchase/> <Purchase/>
</Suspense> </Suspense>
</Wrap> </Wrap>
</main> </HomePage>
) )
} }

View File

@@ -0,0 +1,16 @@
import {Children} from '@/lib/utils'
import Wrap from '../wrap'
import BreadCrumb, {BreadCrumbItem} from '../bread-crumb'
export default function HomePage(props: Children & {
path: BreadCrumbItem[]
}) {
return (
<main className="mt-20 flex flex-col gap-3 py-6">
<Wrap>
<BreadCrumb items={props.path}/>
</Wrap>
{props.children}
</main>
)
}