Refactor layout.tsx to include new header buttons and SVG icons for improved UI

This commit is contained in:
rattatwinko
2025-06-17 12:42:59 +02:00
parent 63a052e718
commit cbfb4c667c
5 changed files with 168 additions and 3 deletions

31
src/app/BadgeButton.tsx Normal file
View File

@@ -0,0 +1,31 @@
"use client";
import React from 'react';
export default function BadgeButton({
label,
color = '#2563eb',
icon,
onClick,
}: {
label: string;
color?: string;
icon: React.ReactNode;
onClick?: () => void;
}) {
return (
<button
onClick={onClick}
className="flex items-center gap-2 h-8 px-5 font-bold tracking-wider uppercase text-white"
style={{
background: color,
borderRadius: '4px',
fontFamily: 'Verdana, Geneva, DejaVu Sans, sans-serif',
fontSize: '0.95rem',
letterSpacing: '0.08em',
}}
>
<span className="flex items-center">{icon}</span>
<span>{label}</span>
</button>
);
}