Articles section of the main page

This commit is contained in:
= 2024-12-06 00:37:52 +01:00
parent f77b96db25
commit 9562eb98dc
5 changed files with 101 additions and 27 deletions

View file

@ -2,16 +2,17 @@ import { ReactNode, MouseEventHandler } from 'react';
interface ButtonProps {
onClick: MouseEventHandler<HTMLButtonElement>;
color: 'primary' | 'secondary';
children: ReactNode;
}
export default function Button({ onClick, children }: ButtonProps) {
export default function Button({ onClick, color, children }: ButtonProps) {
return (
<button style={{
backgroundColor: 'var(--color-lightblue)',
backgroundColor: color === 'primary' ? 'var(--color-yellow)' : 'var(--color-darkblue)',
borderRadius: '8px',
borderWidth: '0',
color: 'var(--color-darkblue)',
color: color === 'primary' ? 'var(--color-black)' : 'var(--color-white)',
cursor: 'pointer',
display: 'inline-block',
fontFamily: '"Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif',