mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: pub ads
This commit is contained in:
1 parent
6298d6230f
commit
57cd3aae50
4 files changed
+45
-5
No files matched your search
+2
-2
@@ -7,9 +7,9 @@ import { Roboto_Flex } from 'next/font/google';
|
|||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
import { ReactNode, Suspense, useEffect, useState } from 'react';
|
import { ReactNode, Suspense, useEffect, useState } from 'react';
|
||||||
import { Footer } from '../components/Footer';
|
import { Footer } from '../components/Footer';
|
||||||
import { Google } from '../components/Google';
|
|
||||||
import { Loader } from '../components/Loader';
|
import { Loader } from '../components/Loader';
|
||||||
import Navbar from '../components/Navbar';
|
import Navbar from '../components/Navbar';
|
||||||
|
import { Party3 } from '../components/Party3';
|
||||||
import isDev from '../core/blitzkrieg/isDev';
|
import isDev from '../core/blitzkrieg/isDev';
|
||||||
import { isLocalhost } from '../core/blitzkrieg/isLocalhost';
|
import { isLocalhost } from '../core/blitzkrieg/isLocalhost';
|
||||||
import { useFullScreen } from '../hooks/useFullScreen';
|
import { useFullScreen } from '../hooks/useFullScreen';
|
||||||
@@ -60,7 +60,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
|
|||||||
<meta property="og:site_name" content="Blitzkrieg" />
|
<meta property="og:site_name" content="Blitzkrieg" />
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
|
||||||
<Google />
|
<Party3 />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body
|
<body
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Flex, Link } from '@radix-ui/themes';
|
import { Flex, Link } from '@radix-ui/themes';
|
||||||
import { use } from 'react';
|
import { use } from 'react';
|
||||||
|
import { AdHorizontal } from '../../../../components/Ads/Horizontal';
|
||||||
import PageWrapper from '../../../../components/PageWrapper';
|
import PageWrapper from '../../../../components/PageWrapper';
|
||||||
import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions';
|
import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions';
|
||||||
|
|
||||||
@@ -8,11 +9,17 @@ export default function Page() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PageWrapper>
|
<PageWrapper>
|
||||||
|
<title>Super duper secret map for SEO</title>
|
||||||
|
|
||||||
|
<AdHorizontal />
|
||||||
|
|
||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center">
|
||||||
{Object.values(awaitedTankDefinitions)
|
{Object.values(awaitedTankDefinitions)
|
||||||
.sort((a, b) => b.tier - a.tier)
|
.sort((a, b) => b.tier - a.tier)
|
||||||
.map((tank) => (
|
.map((tank) => (
|
||||||
<Link href={`./${tank.id}`}>{tank.name}</Link>
|
<Link href={`./${tank.id}`} key={tank.id}>
|
||||||
|
{tank.name}
|
||||||
|
</Link>
|
||||||
))}
|
))}
|
||||||
</Flex>
|
</Flex>
|
||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
export function AdHorizontal() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div id="ms-ad-635230699" />
|
||||||
|
<script
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
window.msAdsQueue.push(() => {
|
||||||
|
window.pubCenterSdk.render({
|
||||||
|
adUnitId: "635230699",
|
||||||
|
elementId: "ms-ad-635230699"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
export function Google() {
|
export function Party3() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* analytics */}
|
{/* analytics */}
|
||||||
@@ -19,10 +19,24 @@ export function Google() {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
{/* adsense */}
|
{/* adsense */}
|
||||||
<script
|
{/* <script
|
||||||
async
|
async
|
||||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
|
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
|
||||||
crossOrigin="anonymous"
|
crossOrigin="anonymous"
|
||||||
|
/> */}
|
||||||
|
|
||||||
|
{/* pub center */}
|
||||||
|
<script
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
window.msAdsQueue = window.msAdsQueue || [];
|
||||||
|
`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<script
|
||||||
|
async
|
||||||
|
src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364477&publisherId=253617120"
|
||||||
|
crossOrigin="anonymous"
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user