feat(topbar): add temporary links to "create board" and "vote" buttons

This commit is contained in:
Tom (plebeius.eth)
2025-02-20 19:24:58 +01:00
parent 869610c8a0
commit 57fc2bbfc2
37 changed files with 89 additions and 55 deletions
+9 -2
View File
@@ -37,9 +37,16 @@
margin-right: -7px;
}
.disabledButton {
.temporaryButton {
color: var(--topbar-desktop-link-text-color);
text-decoration: var(--topbar-desktop-link-text-decoration);
text-transform: capitalize;
cursor: not-allowed !important;
}
.temporaryButton:hover {
color: var(--topbar-desktop-link-text-color-hover);
text-decoration: var(--topbar-desktop-link-text-decoration-hover);
cursor: pointer;
}
.searchBar input[type="text"] {
+10 -18
View File
@@ -98,25 +98,17 @@ const TopBarDesktop = () => {
</>
)}
[
<Link
className={styles.disabledButton}
to='boards/create'
onClick={(e) => {
e.preventDefault();
}}
>
{t('create')}
</Link>
<span className={styles.temporaryButton}>
<a href='https://plebbit.github.io/docs/learn/clients/plebchan/create-a-board' target='_blank' rel='noopener noreferrer'>
{t('create_board')}
</a>
</span>
] [
<Link
className={styles.disabledButton}
to='boards'
onClick={(e) => {
e.preventDefault();
}}
>
{t('vote')}
</Link>
<span className={styles.temporaryButton}>
<a href='https://seedit.eth.limo/#/communities/vote' target='_blank' rel='noopener noreferrer'>
{t('vote')}
</a>
</span>
]
</span>
<span className={styles.navTopRight}>