Skip to content

Commit

Permalink
Merge pull request #36 from TrustlessComputer/fix/metadata-eternal-ai
Browse files Browse the repository at this point in the history
test
  • Loading branch information
tonytc13579 authored Jan 16, 2024
2 parents 3b6c667 + 63ffb71 commit faf2541
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 10 deletions.
64 changes: 59 additions & 5 deletions src/app/eternal-ai/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,63 @@
'use client';

import EternalAi from '@/modules/eternal-ai';
import type { Metadata } from 'next';

export default function EternalAiPage() {
return (
<EternalAi />
);
return <EternalAi />;
}

// ------------------------------------------------
// Override Metadata
// ------------------------------------------------

const APP_NAME = 'Eternal AI';
const APP_DEFAULT_TITLE = 'Eternal AI';
const APP_TITLE_TEMPLATE = 'Eternal AI';
const APP_DESCRIPTION = 'Decentralized AI on Bitcoin.';
// const APP_THUMBNAIL = `${CDN_URL_ICONS}/metadata.jpg`;

// ==> Export is required if override
const metaExternalAI: Metadata = {
metadataBase: new URL(`${process.env.NEXT_PUBLIC_DOMAIN_URL}`),
applicationName: APP_NAME,
title: {
default: APP_DEFAULT_TITLE,
template: APP_TITLE_TEMPLATE,
},
description: APP_DESCRIPTION,
// manifest: "/manifest.json",// using for PWA
appleWebApp: {
capable: true,
statusBarStyle: 'default',
title: APP_DEFAULT_TITLE,
},
formatDetection: {
telephone: false,
},
openGraph: {
type: 'website',
siteName: APP_NAME,
title: {
default: APP_DEFAULT_TITLE,
template: APP_TITLE_TEMPLATE,
},
description: APP_DESCRIPTION,
images: [
{
url: 'https://cdn.newbitcoincity.com/nbc/icons/bvm-icons/metadata_eternal_ai.png',
width: 1200,
height: 630,
alt: APP_NAME,
},
],
},
twitter: {
card: 'summary',
title: {
default: APP_DEFAULT_TITLE,
template: APP_TITLE_TEMPLATE,
},
description: APP_DESCRIPTION,
},
};

export { metaExternalAI };
24 changes: 19 additions & 5 deletions src/modules/eternal-ai/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@ import s from './styles.module.scss';
import Image from 'next/image';

export default function EternalAi() {

return <div className={s.eternalAi}>
<video className={s.eternalAi_video} playsInline loop autoPlay muted src={'landing/loop-videos.webm'} />
<Image loading={'eager'} src={'landing/images/eternail.svg'} width={485} height={213} alt={'eternail'} />
</div>;
return (
<div className={s.eternalAi}>
<video
className={s.eternalAi_video}
playsInline
loop
autoPlay
muted
src={'landing/loop-videos.webm'}
/>
<Image
loading={'eager'}
src={'landing/images/eternail.svg'}
width={485}
height={213}
alt={'eternail'}
/>
</div>
);
}

0 comments on commit faf2541

Please sign in to comment.