diff --git a/src/components/styled/views/Board.styled.jsx b/src/components/styled/views/Board.styled.jsx index d669bdb8..b799853b 100644 --- a/src/components/styled/views/Board.styled.jsx +++ b/src/components/styled/views/Board.styled.jsx @@ -54,8 +54,10 @@ export const NavBar = styled.div` transition: top 0.3s ease-in-out; } - .board-select { - float: left; + .nav-container { + display: flex; + align-items: center; + justify-content: space-between; } strong { @@ -77,7 +79,6 @@ export const NavBar = styled.div` text-decoration: none; padding-right: 5px; } - } ${({ selectedStyle }) => { @@ -86,14 +87,14 @@ export const NavBar = styled.div` return `font-size: 9pt; color: #b86; - a, button { + a, span { font-weight: 400 !important; padding: 1px !important; text-decoration: none !important; color: maroon !important; } - a:hover, button:hover { + a:hover, span:hover { color: red !important; } @@ -114,14 +115,14 @@ export const NavBar = styled.div` return `font-size: 9pt; color: #89a; - a, button { + a, span { font-weight: 400 !important; padding: 1px !important; text-decoration: none !important; color: #34345c !important; } - a:hover, button:hover { + a:hover, span:hover { color: #d00 !important; } @@ -132,14 +133,14 @@ export const NavBar = styled.div` case 'Futaba': return `font-size: 11pt; - a, a:visited, button { + a, a:visited, span { font-weight: 400 !important; padding: 1px !important; color: #00e !important; text-decoration: underline !important; } - a:hover, button:hover { + a:hover, span:hover { color: red !important; } @@ -157,14 +158,14 @@ export const NavBar = styled.div` case 'Burichan': return `font-size: 11pt; - a, a:visited, button { + a, a:visited, span { font-weight: 400 !important; padding: 1px !important; color: #34345c !important; text-decoration: underline !important; } - a:hover, button:hover { + a:hover, span:hover { color: #d00 !important; } @@ -179,14 +180,14 @@ export const NavBar = styled.div` return `font-size: 9pt; color: #c5c8c6; - a, a:visited, button { + a, a:visited, span { font-weight: 400 !important; padding: 1px !important; text-decoration: none !important; color: #81a2be !important; } - a:hover, button:hover { + a:hover, span:hover { color: #5f89ab !important; } @@ -205,14 +206,14 @@ export const NavBar = styled.div` return `font-size: 9pt; color: #333; - a, a:visited, button { + a, a:visited, span { font-weight: 400 !important; padding: 1px !important; text-decoration: none !important; color: #f60 !important; } - a:hover, button:hover { + a:hover, span:hover { color: #ff3300 !important; } @@ -511,7 +512,7 @@ export const PostFormLink = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: inherit !important; @@ -532,7 +533,7 @@ export const PostFormLink = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: #34345c !important; @@ -553,7 +554,7 @@ export const PostFormLink = styled.div` font-size: 16px; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none !important; border: none; color: inherit !important; @@ -574,7 +575,7 @@ export const PostFormLink = styled.div` font-size: 16px; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none !important; border: none; color: inherit !important; @@ -595,7 +596,7 @@ export const PostFormLink = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none !important; border: none; color: #707070 !important; @@ -614,7 +615,7 @@ export const PostFormLink = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: #333 !important; @@ -1472,7 +1473,7 @@ export const TopBar = styled.div` .subscribe-button-mobile { margin-right: 10px; - margin-top: -2px; + margin-top: 1px; position: absolute; right: 0; font-size: 13.3333px !important; @@ -1499,7 +1500,7 @@ export const TopBar = styled.div` font-size: 10pt !important; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: inherit !important; @@ -1520,7 +1521,7 @@ export const TopBar = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: #34345c !important; @@ -1542,11 +1543,9 @@ export const TopBar = styled.div` font-family: times new roman !important; } - .subscribe-button-mobile { - margin-top: -5px !important; - } + - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none !important; border: none; color: inherit !important; @@ -1569,10 +1568,10 @@ export const TopBar = styled.div` } .subscribe-button-mobile { - margin-top: -5px !important; + margin-top: 0px !important; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none !important; border: none; color: inherit !important; @@ -1593,7 +1592,7 @@ export const TopBar = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: #707070 !important; @@ -1618,7 +1617,7 @@ export const TopBar = styled.div` cursor: pointer; } - .btn-wrap a { + .btn-wrap a, .btn-wrap span { text-decoration: none; border: none; color: #333 !important; diff --git a/src/components/views/All.jsx b/src/components/views/All.jsx index 9b1b5ba3..ec5f380b 100644 --- a/src/components/views/All.jsx +++ b/src/components/views/All.jsx @@ -236,28 +236,29 @@ const All = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - handleStyleChange({target: {value: "Yotsuba"}} - )}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +
 
diff --git a/src/components/views/AllCatalog.jsx b/src/components/views/AllCatalog.jsx index 72564a57..1259cd33 100644 --- a/src/components/views/AllCatalog.jsx +++ b/src/components/views/AllCatalog.jsx @@ -137,28 +137,29 @@ const AllCatalog = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - handleStyleChange({target: {value: "Yotsuba"}} - )}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +
 
diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index 0dd650ac..f8180563 100644 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -579,27 +579,29 @@ const Board = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +
 
@@ -695,14 +697,18 @@ const Board = () => { <> [ - + + handleSubscribe()}> + {subscribed ? "Unsubscribe" : "Subscribe"} + + ] - + + handleSubscribe()}> + {subscribed ? "Unsubscribe" : "Subscribe"} + + ) : (
diff --git a/src/components/views/Catalog.jsx b/src/components/views/Catalog.jsx index 7b6e8120..ab0bf1b5 100644 --- a/src/components/views/Catalog.jsx +++ b/src/components/views/Catalog.jsx @@ -502,28 +502,29 @@ const Catalog = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - handleStyleChange({target: {value: "Yotsuba"}} - )}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +
 
