diff --git a/frontend/src/index.css b/frontend/src/index.css index 99faddc..72e2f4c 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -7,3 +7,7 @@ body::-webkit-scrollbar { display: none; } + +.font-kavoon { + font-family: 'Kavoon', 'serif'; +} diff --git a/frontend/src/library/button.tsx b/frontend/src/library/button.tsx index 319076e..e7f5cb3 100644 --- a/frontend/src/library/button.tsx +++ b/frontend/src/library/button.tsx @@ -5,20 +5,49 @@ // - Customize the shape of the button (rectangle, rounded, circle) // - Handles click events +import React from 'react'; +import '../index.css'; + type ButtonProps = { - onClick: () => void; - children: React.ReactNode; + text: string; + textColor?: string; + backgroundColor?: string; + fontSize?: string; + rounded?: string; + buttonSize?: string; + textStroke?: string; + borderColor?: string; + hoverColor?: string; + hoverScale?: boolean; + px?: string; + py?: string; + onClick?: () => void; }; -function Button({ onClick, children }: ButtonProps) { +const Button: React.FC = ({ + text, + textColor = 'text-white', + backgroundColor = 'bg-lime-500', + fontSize = 'text-lg', + rounded = 'rounded-xl', + buttonSize = 'w-36 h-11', + px = 'px-3', + py = 'py-1', + textStroke, + borderColor = 'border-black', + hoverColor = 'hover:bg-lime-600', + hoverScale = true, + onClick, +}) => { return ( ); -} +}; export default Button; diff --git a/frontend/src/pages/PlayOptions.tsx b/frontend/src/pages/PlayOptions.tsx index ef531b1..c64e079 100644 --- a/frontend/src/pages/PlayOptions.tsx +++ b/frontend/src/pages/PlayOptions.tsx @@ -1,10 +1,10 @@ -import { useState } from 'react'; +import React, { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import Button from '../library/button'; import Heading from '../library/heading'; import '../index.css'; -const PlayOptions = () => { +const PlayOptions: React.FC = () => { const [gameCode, setGameCode] = useState(''); const navigate = useNavigate(); const CreateGame = () => { @@ -36,7 +36,7 @@ const PlayOptions = () => { />
-
+
{ fontStyle="font-serif" />
- +
-
+
{ className="border-2 border-red-600 rounded-lg p-1 mb-4 text-md w-full bg-black text-white" />
- +
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index c0d14e7..5ec8494 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -10,6 +10,11 @@ export default { kavoon: ['Kavoon', 'serif'], }, }, + extend: { + borderWidth: { + '3': '3px', + }, + }, }, plugins: [], }