summaryrefslogtreecommitdiff
path: root/src/layouts/Layout.astro
blob: d2ba6845a3ff3cd0d508b1f78f64c1d2732a73b7 (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
---
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 />
    <script is:inline defer data-domain="gres-tech.com" src="https://analytics.craftknight.com/js/script.js"></script>

    <script is:inline type="application/ld+json" set:html={JSON.stringify({
      "@context": "https://schema.org",
      "@type": "HomeAndConstructionBusiness",
      "name": "Gres-Tech Dawid Kupczyk",
      "url": "https://www.gres-tech.com",
      "email": "grestech.biuro@gmail.com",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "ul. Kolejowa 10",
        "addressLocality": "Rokitki",
        "postalCode": "83-112",
        "addressRegion": "pomorskie",
        "addressCountry": "PL"
      },
      "geo": {
        "@type": "GeoCoordinates",
        "latitude": 54.0467,
        "longitude": 18.7756
      },
      "areaServed": [
        { "@type": "City", "name": "Tczew" },
        { "@type": "City", "name": "Gdańsk" },
        { "@type": "City", "name": "Rokitki" },
        { "@type": "City", "name": "Starogard Gdański" },
        { "@type": "City", "name": "Pelplin" },
        { "@type": "City", "name": "Gniew" },
        { "@type": "City", "name": "Subkowy" }
      ],
      "serviceType": [
        "Układanie płytek",
        "Usługi glazurnicze",
        "Gresy wielkoformatowe",
        "Spieki kwarcowe",
        "Tarasy wentylowane",
        "Hydroizolacje",
        "Fugowanie epoksydowe",
        "Remonty łazienek"
      ],
      "description": "Profesjonalne usługi glazurnicze – układanie płytek, gresów wielkoformatowych, spieków kwarcowych, klinkieru. Tarasy wentylowane, hydroizolacje, remonty łazienek. Tczew, Gdańsk, Rokitki i okolice.",
      "priceRange": "$$",
      "image": "https://www.gres-tech.com/default.png",
      "sameAs": []
    })} />

    <!-- 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>