Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/app/(es)/(operations)/comprimir/page.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/app/(es)/(operations)/dividir/page.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/app/(es)/(operations)/extraer/page.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/app/(es)/(operations)/reordenar/page.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/app/(es)/(operations)/unir/page.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion src/app/(es)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { LocaleProvider } from "../../i18n/LocaleProvider";
import { SchemaOrg } from "../../components/SchemaOrg";
import { BreadcrumbSchema } from "../../components/seo/BreadcrumbSchema";

import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared";
import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH, SHARED_TWITTER } from "../../lib/metadata-shared";

export const metadata = {
metadataBase: METADATA_BASE,
Expand Down Expand Up @@ -54,6 +54,7 @@ export const metadata = {
locale: "es_ES",
type: "website",
},
twitter: SHARED_TWITTER,
};

export default async function RootLayout({
Expand Down
5 changes: 4 additions & 1 deletion src/app/de/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import { GaPageViewTracker } from "../../components/analytics/GaPageViewTracker"
import { WebVitalsReporter } from "../../components/analytics/WebVitalsReporter";
import CookieBanner from "../../components/CookieBanner";
import { SchemaOrg } from "../../components/SchemaOrg";
import { BreadcrumbSchema } from "../../components/seo/BreadcrumbSchema";

import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared";
import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH, SHARED_TWITTER } from "../../lib/metadata-shared";

const LOCALE = "de" as const;

Expand Down Expand Up @@ -50,6 +51,7 @@ export const metadata = {
locale: "de_DE",
type: "website",
},
twitter: SHARED_TWITTER,
};

export default function DeLayout({ children }: { children: ReactNode }) {
Expand All @@ -58,6 +60,7 @@ export default function DeLayout({ children }: { children: ReactNode }) {
<head>
<GoogleAnalyticsScripts />
<SchemaOrg />
<BreadcrumbSchema />
</head>
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<LocaleProvider locale={LOCALE}>
Expand Down
5 changes: 4 additions & 1 deletion src/app/en/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import { GaPageViewTracker } from "../../components/analytics/GaPageViewTracker"
import { WebVitalsReporter } from "../../components/analytics/WebVitalsReporter";
import CookieBanner from "../../components/CookieBanner";
import { SchemaOrg } from "../../components/SchemaOrg";
import { BreadcrumbSchema } from "../../components/seo/BreadcrumbSchema";

import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared";
import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH, SHARED_TWITTER } from "../../lib/metadata-shared";

const LOCALE = "en" as const;

Expand Down Expand Up @@ -50,6 +51,7 @@ export const metadata = {
locale: "en_US",
type: "website",
},
twitter: SHARED_TWITTER,
};

export default function EnLayout({ children }: { children: ReactNode }) {
Expand All @@ -58,6 +60,7 @@ export default function EnLayout({ children }: { children: ReactNode }) {
<head>
<GoogleAnalyticsScripts />
<SchemaOrg />
<BreadcrumbSchema />
</head>
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<LocaleProvider locale={LOCALE}>
Expand Down
5 changes: 4 additions & 1 deletion src/app/fr/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import { GaPageViewTracker } from "../../components/analytics/GaPageViewTracker"
import { WebVitalsReporter } from "../../components/analytics/WebVitalsReporter";
import CookieBanner from "../../components/CookieBanner";
import { SchemaOrg } from "../../components/SchemaOrg";
import { BreadcrumbSchema } from "../../components/seo/BreadcrumbSchema";

import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared";
import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH, SHARED_TWITTER } from "../../lib/metadata-shared";

const LOCALE = "fr" as const;

Expand Down Expand Up @@ -50,6 +51,7 @@ export const metadata = {
locale: "fr_FR",
type: "website",
},
twitter: SHARED_TWITTER,
};