@@ -620,16 +621,20 @@ const Catalog = () => { {feed.length > 0 ? ( <> - [ - - ] - - - + [ + + handleSubscribe()}> + {subscribed ? "Unsubscribe" : "Subscribe"} + + + ] + + + handleSubscribe()}> + {subscribed ? "Unsubscribe" : "Subscribe"} + + + ) : (
{stateString} diff --git a/src/components/views/Pending.jsx b/src/components/views/Pending.jsx index 480b5d7c..87963efd 100644 --- a/src/components/views/Pending.jsx +++ b/src/components/views/Pending.jsx @@ -145,6 +145,11 @@ const Pending = () => { >{subplebbit.title ? subplebbit.title : subplebbit.address} ))} + alert( + 'To create a board, first you have to run a full node.\nYou can run a full node by simply browsing with the plebbit desktop app. After you download it, open it, wait for it loading, then click on "Home" in the top left, then "Create Community".\n\nAfter you create the community, you can go back to plebchan at any time to see it as a board by pasting its address (begins with p/12D3KooW...) in the search bar, which is in the Home.\n\nNote:\n\n- Your community will be online for as long as you leave the app open, because it functions like a server for the community.\n- The longer you leave the app open, the more data you are seeding to the protocol, which helps performance for everybody.\n - All the data in the plebbit protocol is just text, which is extremely lightweight. All media is generated by links, which is text, embedded by the clients.\n\nDownload the plebbit app here: https://github.com/plebbit/plebbit-react/releases\n\nYou can also use a CLI: https://github.com/plebbit/plebbit-cli\n\nRunning boards in the plebchan app is a planned feature.\n\n' + ) + }>Create Board
setIsSettingsOpen(true)}>Settings diff --git a/src/components/views/Subscriptions.jsx b/src/components/views/Subscriptions.jsx index b8c26af7..d9d58a8c 100644 --- a/src/components/views/Subscriptions.jsx +++ b/src/components/views/Subscriptions.jsx @@ -235,28 +235,29 @@ const Subscriptions = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - handleStyleChange({target: {value: "Yotsuba"}} - )}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +
 
diff --git a/src/components/views/SubscriptionsCatalog.jsx b/src/components/views/SubscriptionsCatalog.jsx index 54c7ff8e..7955473e 100644 --- a/src/components/views/SubscriptionsCatalog.jsx +++ b/src/components/views/SubscriptionsCatalog.jsx @@ -138,28 +138,29 @@ const SubscriptionsCatalog = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - handleStyleChange({target: {value: "Yotsuba"}} - )}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +
 
diff --git a/src/components/views/Thread.jsx b/src/components/views/Thread.jsx index 21104f32..19c1b734 100644 --- a/src/components/views/Thread.jsx +++ b/src/components/views/Thread.jsx @@ -537,27 +537,29 @@ const Thread = () => { ]
-
- Board -   -   - -
-
- setIsSettingsOpen(true)}>Settings -   - {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home + }>Create Board +
+
+ setIsSettingsOpen(true)}>Settings +   + {handleStyleChange({target: {value: "Yotsuba"}}); window.scrollTo(0, 0);}}>Home +