<script lang="ts">
	import type { PageData } from './$types';
	export let data: PageData;

	// Now you can use data.title, data.content, data.lang, etc.
	import { fade } from 'svelte/transition';
	import Hero from '$lib/components/home/Hero.svelte';
	import Matches from '$lib/components/home/Matches.svelte';
	import Videos from '$lib/components/home/Videos.svelte';
	import News from '$lib/components/home/News.svelte';
	import PressRelease from '$lib/components/home/PressRelease.svelte';
	import Domestic from '$lib/components/home/Domestic.svelte';
	import Gallery from '$lib/components/home/Gallery.svelte';
	import Magazine from '$lib/components/home/Magazine.svelte';

	import { MetaTags } from 'svelte-meta-tags';

	import { inView } from '$lib/config/inView';
	// Update intersection observer action to target the first child
	
</script>

<MetaTags
	title="Afghanistan Cricket Board"
	titleTemplate="%s | ACB"
	description="The Afghanistan Cricket Federation was established in 1995. It was granted affiliate membership by the International Cricket Council (ICC) in 2001 and this year marked the beginning of an incredible journey in the history of sports, and subsequently being granted associate membership of the Asian Cricket Council (ACC) in 2003."
	canonical="https://acb.af/"
	openGraph={{
		type: 'website',
		url: 'https://acb.af',
		title: 'Afghanistan Cricket Board',
		description:
			'The Afghanistan Cricket Federation was established in 1995. It was granted affiliate membership by the International Cricket Council (ICC) in 2001 and this year marked the beginning of an incredible journey in the history of sports, and subsequently being granted associate membership of the Asian Cricket Council (ACC) in 2003.',
		images: [
			{
				url: 'https://cdn.cricket.af/logo-md.png',
				alt: 'Afghanistan Cricket Board',
				width: 800,
				height: 600,
				secureUrl: 'https://cdn.cricket.af/logo-md.png',
				type: 'image/jpeg'
			}
		],

		siteName: 'ACB'
	}}
	twitter={{
		site: 'https://acb.af',
		cardType: 'summary_large_image',
		title: 'Afghanistan Cricket Board',
		description:
			'The Afghanistan Cricket Federation was established in 1995. It was granted affiliate membership by the International Cricket Council (ICC) in 2001 and this year marked the beginning of an incredible journey in the history of sports, and subsequently being granted associate membership of the Asian Cricket Council (ACC) in 2003.',
		image: 'https://cdn.cricket.af/logo-md.png',
		imageAlt: 'Afghanistan Cricket Board'
	}}
	facebook={{
		appId: ''
	}}
/>

<div in:fade={{ duration: 300, delay: 0 }}>
	<!-- Remove or comment out JSON.stringify(data) as it might be too large to display -->
	<!-- {JSON.stringify(data)} -->

		<Hero data={data.home} />

	
		<Matches />

	

		<Videos />


		<News />


		<PressRelease />


		<Domestic />

	

		<Gallery />

	

		<Magazine />

		
</div>
