parent
e7e0480462
commit
6fcf1723a8
@ -1,80 +0,0 @@
|
|||||||
'use client';
|
|
||||||
|
|
||||||
import Image from 'next/image';
|
|
||||||
|
|
||||||
import DownloadCard from '@/app/download/components/DownloadCard';
|
|
||||||
|
|
||||||
const qrCodeList: Array<DownloadQrcodeCard> = [
|
|
||||||
{
|
|
||||||
platform: 'APP Store',
|
|
||||||
iconUrl: '/img/download/logo_apple.svg',
|
|
||||||
qrCode: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
platform: 'Android',
|
|
||||||
iconUrl: '/img/download/logo_android.svg',
|
|
||||||
qrCode: '/img/download/qrcode_android.svg',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default function Download() {
|
|
||||||
return (
|
|
||||||
<main className="w-full flex flex-col items-center pb-[104px] font-normal">
|
|
||||||
{/* 首屏 */}
|
|
||||||
<div className="relative w-full h-min-[1000px] h-screen flex flex-col items-center pt-[30vh] bg-[url(/img/download/background_1.jpg)] bg-center bg-cover bg-no-repeat text-[#fff]">
|
|
||||||
{/* slogan */}
|
|
||||||
<div className="flex flex-col items-center mb-[40px]">
|
|
||||||
<Image width={410} height={50} src="/img/download/slogan_line1.svg" alt="为独立音乐,雀跃" />
|
|
||||||
<Image
|
|
||||||
className="w-[6px] h-[20px] mt-[30px] mb-[30px] overflow-hidden"
|
|
||||||
width={6}
|
|
||||||
height={20}
|
|
||||||
src="/img/download/slogan_line2.svg"
|
|
||||||
alt="/"
|
|
||||||
/>{' '}
|
|
||||||
<Image width={143} height={24} src="/img/download/slogan_line3.svg" alt="独立 不独于世" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* APP二维码 */}
|
|
||||||
<div className="flex flex-row">
|
|
||||||
{qrCodeList.map(({ platform, iconUrl, qrCode }) => (
|
|
||||||
<DownloadCard key={platform} platform={platform} iconUrl={iconUrl} qrCode={qrCode} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* 第二屏 */}
|
|
||||||
<div className="relative w-full h-[1000px] h-screen pl-[45.7vw] flex flex-col bg-[url(/img/download/background_2.jpg)] bg-center bg-cover bg-no-repeat">
|
|
||||||
{/* 花体字-“我们回来了” */}
|
|
||||||
<Image
|
|
||||||
className="w-[226px] h-[46px] mt-[16.67vh] mb-[50px]"
|
|
||||||
width={306}
|
|
||||||
height={46}
|
|
||||||
src="/img/download/back.svg"
|
|
||||||
alt="back"
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* 诗歌 */}
|
|
||||||
<p className="text-[#000] text-[15px] leading-[28px] text-left">
|
|
||||||
音乐是一种态度
|
|
||||||
<br />
|
|
||||||
不论是创作者还是聆听者
|
|
||||||
<br />
|
|
||||||
它流经心灵
|
|
||||||
<br />
|
|
||||||
纵然期待影响现实的力量是种奢望
|
|
||||||
<br />
|
|
||||||
如果刚巧有些声音
|
|
||||||
<br />
|
|
||||||
会让你记得一段往事
|
|
||||||
<br />
|
|
||||||
伤痛或是甜蜜
|
|
||||||
<br />
|
|
||||||
那记忆便有了厚厚的壳
|
|
||||||
<br />
|
|
||||||
恒久的 温暖有如初生
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
);
|
|
||||||
}
|
|
@ -0,0 +1,18 @@
|
|||||||
|
import { NextResponse } from 'next/server';
|
||||||
|
|
||||||
|
import type { NextRequest } from 'next/server';
|
||||||
|
|
||||||
|
export async function middleware(request: NextRequest) {
|
||||||
|
const token = request.cookies.get('token' as any)?.value;
|
||||||
|
if (token) return NextResponse.next();
|
||||||
|
// 307: 临时重定向
|
||||||
|
return NextResponse.redirect(new URL(`/?redirect=${encodeURIComponent(request.nextUrl.pathname)}`, request.url), 307);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
matcher: [
|
||||||
|
// '/((?!api|_next/static|_next/image|favicon.ico).*)',
|
||||||
|
'/my/:path*',
|
||||||
|
'/vol/list/:path*',
|
||||||
|
],
|
||||||
|
};
|
Loading…
Reference in new issue