Skip to content

Commit 9191c71

Browse files
committed
feat: switch simpleanalytics for my new baby : Shynet
* Shynet it's the most powerfull analytics sofware which respect the privacy data... nah it's just free/open source tool * increase padding on footer due to blurBottom, the links was hide
1 parent f3bd526 commit 9191c71

File tree

6 files changed

+34
-23
lines changed

6 files changed

+34
-23
lines changed

next.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4+
images: {
5+
domains: ["analytics.rao-nagos.pf"],
6+
},
47
}
58

69
module.exports = nextConfig

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raonagos",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"private": true,
55
"scripts": {
66
"dev": "node server/server.mjs",

pages/_document.tsx

-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { Html, Head, Main, NextScript } from "next/document"
22

3-
import type { CSSProperties } from "react"
4-
53
const Document = () => {
64
return (
75
<Html lang="fr">
@@ -16,28 +14,10 @@ const Document = () => {
1614
</Head>
1715
<body>
1816
<Main />
19-
<BlurBottomPage />
2017
<NextScript />
2118
</body>
2219
</Html>
2320
)
2421
}
2522

26-
const BlurBottomPage = () => {
27-
const style: CSSProperties = {
28-
width: "100%",
29-
height: "4%",
30-
position: "fixed",
31-
bottom: 0,
32-
zIndex: 998,
33-
backdropFilter: "blur(1px)"
34-
}
35-
36-
return (
37-
<>
38-
<div style={style}></div>
39-
</>
40-
)
41-
}
42-
4323
export default Document

pages/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import Head from "next/head"
22
import Script from "next/script"
3+
import Image from "next/image"
34
import { useEffect, useState } from "react"
45
import { siteurl, sitename, fbAppId, description } from "@libs/app"
56
import Organization from "@libs/schema"
7+
import BlurBottom from "@components/blurBottom"
68
import Whoweare from "@components/whoweare"
79
import Whatwedo from "@components/whatwedo"
810
import Prices from "@components/prices"
@@ -63,12 +65,16 @@ const Page: NextPage = () => {
6365
<Prices />
6466
<Details />
6567
<ContactForm />
68+
<BlurBottom />
6669
{showCookies && (
6770
<CookieConsent expires={90} cookieName="rao_nagos_acceptcgu" buttonText="Bien sûr" buttonStyle={{ color: "white", backgroundColor: "#00abf3", borderRadius: "15px" }}>
6871
{"En poursuivant votre navigation, vous acceptez les conditions d'utilisation."}
6972
</CookieConsent>
7073
)}
71-
<Script key="simpleanalytics" src="https://sa.rao-nagos.pf/latest.js" />
74+
<Script id="shynet" src="https://analytics.rao-nagos.pf/ingress/7c202c1e-7850-4318-bb57-0e91fe6d6da4/script.js" />
75+
<noscript>
76+
<Image src="https://analytics.rao-nagos.pf/ingress/7c202c1e-7850-4318-bb57-0e91fe6d6da4/pixel.gif" alt="analytics pixel for rao nagos" width={1} height={1} />
77+
</noscript>
7278
</>
7379
)
7480
}

src/components/blurBottom.tsx

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import type { CSSProperties, FC } from "react"
2+
3+
const BlurBottom: FC = () => {
4+
const style: CSSProperties = {
5+
width: "100%",
6+
height: "4%",
7+
position: "fixed",
8+
bottom: 0,
9+
left: 0,
10+
zIndex: 998,
11+
backdropFilter: "blur(1px)",
12+
}
13+
14+
return (
15+
<>
16+
<div style={style}></div>
17+
</>
18+
)
19+
}
20+
21+
export default BlurBottom

src/components/footer.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Link from "next/link"
44
import { useRouter } from "next/router"
55

66
import type { FC } from "react"
7+
import BlurBottom from "./blurBottom"
78

89
const Footer: FC = () => {
910
const [facebookUrl, setFbURL] = useState(`https://www.facebook.com/raonagos`)
@@ -16,7 +17,7 @@ const Footer: FC = () => {
1617
const match = pathname.match(/^(\/terms|\/privacy)$/)
1718

1819
return (
19-
<footer className={`full-bleed ${match ? "bg-gray-200" : "bg-primary-100 text-white"} py-4 lg:py-12 px-4 lg:px-20`}>
20+
<footer className={`full-bleed ${match ? "bg-gray-200" : "bg-primary-100 text-white"} py-12 px-4 lg:px-20`}>
2021
<div className="flex flex-col justify-evenly lg:flex-row gap-y-8">
2122
<div>
2223
<div className="flex flex-col gap-y-2">

0 commit comments

Comments
 (0)