Skip to content

Commit 7c00b77

Browse files
committed
refactor: remove unused components and clean up codebase
1 parent 4f69aa6 commit 7c00b77

File tree

10 files changed

+37
-1128
lines changed

10 files changed

+37
-1128
lines changed

app/api/subscribe/route.ts

-21
This file was deleted.

app/layout.tsx

+28
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { Metadata } from "next";
44
import Header from "@/components/Header";
55
import Footer from "@/components/Footer";
66
import ArticleContextProvider from "@/context/ArticleContext";
7+
import Script from 'next/script';
78

89
export const metadata: Metadata = {
910
title: "L.A.P Docs",
@@ -15,14 +16,41 @@ export default function RootLayout({
1516
}: {
1617
children: React.ReactNode;
1718
}) {
19+
const GA_TRACKING_ID = process.env.MEASURING_ID || "";
20+
1821
return (
22+
1923
<html lang="en" className="scroll-smooth">
24+
2025
<head>
2126
<link
2227
rel="icon"
2328
href="/logos/LAP-Logo-Color.png"
2429
type="image/x-icon"
2530
/>
31+
{/* Google Analytics */}
32+
{GA_TRACKING_ID && (
33+
<>
34+
<Script
35+
src={`https://www.googletagmanager.com/gtag/js?id=${GA_TRACKING_ID}`}
36+
strategy="afterInteractive"
37+
/>
38+
<Script
39+
id="google-analytics"
40+
strategy="afterInteractive"
41+
dangerouslySetInnerHTML={{
42+
__html: `
43+
window.dataLayer = window.dataLayer || [];
44+
function gtag(){dataLayer.push(arguments);}
45+
gtag('js', new Date());
46+
gtag('config', '${GA_TRACKING_ID}', {
47+
page_path: window.location.pathname,
48+
});
49+
`,
50+
}}
51+
/>
52+
</>
53+
)}
2654
</head>
2755
<body>
2856
<ArticleContextProvider>

app/sitemap.xml

+7-157
Original file line numberDiff line numberDiff line change
@@ -7,171 +7,21 @@
77
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
88

99

10+
1011
<url>
11-
<loc>https://fyrre-magazine.vercel.app/</loc>
12-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
12+
<loc>https://lap-docs.netlify.app/</loc>
13+
<lastmod>2025-03-09T23:08:23+00:00</lastmod>
1314
<priority>1.00</priority>
1415
</url>
1516
<url>
16-
<loc>https://fyrre-magazine.vercel.app/magazine</loc>
17-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
18-
<priority>0.80</priority>
19-
</url>
20-
<url>
21-
<loc>https://fyrre-magazine.vercel.app/podcasts</loc>
22-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
23-
<priority>0.80</priority>
24-
</url>
25-
<url>
26-
<loc>https://fyrre-magazine.vercel.app/authors</loc>
27-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
28-
<priority>0.80</priority>
29-
</url>
30-
<url>
31-
<loc>https://fyrre-magazine.vercel.app/podcasts/the-problem-of-todays-cultural-development</loc>
32-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
33-
<priority>0.80</priority>
34-
</url>
35-
<url>
36-
<loc>https://fyrre-magazine.vercel.app/podcasts/the-hidden-messages-of-jack-nielson</loc>
37-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
38-
<priority>0.80</priority>
39-
</url>
40-
<url>
41-
<loc>https://fyrre-magazine.vercel.app/podcasts/behind-the-scenes-of-the-street-art-culture</loc>
42-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
43-
<priority>0.80</priority>
44-
</url>
45-
<url>
46-
<loc>https://fyrre-magazine.vercel.app/authors/jakob-gr%C3%B8nberg</loc>
47-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
48-
<priority>0.80</priority>
49-
</url>
50-
<url>
51-
<loc>https://fyrre-magazine.vercel.app/authors/louise-jensen</loc>
52-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
53-
<priority>0.80</priority>
54-
</url>
55-
<url>
56-
<loc>https://fyrre-magazine.vercel.app/authors/anne-henry</loc>
57-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
58-
<priority>0.80</priority>
59-
</url>
60-
<url>
61-
<loc>https://fyrre-magazine.vercel.app/authors/anna-nielsen</loc>
62-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
17+
<loc>https://lap-docs.netlify.app/posts</loc>
18+
<lastmod>2025-03-09T23:08:23+00:00</lastmod>
6319
<priority>0.80</priority>
6420
</url>
6521
<url>
66-
<loc>https://fyrre-magazine.vercel.app/authors/jane-cooper</loc>
67-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
22+
<loc>https://lap-docs.netlify.app/authors</loc>
23+
<lastmod>2025-03-09T23:08:23+00:00</lastmod>
6824
<priority>0.80</priority>
6925
</url>
70-
<url>
71-
<loc>https://fyrre-magazine.vercel.app/authors/cristofer-vaccaro</loc>
72-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
73-
<priority>0.80</priority>
74-
</url>
75-
<url>
76-
<loc>https://fyrre-magazine.vercel.app/podcasts/the-art-of-movement</loc>
77-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
78-
<priority>0.64</priority>
79-
</url>
80-
<url>
81-
<loc>https://fyrre-magazine.vercel.app/podcasts/10-artists-you-should-definitely-know</loc>
82-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
83-
<priority>0.64</priority>
84-
</url>
85-
<url>
86-
<loc>https://fyrre-magazine.vercel.app/magazine/dont-close-your-eyes</loc>
87-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
88-
<priority>0.64</priority>
89-
</url>
90-
<url>
91-
<loc>https://fyrre-magazine.vercel.app/magazine/hope-dies-last</loc>
92-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
93-
<priority>0.64</priority>
94-
</url>
95-
<url>
96-
<loc>https://fyrre-magazine.vercel.app/magazine/the-best-art-museums</loc>
97-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
98-
<priority>0.64</priority>
99-
</url>
100-
<url>
101-
<loc>https://fyrre-magazine.vercel.app/magazine/the-devil-is-the-details</loc>
102-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
103-
<priority>0.64</priority>
104-
</url>
105-
<url>
106-
<loc>https://fyrre-magazine.vercel.app/magazine/an-indestructible-hope</loc>
107-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
108-
<priority>0.64</priority>
109-
</url>
110-
<url>
111-
<loc>https://fyrre-magazine.vercel.app/magazine/street-art-festival</loc>
112-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
113-
<priority>0.64</priority>
114-
</url>
115-
<url>
116-
<loc>https://fyrre-magazine.vercel.app/magazine/through-the-eyes-of-street-artists</loc>
117-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
118-
<priority>0.64</priority>
119-
</url>
120-
<url>
121-
<loc>https://fyrre-magazine.vercel.app/magazine/the-chains-of-our-lives</loc>
122-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
123-
<priority>0.64</priority>
124-
</url>
125-
<url>
126-
<loc>https://fyrre-magazine.vercel.app/magazine/how-are-you-really</loc>
127-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
128-
<priority>0.64</priority>
129-
</url>
130-
<url>
131-
<loc>https://fyrre-magazine.vercel.app/magazine/beauty-of-colors</loc>
132-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
133-
<priority>0.64</priority>
134-
</url>
135-
<url>
136-
<loc>https://fyrre-magazine.vercel.app/magazine/getting-real</loc>
137-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
138-
<priority>0.64</priority>
139-
</url>
140-
<url>
141-
<loc>https://fyrre-magazine.vercel.app/magazine/secret-garden</loc>
142-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
143-
<priority>0.64</priority>
144-
</url>
145-
<url>
146-
<loc>https://fyrre-magazine.vercel.app/magazine/history-of-paper</loc>
147-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
148-
<priority>0.64</priority>
149-
</url>
150-
<url>
151-
<loc>https://fyrre-magazine.vercel.app/magazine/keep-on-smiling</loc>
152-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
153-
<priority>0.64</priority>
154-
</url>
155-
<url>
156-
<loc>https://fyrre-magazine.vercel.app/magazine/colorful-future</loc>
157-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
158-
<priority>0.64</priority>
159-
</url>
160-
<url>
161-
<loc>https://fyrre-magazine.vercel.app/magazine/artists-who-want-to-rise-above</loc>
162-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
163-
<priority>0.64</priority>
164-
</url>
165-
<url>
166-
<loc>https://fyrre-magazine.vercel.app/magazine/only-in-your-heart</loc>
167-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
168-
<priority>0.64</priority>
169-
</url>
170-
<url>
171-
<loc>https://fyrre-magazine.vercel.app/magazine/most-colorful-places</loc>
172-
<lastmod>2023-11-20T12:16:55+00:00</lastmod>
173-
<priority>0.64</priority>
174-
</url>
175-
17626

17727
</urlset>

components/AuthorCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function AuthorCard({ authorData }) {
5858
{socialLinks.map((link, index) => (
5959
<Link
6060
key={index}
61-
href={link.href}
61+
href={link.href as string}
6262
target="_blank"
6363
aria-label={link.ariaLabel}
6464
className="text-white text-2xl hover:text-purple-500 transition ease-in-out duration-300"

components/Hero.tsx

-40
This file was deleted.

0 commit comments

Comments
 (0)