diff --git a/src/constants/buttonStyles.tsx b/src/constants/buttonStyles.tsx new file mode 100644 index 00000000..337aa39d --- /dev/null +++ b/src/constants/buttonStyles.tsx @@ -0,0 +1,4 @@ +export const infoButtonStyle = + "bg-blue-500 bg-opacity-50 hover:bg-opacity-100 hover:bg-blue-500 border-blue-500 border-2 hover:border-blue-500 text-white"; +export const errorButtonStyle = + "bg-red-500 bg-opacity-50 hover:bg-opacity-100 hover:bg-red-500 border-red-500 border-2 hover:border-red-500 text-white"; diff --git a/src/pages/exam.tsx b/src/pages/exam.tsx index 7f12bf2a..a5e7057e 100644 --- a/src/pages/exam.tsx +++ b/src/pages/exam.tsx @@ -7,6 +7,7 @@ import {useState} from "react"; import {Module} from "@/interfaces"; import clsx from "clsx"; import {useRouter} from "next/router"; +import {errorButtonStyle, infoButtonStyle} from "@/constants/buttonStyles"; export default function Home() { const [selectedModules, setSelectedModules] = useState([]); @@ -105,15 +106,13 @@ export default function Home() {
- -