update(page): Add app store qrCode and add baidu hm script.

feature/artists
mackt 8 months ago
parent ef06e0bd3d
commit 131d730a8f

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 25 KiB

@ -1,3 +1,5 @@
'use client';
import { useState } from 'react'; import { useState } from 'react';
import Image from 'next/image'; import Image from 'next/image';

@ -1,16 +1,16 @@
'use client';
import Image from 'next/image'; import Image from 'next/image';
import DownloadCard from '@/app/download/components/DownloadCard'; import DownloadCard from '@/app/download/components/DownloadCard';
const qrCodeList: Array<DownloadQrcodeCard> = [ const qrCodeList: Array<DownloadQrcodeCard> = [
{ {
id: 'apple',
platform: 'APP Store', platform: 'APP Store',
iconUrl: '/img/download/logo_apple.svg', iconUrl: '/img/download/logo_apple.svg',
qrCode: '', qrCode: '/img/download/qrcode_apple.svg',
}, },
{ {
id: 'android',
platform: 'Android', platform: 'Android',
iconUrl: '/img/download/logo_android.svg', iconUrl: '/img/download/logo_android.svg',
qrCode: '/img/download/qrcode_android.svg', qrCode: '/img/download/qrcode_android.svg',
@ -31,14 +31,14 @@ export default function Download() {
height={20} height={20}
src="/img/download/slogan_line2.svg" src="/img/download/slogan_line2.svg"
alt="/" alt="/"
/>{' '} />
<Image width={143} height={24} src="/img/download/slogan_line3.svg" alt="独立 不独于世" /> <Image width={143} height={24} src="/img/download/slogan_line3.svg" alt="独立 不独于世" />
</div> </div>
{/* APP二维码 */} {/* APP二维码 */}
<div className="flex flex-row"> <div className="flex flex-row">
{qrCodeList.map(({ platform, iconUrl, qrCode }) => ( {qrCodeList.map((item: DownloadQrcodeCard) => (
<DownloadCard key={platform} platform={platform} iconUrl={iconUrl} qrCode={qrCode} /> <DownloadCard key={item.id} {...item} />
))} ))}
</div> </div>
</div> </div>

@ -1,3 +1,5 @@
import Script from 'next/script';
import { Header, Footer, PlayerBar } from '@/components'; import { Header, Footer, PlayerBar } from '@/components';
import type { Metadata, Viewport } from 'next'; import type { Metadata, Viewport } from 'next';
@ -29,6 +31,8 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
<Footer /> <Footer />
{/* <PlayerBar /> */} {/* <PlayerBar /> */}
</body> </body>
<Script src="https://hm.baidu.com/hm.js?89d54ff4e336c923a74ee045cc600c6a" async />
</html> </html>
); );
} }

@ -1,16 +1,16 @@
'use client';
import Image from 'next/image'; import Image from 'next/image';
import DownloadCard from '@/app/download/components/DownloadCard'; import DownloadCard from '@/app/download/components/DownloadCard';
const qrCodeList: Array<DownloadQrcodeCard> = [ const qrCodeList: Array<DownloadQrcodeCard> = [
{ {
id: 'apple',
platform: 'APP Store', platform: 'APP Store',
iconUrl: '/img/download/logo_apple.svg', iconUrl: '/img/download/logo_apple.svg',
qrCode: '', qrCode: '/img/download/qrcode_apple.svg',
}, },
{ {
id: 'android',
platform: 'Android', platform: 'Android',
iconUrl: '/img/download/logo_android.svg', iconUrl: '/img/download/logo_android.svg',
qrCode: '/img/download/qrcode_android.svg', qrCode: '/img/download/qrcode_android.svg',
@ -31,14 +31,14 @@ export default function Download() {
height={20} height={20}
src="/img/download/slogan_line2.svg" src="/img/download/slogan_line2.svg"
alt="/" alt="/"
/>{' '} />
<Image width={143} height={24} src="/img/download/slogan_line3.svg" alt="独立 不独于世" /> <Image width={143} height={24} src="/img/download/slogan_line3.svg" alt="独立 不独于世" />
</div> </div>
{/* APP二维码 */} {/* APP二维码 */}
<div className="flex flex-row"> <div className="flex flex-row">
{qrCodeList.map(({ platform, iconUrl, qrCode }) => ( {qrCodeList.map((item: DownloadQrcodeCard) => (
<DownloadCard key={platform} platform={platform} iconUrl={iconUrl} qrCode={qrCode} /> <DownloadCard key={item.id} {...item} />
))} ))}
</div> </div>
</div> </div>

@ -1,4 +1,5 @@
declare interface DownloadQrcodeCard { declare interface DownloadQrcodeCard {
id: 'apple' | 'android';
platform: 'APP Store' | 'Android'; platform: 'APP Store' | 'Android';
iconUrl: string; iconUrl: string;
qrCode: string; qrCode: string;

Loading…
Cancel
Save