1
0
Fork 0
polaris-task-force/src/components/frontend/PayloadButtons.tsx
Z8MB1E dd6bcd30dc feat: switch to Bun, add fonts and styling, update components and UI, add basic front-end
- Added Google Fonts import for `Geist` and `Geist Mono` to `styles.css`.
- Aligned, cleaned styling variables and properties consistently.
- Updated `seedUsers.ts` to include a developer role.
- Introduced `bun.lock` file for dependency management.
2025-12-16 23:26:52 -05:00

26 lines
898 B
TypeScript

import config from "@/payload.config";
export const PayloadButtons = async () => {
const payloadConfig = await config;
return (
<div className="fixed bottom-0 w-fit flex flex-row items-center gap-3 bg-accent/50 justify-center p-3 left-1/2 -translate-x-1/2 rounded-t border border-accent border-b-0">
<a
className="bg-background text-white border py-1 px-2 rounded text-sm font-bold hover:bg-black hover:border-white/50"
href={payloadConfig.routes.admin}
rel="noopener noreferrer"
target="_blank"
>
Go to admin panel
</a>
<a
className="bg-background text-white border border-accent py-1 px-2 rounded text-sm hover:bg-black hover:border-white/50"
href="https://payloadcms.com/docs"
rel="noopener noreferrer"
target="_blank"
>
Documentation (Payload)
</a>
</div>
);
};