Skip to content

Commit d826478

Browse files
doble196claude
andcommitted
feat: add "Powered by GitHat" footer to all CLI templates
Every scaffolded app now includes a small footer linking back to githat.io — creating SEO backlinks from every deployed customer app. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9cbf817 commit d826478

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

templates/fullstack/apps-web-nextjs/app/layout.tsx.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ export default function RootLayout({ children }{{#if typescript}}: { children: R
2020
}}>
2121
{children}
2222
</GitHatProvider>
23+
<footer style=\{{ textAlign: 'center', padding: '1rem 0', fontSize: '0.75rem', color: '#52525b' }}>
24+
<a href="https://githat.io" target="_blank" rel="noopener noreferrer" style=\{{ color: '#7c3aed', textDecoration: 'none' }}>
25+
Powered by GitHat
26+
</a>
27+
</footer>
2328
</body>
2429
</html>
2530
);

templates/nextjs/app/layout.tsx.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ export default function RootLayout({ children }{{#if typescript}}: { children: R
2727
}}>
2828
{children}
2929
</GitHatProvider>
30+
<footer style=\{{ textAlign: 'center', padding: '1rem 0', fontSize: '0.75rem', color: '#52525b' }}>
31+
<a href="https://githat.io" target="_blank" rel="noopener noreferrer" style=\{{ color: '#7c3aed', textDecoration: 'none' }}>
32+
Powered by GitHat
33+
</a>
34+
</footer>
3035
</body>
3136
</html>
3237
);

templates/react-vite/src/App.tsx.hbs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,27 @@ function NotFound() {
2727

2828
export default function App() {
2929
return (
30-
<Routes>
31-
<Route path="/" element={<Home />} />
32-
<Route path="/sign-in" element={<SignIn />} />
33-
<Route path="/sign-up" element={<SignUp />} />
30+
<>
31+
<Routes>
32+
<Route path="/" element={<Home />} />
33+
<Route path="/sign-in" element={<SignIn />} />
34+
<Route path="/sign-up" element={<SignUp />} />
3435
{{#if includeForgotPassword}}
35-
<Route path="/forgot-password" element={<ForgotPassword />} />
36+
<Route path="/forgot-password" element={<ForgotPassword />} />
3637
{{/if}}
3738
{{#if includeEmailVerification}}
38-
<Route path="/verify-email" element={<VerifyEmail />} />
39+
<Route path="/verify-email" element={<VerifyEmail />} />
3940
{{/if}}
4041
{{#if includeDashboard}}
41-
<Route path="/dashboard/*" element={<ProtectedRoute><Dashboard /></ProtectedRoute>} />
42+
<Route path="/dashboard/*" element={<ProtectedRoute><Dashboard /></ProtectedRoute>} />
4243
{{/if}}
43-
<Route path="*" element={<NotFound />} />
44-
</Routes>
44+
<Route path="*" element={<NotFound />} />
45+
</Routes>
46+
<footer style=\{{ textAlign: 'center', padding: '1rem 0', fontSize: '0.75rem', color: '#52525b' }}>
47+
<a href="https://githat.io" target="_blank" rel="noopener noreferrer" style=\{{ color: '#7c3aed', textDecoration: 'none' }}>
48+
Powered by GitHat
49+
</a>
50+
</footer>
51+
</>
4552
);
4653
}

0 commit comments

Comments
 (0)