2022-12-15 20:23:34 +00:00
|
|
|
import PageFooter from './footer'
|
|
|
|
import PageNavbar from './navbar'
|
2022-12-03 20:02:13 +00:00
|
|
|
import Script from 'next/script'
|
2022-12-15 20:23:34 +00:00
|
|
|
import { Page, Main } from './styles/generic'
|
2022-12-14 18:35:27 +00:00
|
|
|
|
2022-12-03 20:02:13 +00:00
|
|
|
|
|
|
|
const Layout = ({ children }: { children: React.ReactNode }) => {
|
|
|
|
return (
|
2022-12-14 18:35:27 +00:00
|
|
|
<Page>
|
2022-12-16 22:13:11 +00:00
|
|
|
<Script id="matomo_analytics"
|
|
|
|
defer src='https://static.cloudflareinsights.com/beacon.min.js'
|
|
|
|
data-cf-beacon='{"token": "826fc083aa86417890c0ceb3e0a597fa"}'>
|
|
|
|
</Script>
|
2022-12-14 18:35:27 +00:00
|
|
|
<Script id="matomo_analytics">
|
|
|
|
{`
|
|
|
|
var _paq = window._paq = window._paq || [];
|
|
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
|
|
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
|
|
|
|
_paq.push(["setCookieDomain", "www.neshweb.net"]);
|
|
|
|
_paq.push(["disableCookies"]);
|
|
|
|
_paq.push(['trackPageView']);
|
|
|
|
_paq.push(['enableLinkTracking']);
|
|
|
|
(function() {
|
|
|
|
var u="//tracking.neshweb.net/";
|
|
|
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
|
|
|
_paq.push(['setSiteId', '2']);
|
|
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
|
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
|
|
|
})();
|
|
|
|
`}
|
2022-12-03 20:02:13 +00:00
|
|
|
</Script>
|
2022-12-14 18:35:27 +00:00
|
|
|
|
2022-12-15 20:23:34 +00:00
|
|
|
<PageNavbar />
|
|
|
|
<Main>
|
2022-12-03 20:02:13 +00:00
|
|
|
{children}
|
2022-12-15 20:23:34 +00:00
|
|
|
</Main>
|
|
|
|
<PageFooter />
|
2022-12-14 18:35:27 +00:00
|
|
|
</Page>
|
2022-12-03 20:02:13 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Layout;
|