style(topbar): add Create and Vote for clarity, with "disabled" styling

This commit is contained in:
Tom (plebeius.eth)
2024-09-08 10:41:39 +02:00
parent cb97b67cde
commit a7839e4e25
2 changed files with 9 additions and 5 deletions
+5
View File
@@ -31,6 +31,11 @@
margin-right: -7px;
}
.disabledButton {
opacity: 0.5;
cursor: not-allowed !important;
}
.searchBar input[type="text"] {
outline: none;
margin: 2px;
+4 -5
View File
@@ -85,28 +85,27 @@ const TopBarDesktop = () => {
{renderSubplebbits(projectsSubs)}
{renderSubplebbits(interestsSubs)}
{renderSubplebbits(randomSubs)}
{renderSubplebbits(internationalSubs)}
{/* [
{renderSubplebbits(internationalSubs)}[
<Link
className={styles.disabledButton}
to='boards/create'
onClick={(e) => {
e.preventDefault();
alert('work in progress');
}}
>
Create
</Link>
] [
<Link
className={styles.disabledButton}
to='boards'
onClick={(e) => {
e.preventDefault();
alert('work in progress');
}}
>
Vote
</Link>
] */}
]
</span>
<span className={styles.navTopRight}>
[<Link to={!location.pathname.endsWith('settings') ? location.pathname.replace(/\/$/, '') + '/settings' : location.pathname}>{t('settings')}</Link>] [