Skip to content

Commit

Permalink
fixed lighthouse reported problems
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCI committed Apr 9, 2023
1 parent 19b58fd commit 79a7585
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { default as default2 } from "../components/pages/_page.svelte-7619f75c.js";
import { default as default2 } from "../components/pages/_page.svelte-e054562e.js";
export {
default2 as component
};
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function create_fragment$1(ctx) {
l(nodes) {
section = claim_element(nodes, "SECTION", { class: true });
var section_nodes = children(section);
a = claim_element(section_nodes, "A", { href: true, id: true });
a = claim_element(section_nodes, "A", { href: true });
var a_nodes = children(a);
h1 = claim_element(a_nodes, "H1", { class: true });
var h1_nodes = children(h1);
Expand Down Expand Up @@ -84,7 +84,6 @@ function create_fragment$1(ctx) {
/*href*/
ctx[2]
);
attr(a, "id", "title");
attr(div, "class", "w-full flex flex-wrap justify-center md:justify-start items-center gap-4");
attr(section, "class", section_class_value = "w-full min-h-min p-10 " + /*background*/
ctx[3]);
Expand Down Expand Up @@ -177,7 +176,7 @@ function create_fragment$1(ctx) {
}
function instance$1($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
let { title = "", icon = "", href = "", background = "" } = $$props;
let { title = "", icon = "", href = "https://app.worldzen.it", background = "" } = $$props;
$$self.$$set = ($$props2) => {
if ("title" in $$props2)
$$invalidate(0, title = $$props2.title);
Expand Down Expand Up @@ -763,6 +762,8 @@ function create_fragment(ctx) {
let source0_src_value;
let source1;
let source1_src_value;
let track;
let track_src_value;
let t0;
let div3;
let div2;
Expand Down Expand Up @@ -839,6 +840,7 @@ function create_fragment(ctx) {
video = element("video");
source0 = element("source");
source1 = element("source");
track = element("track");
t0 = space();
div3 = element("div");
div2 = element("div");
Expand Down Expand Up @@ -874,6 +876,12 @@ function create_fragment(ctx) {
var video_nodes = children(video);
source0 = claim_element(video_nodes, "SOURCE", { src: true, type: true });
source1 = claim_element(video_nodes, "SOURCE", { src: true, type: true });
track = claim_element(video_nodes, "TRACK", {
src: true,
kind: true,
srclang: true,
label: true
});
video_nodes.forEach(detach);
t0 = claim_space(main_nodes);
div3 = claim_element(main_nodes, "DIV", { class: true });
Expand Down Expand Up @@ -939,6 +947,11 @@ function create_fragment(ctx) {
if (!src_url_equal(source1.src, source1_src_value = "/background.webm"))
attr(source1, "src", source1_src_value);
attr(source1, "type", "video/webm");
if (!src_url_equal(track.src, track_src_value = "captions_en.vtt"))
attr(track, "src", track_src_value);
attr(track, "kind", "captions");
attr(track, "srclang", "en");
attr(track, "label", "english_captions");
video.autoplay = true;
video.muted = true;
video.loop = true;
Expand Down Expand Up @@ -976,6 +989,7 @@ function create_fragment(ctx) {
append_hydration(main, video);
append_hydration(video, source0);
append_hydration(video, source1);
append_hydration(video, track);
append_hydration(main, t0);
append_hydration(main, div3);
append_hydration(div3, div2);
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-eedf93b1.js"), true ? ["./chunks\\0-eedf93b1.js","./chunks\\_layout-324900b4.js","./components\\pages\\_layout.svelte-c7778512.js","./chunks\\index-2f3863e0.js","./assets\\_layout-cd9e057d.css"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/1-a0913cfa.js"), true ? ["./chunks\\1-a0913cfa.js","./components\\error.svelte-8a09f666.js","./chunks\\index-2f3863e0.js","./chunks\\singletons-95c5733a.js"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/2-0197b991.js"), true ? ["./chunks\\2-0197b991.js","./components\\pages\\_page.svelte-7619f75c.js","./chunks\\index-2f3863e0.js","./assets\\_page-6123fc05.css"] : void 0, import.meta.url)
() => __vitePreload(() => import("./chunks/2-ff2d4f12.js"), true ? ["./chunks\\2-ff2d4f12.js","./components\\pages\\_page.svelte-e054562e.js","./chunks\\index-2f3863e0.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":"1681064007956"}
{"version":"1681065308981"}
Empty file added docs/captions_en.vtt
Empty file.
29 changes: 12 additions & 17 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@
<meta http-equiv="content-security-policy" content="">
<link href="./_app/immutable/assets/_layout-cd9e057d.css" rel="stylesheet">
<link href="./_app/immutable/assets/_page-6123fc05.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/start-15fee3f5.js">
<link rel="modulepreload" href="./_app/immutable/start-b4cedbff.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index-2f3863e0.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons-95c5733a.js">
<link rel="modulepreload" href="./_app/immutable/components/pages/_layout.svelte-c7778512.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-7619f75c.js">
<link rel="modulepreload" href="./_app/immutable/components/pages/_page.svelte-e054562e.js">
</head>

<body data-sveltekit-preload-data="hover">
<div style="display: contents">


<main class="relative w-full h-screen bg-black"><video autoplay muted loop id="background" class="w-full h-full svelte-8fii8a" playsinline><source src="/background.mp4" type="video/mp4"><source src="/background.webm" type="video/webm"></video>
<main class="relative w-full h-screen bg-black"><video autoplay muted loop id="background" class="w-full h-full svelte-8fii8a" playsinline><source src="/background.mp4" type="video/mp4"><source src="/background.webm" type="video/webm"><track src="captions_en.vtt" kind="captions" srclang="en" label="english_captions"></video>

<div class="absolute top-0 w-full h-full grid place-items-center bg-gradient-to-b from-black/60 to-black/80"><div class="p-10"><a href="https://app.worldzen.it" class="svelte-8fii8a"><img src="worldzen.svg" alt="World Zen" class="svelte-8fii8a"></a>
<div class="w-full flex justify-between"><div class="flex items-center gap-2 sm:gap-5"><a href="https://youtube.com/@ASDWorldZen" target="_blank" rel="noreferrer" class="svelte-8fii8a"><img src="youtube.webp" alt="YouTube" class="sm:h-14 md:h-20 drop-shadow-2xl svelte-8fii8a" height="32">
Expand All @@ -82,14 +82,14 @@
<a href="tel:+393932214993" class="text-2xl sm:text-3xl md:text-6xl font-extrabold svelte-8fii8a">3932214993
</a></div></div></div></main>

<section class="w-full min-h-min p-10 bg-gradient-to-tr from-black to-red-900"><a href="" id="title"><h1 class="text-5xl mb-10 font-bold">Corsi
<section class="w-full min-h-min p-10 bg-gradient-to-tr from-black to-red-900"><a href="https://app.worldzen.it"><h1 class="text-5xl mb-10 font-bold">Corsi
<span class="material-symbols-outlined text-5xl relative top-2">sports_martial_arts</span></h1></a>
<div class="w-full flex flex-wrap justify-center md:justify-start items-center gap-4"><img src="muay-thai-lethwei.webp" alt="World Zen" class="max-h-screen md:max-h-[70vh] svelte-8fii8a">
<img src="worldzen.webp" alt="World Zen" class="max-h-screen md:max-h-[70vh] svelte-8fii8a">
<img src="m13k.webp" alt="M13K" class="max-h-screen md:max-h-[70vh] svelte-8fii8a">
<img src="insta.webp" alt="Instagram" class="max-h-screen md:max-h-[70vh] svelte-8fii8a"></div></section>

<section class="w-full min-h-min p-10 bg-gradient-to-br from-black to-red-900"><a href="" id="title"><h1 class="text-5xl mb-10 font-bold">Contatti
<section class="w-full min-h-min p-10 bg-gradient-to-br from-black to-red-900"><a href="https://app.worldzen.it"><h1 class="text-5xl mb-10 font-bold">Contatti
<span class="material-symbols-outlined text-5xl relative top-2">call</span></h1></a>
<div class="w-full flex flex-wrap justify-center md:justify-start items-center gap-4"><div class="flex flex-col"><h1 class="text-4xl font-bold mb-3">Taekwon-Do</h1>
<span class="flex gap-2 text-3xl"><h2 class="text-3xl font-bold">Sabum <i>Marcelo Valente </i>:</h2>
Expand All @@ -112,32 +112,27 @@ <h2 class="text-3xl font-bold">Kru<i>Bryan Carfagna </i>:</h2>

<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9406040528414499" data-ad-slot="8074776384" data-ad-format="auto" data-full-width-responsive="true"></ins>

<section class="w-full min-h-min p-10 bg-gradient-to-tr from-black to-red-900"><a href="" id="title"><h1 class="text-5xl mb-10 font-bold">Dove trovarci?
<section class="w-full min-h-min p-10 bg-gradient-to-tr from-black to-red-900"><a href="https://app.worldzen.it"><h1 class="text-5xl mb-10 font-bold">Dove trovarci?
<span class="material-symbols-outlined text-5xl relative top-2">pin_drop</span></h1></a>
<div class="w-full flex flex-wrap justify-center md:justify-start items-center gap-4"><iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1482.8276627044584!2d12.093015358279207!3d41.9862094885059!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x132f55f7f522e8f1%3A0xad7e3e210563e7b5!2sASD%20World%20Zen!5e0!3m2!1sen!2sit!4v1676199409781!5m2!1sen!2sit" class="w-full md:w-[48%] h-[50vh] svelte-8fii8a" style="border:0;" loading="lazy" referrerpolicy="no-referrer-when-downgrade" title="World Zen Cerveteri"></iframe>
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2966.6080530014383!2d12.074612215801183!3d41.96575306790258!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x132f557ac78afc8b%3A0x3fb0019c18fedb81!2sASD%20Bad%20Boys!5e0!3m2!1sen!2sit!4v1676199434829!5m2!1sen!2sit" class="w-full md:w-[48%] h-[50vh] svelte-8fii8a" style="border:0;" loading="lazy" referrerpolicy="no-referrer-when-downgrade" title="World Zen Ladispoli"></iframe></div></section>

<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
<section class="w-full min-h-min p-10 bg-gradient-to-br from-black to-red-900"><a href="https://app.worldzen.it"><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">
<img src="app-2.webp" alt="App 2" class="h-[70vh] svelte-8fii8a"></div></section>





</div></section>
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9406040528414499" data-ad-slot="5257041353" data-ad-format="auto" data-full-width-responsive="true"></ins>


<script type="module" data-sveltekit-hydrate="162x31j">
import { start } from "./_app/immutable/start-15fee3f5.js";
<script type="module" data-sveltekit-hydrate="a3goeb">
import { start } from "./_app/immutable/start-b4cedbff.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="162x31j"]').parentNode,
version: "1681064007956",
target: document.querySelector('[data-sveltekit-hydrate="a3goeb"]').parentNode,
version: "1681065308981",
hydrate: {
node_ids: [0, 2],
data: [null,null],
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Section.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
export let title: string = "",
icon: string = "",
href: string = "",
href: string = "https://app.worldzen.it",
background: string = "";
</script>

<section class="w-full min-h-min p-10 {background}">
<a {href} id="title">
<a {href}>
<h1 class="text-5xl mb-10 font-bold">
{title}
<span class="material-symbols-outlined text-5xl relative top-2">
Expand Down
13 changes: 7 additions & 6 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
>
<source src="/background.mp4" type="video/mp4" />
<source src="/background.webm" type="video/webm" />
<track
src="captions_en.vtt"
kind="captions"
srclang="en"
label="english_captions"
/>
</video>

<div
Expand Down Expand Up @@ -174,13 +180,8 @@
>
<img src="app-1.webp" alt="App 1" class="h-[70vh]" />
<img src="app-2.webp" alt="App 2" class="h-[70vh]" />

<!-- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9406040528414499" crossorigin="anonymous"></script> -->
<!-- app -->
<!-- <script> -->
<!-- (adsbygoogle = window.adsbygoogle || []).push({}); -->
<!-- </script> -->
</Section>

<ins
class="adsbygoogle"
style="display:block"
Expand Down
Empty file added static/captions_en.vtt
Empty file.

0 comments on commit 79a7585

Please sign in to comment.