-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* resource page added with few free resource list * vercel deploy issue fix * card color issue fixed
- Loading branch information
Showing
10 changed files
with
80 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
import { useState, useEffect } from "react"; | ||
const useColorBorderBox = (error = "") => { | ||
let item = error.type; | ||
let borderColor = `py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 px-2 md:px-6 border-l-4 rounded-lg items-start bg-dark/5 dark:bg-white/5 backdrop-blur-[10px] flex flex-col hover:scale-105 duration-300 ${item === "add" | ||
? "border-add" | ||
: item === "commit" | ||
? "border-commit" | ||
: item === "merge" | ||
? "border-merge" | ||
: item === "push" | ||
? "border-push" | ||
: item === "cmd" | ||
? "border-cmd" | ||
: item === "branch" | ||
? "border-branch" | ||
: "border-default" | ||
}` | ||
|
||
const useColorBorderBox = (errorType = "") => { | ||
const [errorTypeColor, setErrorTypeColor] = useState("#7e1aa5"); | ||
|
||
useEffect(() => { | ||
if (errorType == "add") { | ||
return setErrorTypeColor("#4024e0"); | ||
} | ||
if (errorType == "branch") { | ||
return setErrorTypeColor("#099104"); | ||
} | ||
if (errorType == "push") { | ||
return setErrorTypeColor("#8d54e1"); | ||
} | ||
if (errorType == "merge") { | ||
return setErrorTypeColor("#118d7c"); | ||
} | ||
if (errorType == "commit") { | ||
return setErrorTypeColor("#1a5ba5"); | ||
} | ||
return setErrorTypeColor("#7e1aa5"); | ||
}, [errorType]); | ||
|
||
|
||
return { errorTypeColor, setErrorTypeColor }; | ||
return { borderColor } | ||
} | ||
|
||
export default useColorBorderBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters