Updated the style of the buttons
This commit is contained in:
@@ -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<Module[]>([]);
|
||||
@@ -105,15 +106,13 @@ export default function Home() {
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-full flex justify-between">
|
||||
<button
|
||||
onClick={() => router.push("/")}
|
||||
className="btn btn-wide bg-red-500 bg-opacity-50 hover:bg-opacity-100 hover:bg-red-500 border-red-500 border-2 hover:border-red-500 disabled:text-white gap-4 relative text-white">
|
||||
<button onClick={() => router.push("/")} className={clsx("btn btn-wide gap-4 relative text-white", errorButtonStyle)}>
|
||||
<div className="absolute left-4">
|
||||
<Icon path={mdiArrowLeft} color="white" size={1} />
|
||||
</div>
|
||||
Back
|
||||
</button>
|
||||
<button className="btn btn-wide bg-blue-500 bg-opacity-50 hover:bg-opacity-100 hover:bg-blue-500 border-blue-500 border-2 hover:border-blue-500 gap-4 relative text-white">
|
||||
<button className={clsx("btn btn-wide gap-4 relative text-white", infoButtonStyle)}>
|
||||
Start
|
||||
<div className="absolute right-4">
|
||||
<Icon path={mdiArrowRight} color="white" size={1} />
|
||||
|
||||
Reference in New Issue
Block a user