⚡️⚡️⚡️ 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
Design improvement.
Daniel9fddd7ab5b32
diff --git a/api/server.js b/api/server.jsindex 0de71710..dd1630ee 100644--- a/api/server.js+++ b/api/server.js@@ -6,7 +6,6 @@ const config = require('../src/config.js');const getData = require('./modules/getData.js');const fs = require('fs');const fetch = require('cross-fetch');-const { dirname } = require('path');const port = config.API.PORT;diff --git a/src/componets/AddItem.js b/src/componets/AddItem.jsindex 7e576f75..fc22d1a6 100644--- a/src/componets/AddItem.js+++ b/src/componets/AddItem.js@@ -40,9 +40,9 @@ const AddItem = ({onExit, reFetch, tags, SetLoader}) => {<div className='AddItem-content'><h3><span style={{color:"red"}}>* </span>Link:</h3><input onChange={SetLink} className="AddItem-input" type="search" placeholder="e.g. https://example.com/"/>- <h3>Name:</h3>+ <h3>Name: <span className='optional'>(Optional)</span></h3><input onChange={SetName} className="AddItem-input" type="search" placeholder="e.g. Example Tutorial"/>- <h3>Tags:</h3>+ <h3>Tags: <span className='optional'>(Optional)</span></h3><TagSelection setTags={SetTags} tags={tags} /><button onClick={newItem} className="send-btn">Add </button></div>diff --git a/src/componets/EditItem.js b/src/componets/EditItem.jsindex 7a33c822..12a0728d 100644--- a/src/componets/EditItem.js+++ b/src/componets/EditItem.js@@ -43,11 +43,11 @@ const EditItem = ({tags, item, onExit, SetLoader, reFetch}) => {<button className="edit-btn delete" onClick={deleteItem}></button><div className='AddItem-content'><h3>Link: <a target="_blank" rel="noreferrer" href={item.link}>{url.hostname}</a></h3>- <h3>{item.title}</h3>+ <h3 className='title'><b>{item.title}</b></h3>- <h3>Name:</h3>+ <h3>Name: <span className='optional'>(Optional)</span></h3><input onChange={SetName} className="AddItem-input" type="search" value={name} placeholder={"e.g. Example Tutorial"} />- <h3>Tags:</h3>+ <h3>Tags: <span className='optional'>(Optional)</span></h3><TagSelection setTags={SetTags} tags={tags} tag={tag} /><button onClick={EditItem} className="send-btn">Update </button></div>diff --git a/src/modules/send.js b/src/modules/send.jsindex 54ec0d73..ee822df6 100644--- a/src/modules/send.js+++ b/src/modules/send.js@@ -34,12 +34,11 @@ const addItem = async (name, link, tag, reFetch, onExit, SetLoader, method, id=n.then(() => {SetLoader(false)});onExit();- } else if(name === '' && link === '') {- onExit()+ } else if(!isValidHttpUrl(link) && link !== '') {SetLoader(false)+ alert('Please make sure the link is valid.\n\n(i.e. starts with "http"/"https")');} else {SetLoader(false)- alert('Please make sure the link is valid.\n\n(i.e. starts with "http"/"https")');}}diff --git a/src/styles/App.css b/src/styles/App.cssindex 91c1952d..581c0907 100644--- a/src/styles/App.css+++ b/src/styles/App.css@@ -48,7 +48,7 @@}.btn:active {- box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;+ box-shadow: 0px 0px 10px rgb(83, 143, 255);}textarea:focus, input:focus{diff --git a/src/styles/List.css b/src/styles/List.cssindex df7be41b..a83526bd 100644--- a/src/styles/List.css+++ b/src/styles/List.css@@ -87,7 +87,7 @@}.edit-btn:active {- box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;+ box-shadow: 0px 0px 10px rgb(83, 143, 255);}.row-name {@@ -123,6 +123,7 @@}.delete {+ background-color:#273949;float: right;font-size: 1.1rem;width: 40px;@@ -131,4 +132,8 @@.delete:hover {background-color: rgba(255, 65, 65, 0.8);+}++.delete:active {+ box-shadow: 0px 0px 10px rgb(255, 83, 140);}\ No newline at end of filediff --git a/src/styles/SendItem.css b/src/styles/SendItem.cssindex 94aa1906..b27a20f8 100644--- a/src/styles/SendItem.css+++ b/src/styles/SendItem.css@@ -72,10 +72,21 @@}.send-btn:active {- box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;+ box-shadow: 0px 0px 10px rgb(83, 143, 255);}@keyframes fadein {from { opacity: 0%; }to { }+}++.optional {+ color: gray;+ font-size: 0.8em;+ float: right;+}++.title {+ color: darkgray;+ font-size: 0.9em;}\ No newline at end of file