Skip to content

Commit 2c11918

Browse files
committed
fix: Rename ambiguous color names in plugin card
1 parent d205486 commit 2c11918

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

src/components/Plugins/PluginCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type PluginCardProps = {
55
plugin: Plugin;
66
}
77
export function PluginCard({ plugin }: PluginCardProps) {
8-
return <section className="border gap-4 flex flex-col max-w-[314px] hover:scale-[1.01] p-4 pt-6 m-auto w-full border-[#27272A] rounded-md min-h-[300px]">
8+
return <section className="border gap-4 flex flex-col max-w-[314px] hover:scale-[1.01] p-4 pt-6 m-auto w-full border-card-border rounded-md h-[300px]">
99
<div className="flex-1 flex flex-col gap-4">
1010
<div>
1111
<div>
@@ -27,7 +27,7 @@ export function PluginCard({ plugin }: PluginCardProps) {
2727
Read more
2828
</button>
2929

30-
<button className="bg-[#6d28d9] text-[12px] flex justify-center items-center gap-1 px-4 pt-[6px] pb-[7px] rounded-md text-white"><span>
30+
<button className="bg-brand-purple text-[12px] flex justify-center items-center gap-1 px-4 pt-[6px] pb-[7px] rounded-md text-white"><span>
3131
View in NPM
3232
</span>
3333
<ExternalLink className="w-4" /></button>

src/pages/LoginProcess.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const LoginProcessPage = () => {
1010
const { setUserData, setIsLoggedIn } = useAuth();
1111
const navigate = useNavigate();
1212
const location = useLocation();
13-
const [gracetime, setgracetime] = useState(false)
13+
const [gracetime, setgracetime] = useState(false)
1414

1515
// Retrieve provider and key from query params to be used for getting user data
1616
const queryParams = new URLSearchParams(location.search);
@@ -28,26 +28,26 @@ const LoginProcessPage = () => {
2828
setUserData(data);
2929
setIsLoggedIn(true);
3030
const redirectUri = localStorage.getItem('login_redirect_uri');
31-
if(gracetime){
32-
//keep waiting until gracetime ends
33-
return;
34-
}
31+
if(gracetime){
32+
//keep waiting until gracetime ends
33+
return;
34+
}
3535
if (redirectUri) {
3636
window.location.href = redirectUri;
3737
} else {
3838
navigate('/themes');
3939
}
4040
}
4141
}, [loading, error, data, gracetime]);
42-
useEffect(()=> {
43-
if(loading){
44-
setgracetime(true)
45-
setTimeout(() => {
46-
//allow the spinner to remove from render once the gracetime elapses
47-
setgracetime(false)
48-
}, SiteConfig.loginSpinnerGraceTime);
49-
}
50-
}, [loading])
42+
useEffect(()=> {
43+
if(loading){
44+
setgracetime(true)
45+
setTimeout(() => {
46+
//allow the spinner to remove from render once the gracetime elapses
47+
setgracetime(false)
48+
}, SiteConfig.loginSpinnerGraceTime);
49+
}
50+
}, [loading])
5151
return (
5252
<div className="h-screen w-full bg-black flex justify-center items-center">
5353
{(loading || gracetime) && <LoadingSpinner />}

src/pages/Plugins.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Plugins: React.FC = () => {
2727
return <PluginCard key={plugin.id} plugin={plugin} />
2828
})}
2929
</div>
30-
{!isLoading && error && <h1 className='text-white text-lg flex items-center justify-center '>{error}</h1>
30+
{!isLoading && error && <h1 className='text-white text-lg flex items-center justify-center '>{error}</h1>
3131
}
3232
{
3333
!error && !isLoading && plugins.length == 0 &&

tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default {
5555
'black': '#000000',
5656
'white': '#ffffff',
5757
'slate-400': '#94a3b8',
58-
'slate-500': '#64748b'
58+
'slate-500': '#64748b',
59+
'card-border': '#27272A'
5960
},
6061
keyframes: {
6162
wiggle: {

0 commit comments

Comments
 (0)