Design improvements.
This commit is contained in:
parent
9fddd7ab5b
commit
91d72e0c0f
|
@ -83,15 +83,16 @@ function App() {
|
|||
|
||||
return (
|
||||
<div className="App">
|
||||
<div className='content'>
|
||||
<div className="head">
|
||||
<input className="search" type="search" placeholder=" Search" onChange={search}/>
|
||||
<button className="btn" onClick={() => setNewBox(true)}></button>
|
||||
<button className="add-btn btn" onClick={() => setNewBox(true)}></button>
|
||||
</div>
|
||||
|
||||
<p className="results">{numberOfResults > 0 ? numberOfResults + ' Bookmarks found' : null}</p>
|
||||
|
||||
<button className='btn' onClick={() => setFilterBox(true)}></button>
|
||||
<button className='btn' onClick={() => setSortBox(true)}></button>
|
||||
<button className='btn' style={{marginLeft: '10px'}} onClick={() => setSortBox(true)}></button>
|
||||
<List SetLoader={SetLoader} data={filteredData} tags={tags} reFetch={fetchData} />
|
||||
|
||||
{numberOfResults === 0 ? <NoResults /> : null}
|
||||
|
@ -120,6 +121,7 @@ function App() {
|
|||
|
||||
{loader ? <Loader /> : null}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ const AddItem = ({onExit, reFetch, tags, SetLoader}) => {
|
|||
<>
|
||||
<div className='add-overlay' onClick={abort}></div>
|
||||
<fieldset className='box'>
|
||||
<legend >New bookmark</legend>
|
||||
<legend>New bookmark</legend>
|
||||
<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/"/>
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
min-height: 100vh;
|
||||
background-color: #1f2c38;
|
||||
color: white;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
padding: 20px;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.head {
|
||||
|
@ -9,13 +18,12 @@
|
|||
}
|
||||
|
||||
.search {
|
||||
margin: 20px 20px 0px 20px;
|
||||
padding: 10px;
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-size: 1.2rem;
|
||||
padding-left: 10px;
|
||||
border: none;
|
||||
width: 20%;
|
||||
width: 35%;
|
||||
min-width: 300px;
|
||||
color: white;
|
||||
background-color:#273949;
|
||||
|
@ -29,7 +37,6 @@
|
|||
.btn {
|
||||
position: relative;
|
||||
border-radius: 100%;
|
||||
margin: 20px 20px 0px auto;
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
@ -43,6 +50,10 @@
|
|||
transition: background-color 0.1s;
|
||||
}
|
||||
|
||||
.add-btn {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background-color: rgb(76, 117, 170);
|
||||
}
|
||||
|
@ -56,7 +67,7 @@ textarea:focus, input:focus{
|
|||
}
|
||||
|
||||
.results {
|
||||
margin: 20px 20px 0px 30px;
|
||||
margin: 20px 20px 0px 5px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
}
|
||||
|
||||
.filter label: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 {
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
}
|
||||
|
||||
.list-row {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color:#273949;
|
||||
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.list-row:hover img {
|
||||
|
@ -110,7 +110,9 @@
|
|||
}
|
||||
|
||||
.tags div::before {
|
||||
content: "#";
|
||||
|
||||
color: rgb(35, 112, 156);
|
||||
content: "# ";
|
||||
}
|
||||
|
||||
.num {
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
}
|
||||
|
||||
.sort-by-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 {
|
||||
|
|
|
@ -10,5 +10,5 @@ body {
|
|||
}
|
||||
|
||||
*::selection {
|
||||
background-color: rgba(255, 255, 0, 0.6);
|
||||
background-color: rgba(115, 192, 255, 0.9);
|
||||
}
|
Ŝarĝante…
Reference in New Issue