⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
Added tags to sidebar.
Daniel51b214200f92
diff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlindex 08006389..b0a17728 100644--- a/.github/FUNDING.yml+++ b/.github/FUNDING.yml@@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay usernameissuehunt: # Replace with a single IssueHunt usernameotechie: # Replace with a single Otechie usernamelfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry-custom: https://www.paypal.me/Daniel31X13+custom: ['PayPal.Me/Daniel31X13']diff --git a/README.md b/README.mdindex e181766b..7c6a4709 100644--- a/README.md+++ b/README.md@@ -6,8 +6,10 @@ LinkWarden<img src="assets/LinkWarden.png" alt="LinkWarden.png" width="500px"/>--    ++++     </h1>diff --git a/src/App.js b/src/App.jsindex 10938ffe..c32ceb41 100644--- a/src/App.js+++ b/src/App.js@@ -68,6 +68,7 @@ function App() {}const filteredData = filter(data, searchQuery, nameChecked, tagsChecked, descriptionChecked);+const tags = concatTags(data);async function fetchData() {@@ -107,7 +108,7 @@ function App() {return (<div className="App">- <SideBar handleToggleSidebar={handleToggleSidebar} toggle={toggle} />+ <SideBar tags={tags} handleToggleSidebar={handleToggleSidebar} toggle={toggle} /><div className='content'><div className="head"><button className='sidebar-btn btn' style={{marginRight: '10px'}} onClick={handleToggleSidebar}></button>diff --git a/src/componets/SideBar.js b/src/componets/SideBar.jsindex 8d341c7f..f0b301a2 100644--- a/src/componets/SideBar.js+++ b/src/componets/SideBar.js@@ -1,9 +1,8 @@import { ProSidebar, SidebarHeader, SidebarFooter, SidebarContent } from 'react-pro-sidebar';import 'react-pro-sidebar/dist/css/styles.css';import '../styles/SideBar.css';-import { useState } from 'react';-const SideBar = ({ handleToggleSidebar, toggle }) => {+const SideBar = ({ tags, handleToggleSidebar, toggle }) => {return (<ProSidebartoggled={toggle}@@ -11,13 +10,17 @@ const SideBar = ({ handleToggleSidebar, toggle }) => {onToggle={handleToggleSidebar}className='sidebar'><SidebarHeader>- LOGO+ <h1>LinkWarden</h1></SidebarHeader>- <SidebarContent>- CONTENT+ <SidebarContent className='sidebar-content'>++ <h3>Tags:</h3>+ {tags.map((e) => {+ return <p>{e}</p>+ })}</SidebarContent><SidebarFooter>- FOOTER+ <p className='credits'>©{new Date().getFullYear()} Made with 💙 by <a href='https://github.com/Daniel31x13'>Daniel 31X13</a></p></SidebarFooter></ProSidebar>)diff --git a/src/styles/SideBar.css b/src/styles/SideBar.cssindex 755281aa..2204c4f0 100644--- a/src/styles/SideBar.css+++ b/src/styles/SideBar.css@@ -1,4 +1,32 @@.sidebar {height: 100vh;position: fixed;+ border-right: solid;+ border-width: 1px;+ border-color: gray;+}++.sidebar-content {+ padding: 20px;+}++.sidebar h1 {+ text-align: center;+}++.credits {+ text-align: center;+ font-size: small;+}++.credits a {+ color: inherit;+ text-decoration: underline;+}+++.pro-sidebar-layout {+ background: #384952;+ text-shadow: none;+ color: white;}\ No newline at end of filediff --git a/src/styles/index.css b/src/styles/index.cssindex 38e9bc5a..5f4bd02d 100644--- a/src/styles/index.css+++ b/src/styles/index.css@@ -12,7 +12,7 @@ body {}*::selection {- background-color: rgba(78, 78, 78, 0.9);+ background-color: black;color: white;text-shadow: none;}