export default function FrLayout({ children }: { children: ReactNode }) {
Expand All @@ -58,6 +60,7 @@ export default function FrLayout({ children }: { children: ReactNode }) {
<head>
<GoogleAnalyticsScripts />
<SchemaOrg />
<BreadcrumbSchema />
</head>
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<LocaleProvider locale={LOCALE}>
Expand Down
5 changes: 4 additions & 1 deletion src/app/it/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import { GaPageViewTracker } from "../../components/analytics/GaPageViewTracker"
import { WebVitalsReporter } from "../../components/analytics/WebVitalsReporter";
import CookieBanner from "../../components/CookieBanner";
import { SchemaOrg } from "../../components/SchemaOrg";
import { BreadcrumbSchema } from "../../components/seo/BreadcrumbSchema";

import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared";
import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH, SHARED_TWITTER } from "../../lib/metadata-shared";

const LOCALE = "it" as const;

Expand Down Expand Up @@ -50,6 +51,7 @@ export const metadata = {
locale: "it_IT",
type: "website",
},
twitter: SHARED_TWITTER,
};

export default function ItLayout({ children }: { children: ReactNode }) {
Expand All @@ -58,6 +60,7 @@ export default function ItLayout({ children }: { children: ReactNode }) {
<head>
<GoogleAnalyticsScripts />
<SchemaOrg />
<BreadcrumbSchema />
</head>
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<LocaleProvider locale={LOCALE}>
Expand Down
5 changes: 4 additions & 1 deletion src/app/pt/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import { GaPageViewTracker } from "../../components/analytics/GaPageViewTracker"
import { WebVitalsReporter } from "../../components/analytics/WebVitalsReporter";
import CookieBanner from "../../components/CookieBanner";
import { SchemaOrg } from "../../components/SchemaOrg";
import { BreadcrumbSchema } from "../../components/seo/BreadcrumbSchema";

import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH } from "../../lib/metadata-shared";
import { METADATA_BASE, SHARED_ICONS, SHARED_OPEN_GRAPH, SHARED_TWITTER } from "../../lib/metadata-shared";

const LOCALE = "pt" as const;

Expand Down Expand Up @@ -48,6 +49,7 @@ export const metadata = {
locale: "pt_BR",
type: "website",
},
twitter: SHARED_TWITTER,
};

export default function PtLayout({ children }: { children: ReactNode }) {
Expand All @@ -56,6 +58,7 @@ export default function PtLayout({ children }: { children: ReactNode }) {
<head>
<GoogleAnalyticsScripts />
<SchemaOrg />
<BreadcrumbSchema />
</head>
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
<LocaleProvider locale={LOCALE}>
Expand Down
8 changes: 6 additions & 2 deletions src/components/CookieBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export default function CookieBanner() {
if (typeof window !== 'undefined' && (window as unknown as WindowWithGtag).gtag) {
(window as unknown as WindowWithGtag).gtag('consent', 'update', {
'ad_storage': 'granted',
'analytics_storage': 'granted'
'analytics_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted'
});
}
}
Expand All @@ -39,7 +41,9 @@ export default function CookieBanner() {
if (typeof window !== 'undefined' && (window as unknown as WindowWithGtag).gtag) {
(window as unknown as WindowWithGtag).gtag('consent', 'update', {
'ad_storage': 'granted',
'analytics_storage': 'granted'
'analytics_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted'
});
}
};
Expand Down
4 changes: 3 additions & 1 deletion src/components/analytics/GoogleAnalyticsScripts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function GoogleAnalyticsScripts() {

gtag('consent', 'default', {
'ad_storage': 'denied',
'analytics_storage': 'denied'
'analytics_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
});

gtag('js', new Date());
Expand Down
4 changes: 4 additions & 0 deletions src/lib/metadata-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ export const SHARED_OPEN_GRAPH: Metadata["openGraph"] = {
}
],
};

export const SHARED_TWITTER: Metadata["twitter"] = {
card: "summary_large_image",
};
Loading