Improve sidebar buttons
This commit is contained in:
@@ -13,9 +13,14 @@
|
||||
}
|
||||
|
||||
.link {
|
||||
@apply text-white p-2 rounded-lg no-underline cursor-pointer transition-colors duration-[0.25s];
|
||||
@apply text-[#bdbdbd] p-2 rounded-lg no-underline cursor-pointer transition-colors duration-[0.25s];
|
||||
}
|
||||
|
||||
.link.active, .link:hover {
|
||||
.link.active {
|
||||
@apply bg-[#313131];
|
||||
}
|
||||
|
||||
.link.active,
|
||||
.link:hover {
|
||||
@apply text-white;
|
||||
}
|
||||
|
||||
@@ -21,9 +21,9 @@ function App () {
|
||||
}, [])
|
||||
|
||||
function renderContent () {
|
||||
if (hash === "#installs") {
|
||||
if (hash === '#installs') {
|
||||
return <Installs />
|
||||
} else if (hash === "#settings") {
|
||||
} else if (hash === '#settings') {
|
||||
return <Settings />
|
||||
}
|
||||
return null
|
||||
@@ -32,9 +32,7 @@ function App () {
|
||||
return (
|
||||
<>
|
||||
<Sidebar />
|
||||
<main style={{ marginLeft: '15rem' }}>
|
||||
{renderContent()}
|
||||
</main>
|
||||
<main style={{ marginLeft: '15rem' }}>{renderContent()}</main>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user