mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update ui
This commit is contained in:
@@ -51,17 +51,17 @@
|
|||||||
padding-top: 15px;
|
padding-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.createBoardButton {
|
.adButton {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.createBoardButton a {
|
.adButton a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--button-desktop-text-color);
|
color: var(--button-desktop-text-color);
|
||||||
|
|
||||||
}
|
}
|
||||||
.createBoardButton a:hover {
|
.adButton a:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--button-desktop-text-color-hover);
|
color: var(--button-desktop-text-color-hover);
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.createBoardButton {
|
.adButton {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,24 +172,6 @@ export const TimeFilter = ({ isInAllView, isInCatalogView, isInSubscriptionsView
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const CreateBoardButton = () => {
|
|
||||||
return (
|
|
||||||
<div className={styles.createBoardButton}>
|
|
||||||
[
|
|
||||||
<Link
|
|
||||||
to='/boards/create'
|
|
||||||
onClick={(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
alert('work in progress');
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Create a Board
|
|
||||||
</Link>
|
|
||||||
]
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const MobileBoardButtons = () => {
|
export const MobileBoardButtons = () => {
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
@@ -204,7 +186,19 @@ export const MobileBoardButtons = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.mobileBoardButtons}>
|
<div className={styles.mobileBoardButtons}>
|
||||||
<CreateBoardButton />
|
<div className={styles.adButton}>
|
||||||
|
[
|
||||||
|
<Link
|
||||||
|
to='/boards'
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
alert('work in progress');
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Vote for Boards
|
||||||
|
</Link>
|
||||||
|
]
|
||||||
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
{isInPostView || isInPendingPostPage ? (
|
{isInPostView || isInPendingPostPage ? (
|
||||||
<>
|
<>
|
||||||
@@ -254,7 +248,19 @@ export const DesktopBoardButtons = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<hr />
|
<hr />
|
||||||
<CreateBoardButton />
|
<div className={styles.adButton}>
|
||||||
|
[
|
||||||
|
<Link
|
||||||
|
to='/boards'
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
alert('work in progress');
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Vote for Boards
|
||||||
|
</Link>
|
||||||
|
]
|
||||||
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div className={styles.desktopBoardButtons}>
|
<div className={styles.desktopBoardButtons}>
|
||||||
{isInPostView || isInPendingPostPage ? (
|
{isInPostView || isInPendingPostPage ? (
|
||||||
|
|||||||
@@ -82,13 +82,13 @@ const TopBarDesktop = () => {
|
|||||||
[{renderSubplebbits(plebbitSubs)}] [{renderSubplebbits(projectsSubs)}] [{renderSubplebbits(interestsSubs)}] [{renderSubplebbits(randomSubs)}] [
|
[{renderSubplebbits(plebbitSubs)}] [{renderSubplebbits(projectsSubs)}] [{renderSubplebbits(interestsSubs)}] [{renderSubplebbits(randomSubs)}] [
|
||||||
{renderSubplebbits(internationalSubs)}] [
|
{renderSubplebbits(internationalSubs)}] [
|
||||||
<Link
|
<Link
|
||||||
to='boards'
|
to='boards/create'
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
alert('work in progress');
|
alert('work in progress');
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Edit
|
Create
|
||||||
</Link>
|
</Link>
|
||||||
]
|
]
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user