From 5977a25f3232f17dd1205445749951fb3077df15 Mon Sep 17 00:00:00 2001 From: e-for-eshaan Date: Wed, 13 Dec 2023 07:13:02 +0530 Subject: [PATCH] fixed the head tag for the app --- src/pages/_app.tsx | 41 ---------------- src/pages/index.tsx | 117 ++++++++++++++++++++++++++++++-------------- 2 files changed, 80 insertions(+), 78 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index d09b3e5..ff16697 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -5,7 +5,6 @@ import { AppStateProvider } from '@/contexts/AppContext'; import { AppLoadingStateWrapper } from '@/components/AppLoadingStateWrapper'; import { Toaster } from 'react-hot-toast'; import { inter } from '@/styles/fonts'; -import Head from 'next/head'; import { useRouter } from 'next/router'; import mixpanel from 'mixpanel-browser'; import { useEffect } from 'react'; @@ -71,46 +70,6 @@ export default function App({ return ( <> - - {/* Favicon */} - - - Unwrapped by Middleware - - - - - - - - - - {/* Other meta tags */} - - - - {/* Twitter meta tags */} - - - - - -
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 18c97df..a537a12 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -10,6 +10,7 @@ import { TrustNotice } from '@/components/TrustNotice'; import { ThrownCards } from '@/components/ThrownCards'; import { Description } from '@/components/Description'; import { AuthActions } from '@/components/AuthActions'; +import Head from 'next/head'; const PopDevsMasonry = dynamic(() => import('@/components/PopDevsMasonry').then((m) => m.PopDevsMasonry) @@ -35,42 +36,84 @@ export default function Home() { }, []); return ( -
- - - -
- - UNWRAPPED - - - 2023 - - - -
-
- -
-
- - - - -
+ <> + + {/* Favicon */} + + + Unwrapped by Middleware + + + + + + + + + + {/* Other meta tags */} + + + + {/* Twitter meta tags */} + + + + + + +
+ + + +
+ + UNWRAPPED + + + 2023 + + + +
+
+ +
+
+ + + + +
+ ); }