Skip to content

Instantly share code, notes, and snippets.

View smakosh's full-sized avatar
👨‍💻
Building https://starlink-prices.com

Ismail Ghallou smakosh

👨‍💻
Building https://starlink-prices.com
View GitHub Profile
@smakosh
smakosh / SEO.tsx
Created December 10, 2021 22:41
Next SEO component
import { NextSeo } from 'next-seo';
export interface SeoProps {
url?: string;
title?: string;
description?: string;
cover?: string | null;
}
const SEO = ({ url, title, description, cover }: SeoProps) => {
did:3:kjzl6cwe1jw14adt85e30363whpdxq48lwt1lax9meleqpl8lr64wh3zmnjnhez
@smakosh
smakosh / README.md
Created September 3, 2022 01:42
SEO Next js

Easily implement good SEO in your Next js app using next-seo

@smakosh
smakosh / _app.tsx
Last active September 19, 2022 13:06
Adding Google Analytics to your Next js app
import Error from "next/error";
import Script from "next/script";
import * as gtag from "utils/ga";
import { useEffect } from "react";
import { AppProps } from "next/app";
import { useRouter } from "next/router";
const App = ({ Component, pageProps, err }: AppProps & { err: Error }) => {
const router = useRouter();
@smakosh
smakosh / constants.ts
Created March 16, 2024 22:06
Next.js Offset/limit pagination
export const LIMIT = 10;
export const RANGE = 5;