@mihilista/aristoclickify
v1.0.3
Published
Aristoclick branding kit — console logo, footer component, and robots.txt helper for Next.js client projects
Downloads
110
Readme
@mihilista/aristoclickify
Aristoclick branding kit for Next.js client projects — console ASCII logo, "Made by Aristoclick" footer link, and robots.txt branding comment.
Install
pnpm add @mihilista/aristoclickifyConsole logo
Prints the Aristoclick ASCII logo to the browser console on page load.
// app/layout.tsx
import { AristoclickConsole } from '@mihilista/aristoclickify';
export default function RootLayout({ children }) {
return (
<html>
<body>
<AristoclickConsole />
{children}
</body>
</html>
);
}The raw function is also available if needed:
import { aristoclick } from '@mihilista/aristoclickify/console';
aristoclick(); // prints logo to consoleFooter link
A "Made by Aristoclick" SVG link with UTM tracking. Pass the client name to populate utm_medium.
// components/footer.tsx
import { MadeByAristoclick } from '@mihilista/aristoclickify/footer';
export function Footer() {
return (
<footer>
<MadeByAristoclick clientName="client-name" />
</footer>
);
}The generated link will be:
https://www.aristoclick.cz?utm_source=website&utm_medium=client-name&utm_campaign=made-by-aristoclickYou can override the base URL with the url prop if needed. The component also accepts className and style props for custom styling.
Robots.txt
Add the ASCII logo as a comment block in your robots.txt.
// app/robots.ts
import { generateRobotsTxt } from '@mihilista/aristoclickify/robots';
export async function GET() {
return new Response(generateRobotsTxt({
sitemapUrl: 'https://example.com/sitemap.xml',
rules: [{ userAgent: '*', allow: '/' }],
}));
}Or use the raw comment string to prepend to your own robots.txt content:
import { ARISTOCLICK_ROBOTS_COMMENT } from '@mihilista/aristoclickify/robots';Exports
| Path | Exports |
|---|---|
| @mihilista/aristoclickify | Everything (barrel) |
| @mihilista/aristoclickify/console | aristoclick(), ARISTOCLICK_LOGO |
| @mihilista/aristoclickify/footer | <MadeByAristoclick> |
| @mihilista/aristoclickify/robots | generateRobotsTxt(), ARISTOCLICK_ROBOTS_COMMENT |
