Skip to content

Commit

Permalink
added ads in app section
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCI committed Apr 9, 2023
1 parent a090caa commit 6f5e557
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { default as default2 } from "../components/pages/_page.svelte-a2a58bba.js";
import { default as default2 } from "../components/pages/_page.svelte-b5ee527f.js";
export {
default2 as component
};
Original file line number Diff line number Diff line change
Expand Up @@ -708,20 +708,40 @@ function create_default_slot_1(ctx) {
function create_default_slot(ctx) {
let img0;
let img0_src_value;
let t;
let t0;
let img1;
let img1_src_value;
let t1;
let amp_ad;
let div;
return {
c() {
img0 = element("img");
t = space();
t0 = space();
img1 = element("img");
t1 = space();
amp_ad = element("amp-ad");
div = element("div");
this.h();
},
l(nodes) {
img0 = claim_element(nodes, "IMG", { src: true, alt: true, class: true });
t = claim_space(nodes);
t0 = claim_space(nodes);
img1 = claim_element(nodes, "IMG", { src: true, alt: true, class: true });
t1 = claim_space(nodes);
amp_ad = claim_element(nodes, "AMP-AD", {
width: true,
height: true,
type: true,
"data-ad-client": true,
"data-ad-slot": true,
"data-auto-format": true,
"data-full-width": true
});
var amp_ad_nodes = children(amp_ad);
div = claim_element(amp_ad_nodes, "DIV", { overflow: true });
children(div).forEach(detach);
amp_ad_nodes.forEach(detach);
this.h();
},
h() {
Expand All @@ -733,20 +753,35 @@ function create_default_slot(ctx) {
attr(img1, "src", img1_src_value);
attr(img1, "alt", "App 2");
attr(img1, "class", "h-[70vh] svelte-8fii8a");
attr(div, "overflow", "");
set_custom_element_data(amp_ad, "width", "100vw");
set_custom_element_data(amp_ad, "height", "320");
set_custom_element_data(amp_ad, "type", "adsense");
set_custom_element_data(amp_ad, "data-ad-client", "ca-pub-9406040528414499");
set_custom_element_data(amp_ad, "data-ad-slot", "5257041353");
set_custom_element_data(amp_ad, "data-auto-format", "rspv");
set_custom_element_data(amp_ad, "data-full-width", "");
},
m(target, anchor) {
insert_hydration(target, img0, anchor);
insert_hydration(target, t, anchor);
insert_hydration(target, t0, anchor);
insert_hydration(target, img1, anchor);
insert_hydration(target, t1, anchor);
insert_hydration(target, amp_ad, anchor);
append_hydration(amp_ad, div);
},
p: noop,
d(detaching) {
if (detaching)
detach(img0);
if (detaching)
detach(t);
detach(t0);
if (detaching)
detach(img1);
if (detaching)
detach(t1);
if (detaching)
detach(amp_ad);
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ const matchers = {};
const nodes = [
() => __vitePreload(() => import("./chunks/0-732fa97f.js"), true ? ["./chunks\\0-732fa97f.js","./chunks\\_layout-324900b4.js","./components\\pages\\_layout.svelte-52592f04.js","./chunks\\index-4e8a7cd9.js","./assets\\_layout-03af76df.css"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/1-4677a86b.js"), true ? ["./chunks\\1-4677a86b.js","./components\\error.svelte-1ff30dc9.js","./chunks\\index-4e8a7cd9.js","./chunks\\singletons-ed2d31f0.js"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/2-53ea545a.js"), true ? ["./chunks\\2-53ea545a.js","./components\\pages\\_page.svelte-a2a58bba.js","./chunks\\index-4e8a7cd9.js","./assets\\_page-6123fc05.css"] : void 0, import.meta.url)
() => __vitePreload(() => import("./chunks/2-22eb2279.js"), true ? ["./chunks\\2-22eb2279.js","./components\\pages\\_page.svelte-b5ee527f.js","./chunks\\index-4e8a7cd9.js","./assets\\_page-6123fc05.css"] : void 0, import.meta.url)
];
const server_loads = [];
const dictionary = {
Expand Down
2 changes: 1 addition & 1 deletion docs/_app/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1681049824484"}
{"version":"1681049929295"}
16 changes: 9 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,18 @@
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9406040528414499"
crossorigin="anonymous"></script>
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
<!-- <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script> -->

<meta http-equiv="content-security-policy" content="">
<link href="./_app/immutable/assets/_layout-03af76df.css" rel="stylesheet">
<link href="./_app/immutable/assets/_page-6123fc05.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/start-e01bb0cb.js">
<link rel="modulepreload" href="./_app/immutable/start-112706cc.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index-4e8a7cd9.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons-ed2d31f0.js">
<link rel="modulepreload" href="./_app/immutable/components/pages/_layout.svelte-52592f04.js">
<link rel="modulepreload" href="./_app/immutable/modules/pages/_layout.ts-5dd4d445.js">
<link rel="modulepreload" href="./_app/immutable/chunks/_layout-324900b4.js">
<link rel="modulepreload" href="./_app/immutable/components/pages/_page.svelte-a2a58bba.js">
<link rel="modulepreload" href="./_app/immutable/components/pages/_page.svelte-b5ee527f.js">
</head>

<body data-sveltekit-preload-data="hover">
Expand Down Expand Up @@ -107,17 +108,18 @@ <h2 class="text-3xl font-bold">Kru<i>Bryan Carfagna </i>:</h2>
<section class="w-full min-h-min p-10 bg-gradient-to-br from-black to-red-900"><a href="https://app.worldzen.it" id="title"><h1 class="text-5xl mb-10 font-bold">Martial Arts App
<span class="material-symbols-outlined text-5xl relative top-2">download</span></h1></a>
<div class="w-full flex flex-wrap justify-center md:justify-start items-center gap-4"><img src="app-1.webp" alt="App 1" class="h-[70vh] svelte-8fii8a">
<img src="app-2.webp" alt="App 2" class="h-[70vh] svelte-8fii8a"></div></section>
<img src="app-2.webp" alt="App 2" class="h-[70vh] svelte-8fii8a">
<amp-ad width="100vw" height="320" type="adsense" data-ad-client="ca-pub-9406040528414499" data-ad-slot="5257041353" data-auto-format="rspv" data-full-width=""><div overflow=""></div></amp-ad></div></section>


<script type="module" data-sveltekit-hydrate="m79614">
import { start } from "./_app/immutable/start-e01bb0cb.js";
<script type="module" data-sveltekit-hydrate="y6xw5v">
import { start } from "./_app/immutable/start-112706cc.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="m79614"]').parentNode,
version: "1681049824484",
target: document.querySelector('[data-sveltekit-hydrate="y6xw5v"]').parentNode,
version: "1681049929295",
hydrate: {
node_ids: [0, 2],
data: [null,null],
Expand Down
1 change: 1 addition & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9406040528414499"
crossorigin="anonymous"></script>
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
<!-- <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script> -->

%sveltekit.head%
</head>
Expand Down
11 changes: 11 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@
>
<img src="app-1.webp" alt="App 1" class="h-[70vh]" />
<img src="app-2.webp" alt="App 2" class="h-[70vh]" />
<amp-ad
width="100vw"
height="320"
type="adsense"
data-ad-client="ca-pub-9406040528414499"
data-ad-slot="5257041353"
data-auto-format="rspv"
data-full-width=""
>
<div overflow="" />
</amp-ad>
</Section>

<style>
Expand Down

0 comments on commit 6f5e557

Please sign in to comment.