changed sidebar button color — violet doesn't match color scheme
This commit is contained in:
parent
3987baa11b
commit
244fd7c981
|
@ -156,6 +156,12 @@ export default function Sidebar(props: { className?: string }) {
|
||||||
const mobileNavigationOptions =
|
const mobileNavigationOptions =
|
||||||
user === null ? signedOutMobileNavigation : mobileNavigation
|
user === null ? signedOutMobileNavigation : mobileNavigation
|
||||||
|
|
||||||
|
const gradient =
|
||||||
|
'from-indigo-500 to-blue-500 hover:from-indigo-700 hover:to-blue-700'
|
||||||
|
|
||||||
|
const buttonStyle =
|
||||||
|
'border-w-0 mx-auto mt-4 -ml-1 w-full rounded-md bg-gradient-to-r py-2.5 text-base font-semibold text-white shadow-sm lg:-ml-0'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav aria-label="Sidebar" className={className}>
|
<nav aria-label="Sidebar" className={className}>
|
||||||
<ManifoldLogo className="pb-6" twoLine />
|
<ManifoldLogo className="pb-6" twoLine />
|
||||||
|
@ -194,14 +200,14 @@ export default function Sidebar(props: { className?: string }) {
|
||||||
<div className={'aligncenter flex justify-center'}>
|
<div className={'aligncenter flex justify-center'}>
|
||||||
{user ? (
|
{user ? (
|
||||||
<Link href={'/create'} passHref>
|
<Link href={'/create'} passHref>
|
||||||
<button className="border-w-0 mx-auto mt-4 -ml-1 w-full rounded-md bg-gradient-to-r from-purple-500 via-violet-500 to-indigo-500 py-2.5 text-base font-semibold text-white shadow-sm hover:from-purple-700 hover:via-violet-700 hover:to-indigo-700 lg:-ml-0">
|
<button className={clsx(gradient, buttonStyle)}>
|
||||||
Ask a question
|
Ask a question
|
||||||
</button>
|
</button>
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<button
|
<button
|
||||||
onClick={firebaseLogin}
|
onClick={firebaseLogin}
|
||||||
className="border-w-0 mx-auto mt-4 -ml-1 w-full rounded-md bg-gradient-to-r from-purple-500 via-violet-500 to-indigo-500 py-2.5 text-base font-semibold text-white shadow-sm hover:from-purple-700 hover:via-violet-700 hover:to-indigo-700 lg:-ml-0"
|
className={clsx(gradient, buttonStyle)}
|
||||||
>
|
>
|
||||||
Sign in
|
Sign in
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user