summaryrefslogtreecommitdiff
path: root/src/layouts/Layout.astro
blob: abc2200723c672a7631cee17289c754dbfbcc867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
---
import '~/assets/styles/tailwind.css';

import { I18N } from 'astrowind:config';

import CommonMeta from '~/components/common/CommonMeta.astro';
import Favicons from '~/components/Favicons.astro';
import CustomStyles from '~/components/CustomStyles.astro';
import ApplyColorMode from '~/components/common/ApplyColorMode.astro';
import Metadata from '~/components/common/Metadata.astro';
import SiteVerification from '~/components/common/SiteVerification.astro';
import Analytics from '~/components/common/Analytics.astro';
import BasicScripts from '~/components/common/BasicScripts.astro';

// Comment the line below to disable View Transitions
import { ClientRouter } from 'astro:transitions';

import type { MetaData as MetaDataType } from '~/types';

export interface Props {
  metadata?: MetaDataType;
}

const { metadata = {} } = Astro.props;
const { language, textDirection } = I18N;
---

<!doctype html>
<html lang={language} dir={textDirection} class="2xl:text-[20px]">
  <head>
    <CommonMeta />
    <Favicons />
    <CustomStyles />
    <ApplyColorMode />
    <Metadata {...metadata} />
    <SiteVerification />
    <Analytics />

    <!-- Plausible Analytics -->
    <script defer data-domain="customworks.pl" src="https://analytics.craftknight.com/js/script.js"></script>

    <!-- LocalBusiness JSON-LD -->
    <script
      type="application/ld+json"
      set:html={JSON.stringify({
        '@context': 'https://schema.org',
        '@type': 'AutoRepair',
        name: 'CustomWorks',
        description:
          'Profesjonalny detailing, wrapping i tuning samochodowy w Bydgoszczy. Renowacja lakieru, folie PPF, powłoki ceramiczne, zmiana koloru folią.',
        url: 'https://www.customworks.pl',
        telephone: '+48790209770',
        address: {
          '@type': 'PostalAddress',
          addressLocality: 'Bydgoszcz',
          addressRegion: 'kujawsko-pomorskie',
          addressCountry: 'PL',
        },
        geo: {
          '@type': 'GeoCoordinates',
          latitude: 53.13105,
          longitude: 17.93132,
        },
        sameAs: ['https://www.instagram.com/damian_detailer'],
        priceRange: '$$',
        areaServed: {
          '@type': 'City',
          name: 'Bydgoszcz',
        },
        hasOfferCatalog: {
          '@type': 'OfferCatalog',
          name: 'Usługi detailingowe',
          itemListElement: [
            {
              '@type': 'Offer',
              itemOffered: {
                '@type': 'Service',
                name: 'Detailing samochodowy Bydgoszcz',
                description: 'Renowacja lakieru, detailing wnętrz, powłoki ceramiczne i ochronne',
              },
            },
            {
              '@type': 'Offer',
              itemOffered: {
                '@type': 'Service',
                name: 'Car Wrapping Bydgoszcz',
                description: 'Zmiana koloru folią, oklejanie samochodów, folie PPF',
              },
            },
            {
              '@type': 'Offer',
              itemOffered: {
                '@type': 'Service',
                name: 'Tuning wizualny Bydgoszcz',
                description: 'Stylizacja zewnętrzna i wewnętrzna samochodu',
              },
            },
          ],
        },
      })}
    />

    <!-- Comment the line below to disable View Transitions -->
    <ClientRouter fallback="swap" />
  </head>

  <body class="antialiased text-default bg-page tracking-tight">
    <slot />

    <BasicScripts />
  </body>
</html>