From 84839c8bc98f395cd39e46e2cf811cc674383896 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 7 Mar 2023 18:35:16 +0000 Subject: [PATCH] Updated the style of the buttons --- src/constants/buttonStyles.tsx | 4 ++++ src/pages/exam.tsx | 7 +++---- src/pages/index.tsx | 4 +++- 3 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 src/constants/buttonStyles.tsx 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() {
- -