Refactor layout.tsx to include new header buttons and SVG icons for improved UI
This commit is contained in:
31
src/app/BadgeButton.tsx
Normal file
31
src/app/BadgeButton.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user