修改定制套餐页面的背景图

This commit is contained in:
Eamon-meng
2025-07-25 15:16:54 +08:00
parent 0ae049e6f5
commit 2242275e84
3 changed files with 59 additions and 72 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -40,6 +40,7 @@ export default function CollectPage() {
})
// 从store中获取用户信息
const profile = useProfileStore(store => store.profile)
return (
<main className="mt-20 flex flex-col gap-4">
<Wrap className="flex flex-col py-8 gap-8">
@@ -49,57 +50,61 @@ export default function CollectPage() {
<div className="flex flex-col gap-8">
<div className="bg-white rounded-lg shadow-md overflow-hidden p-6">
<div className="text-center mb-8">
<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 gap-8">
<div className="w-full md:w-1/3">
<div className="relative h-full w-full">
<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="宣传图"
layout="responsive"
className="object-cover rounded-lg"
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-6">
<p className="text-gray-600">
<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>
<div className="mt-4">
<Button className="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-md">
<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 className="grid grid-cols-3 gap-4">
<div className="flex gap-2 items-center">
<Image src={check} alt="特性" width={20} height={20}/>
<div className="grid grid-cols-2 md:grid-cols-3 gap-3 md:gap-4 mt-2 md:mt-6">
<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-2 items-center">
<Image src={check} alt="特性" width={20} height={20}/>
<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-2 items-center">
<Image src={check} alt="特性" width={20} height={20}/>
<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-2 items-center">
<Image src={check} alt="特性" width={20} height={20}/>
<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-2 items-center">
<Image src={check} alt="特性" width={20} height={20}/>
<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-2 items-center">
<Image src={check} alt="特性" width={20} height={20}/>
<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>
@@ -124,7 +129,6 @@ export default function CollectPage() {
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
@@ -144,7 +148,6 @@ export default function CollectPage() {
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
@@ -164,7 +167,6 @@ export default function CollectPage() {
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
@@ -184,7 +186,6 @@ export default function CollectPage() {
<span className="text-red-500">*</span>
<span></span>
</label>
<Select onValueChange={field.onChange} value={field.value}>
<SelectTrigger
id={id}
@@ -212,7 +213,6 @@ export default function CollectPage() {
<span className="text-red-500">*</span>
<span></span>
</label>
<Input
{...field}
id={id}
@@ -231,33 +231,39 @@ export default function CollectPage() {
</Form>
</div>
{/* <div className="relative mt-8 rounded-lg overflow-hidden h-32 md:h-40 bg-gray-100">
<div
className="absolute inset-0 z-0"
style={{
backgroundImage: `url(${group.src})`,
backgroundSize: 'cover',
backgroundPosition: 'right center',
}}>
</div>
<div className={merge('relative h-full flex items-center justify-center pl-150')}>
<div className="flex items-center gap-4">
<Button
className={merge('bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md whitespace-nowrap')}
onClick={() => {
if (profile) {
router.push('/admin/purchase')
}
else {
router.push('/login?redirect=/admin/purchase')
}
}}
>
免费试用
</Button>
<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>
<Button
className={merge('bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-md whitespace-nowrap')}
onClick={() => {
if (profile) {
router.push('/admin/purchase')
}
else {
router.push('/login?redirect=/admin/purchase')
}
}}
>
</Button>
</div>
</div>
</div>
</div> */}
</div>
</div>
</Wrap>
</main>