-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: notes taking app - base (#524)
* [Feat] Add NoteApp Layout How: with styles Why: according to the design sample * [Feat] Add Layout for NotesSidebarHeader and NotesSidebarSearch How: html/css in react Why: progressing * [Feat] Isolate SearchInputBox component Why: so we could reuse it How: Isolate SearchInputBox to different file and use in right places * [Feat] Change the Toggle Button of Sidebar Position Why: the prev position get on elements in the main container How: change some styles * [Feat] Add NotesList in SideBar What: add notes list in SideBar How: create components for list, item style , pass data Why: need to implement * [Feat] Add Search Functionality, Add Pick Note And Show Description why: to be able to search notes. to show description of notes how: react... * [Feat] Add Search Functionality, Add Pick Note And Show Description why: to be able to search notes. to show description of notes how: react...
- Loading branch information
Showing
18 changed files
with
446 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
import { SearchBox, SearchIcon, SearchInput } from "./SearchInputBoxElements"; | ||
|
||
const SearchInputBox = ({ placeholder, value, onChange }) => { | ||
return ( | ||
<SearchBox> | ||
<SearchIcon /> | ||
<SearchInput type="text" placeholder={placeholder} value={value} onChange={onChange} /> | ||
</SearchBox> | ||
); | ||
}; | ||
|
||
export default SearchInputBox; |
44 changes: 44 additions & 0 deletions
44
src/components/Common/SearchInputBox/SearchInputBoxElements.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { FcSearch } from "react-icons/fc"; | ||
import styled from "styled-components"; | ||
|
||
export const SearchInput = styled.input` | ||
border: none; | ||
background: #252525; | ||
color: #d7d7d7; | ||
padding: 8px; | ||
font-size: 16px; | ||
width: 300px; | ||
border-radius: 0 4px 4px 0; | ||
@media screen and (max-width: 380px) { | ||
width: 100%; | ||
} | ||
@media screen and (max-width: 800px) { | ||
width: 100%; | ||
} | ||
&:focus { | ||
outline: none; | ||
box-shadow: 0 0 0 1px #1a1c1d; | ||
} | ||
`; | ||
export const SearchBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 10px; | ||
background: #131313; | ||
border-radius: 5px; | ||
padding: 0 0 0 10px; | ||
@media screen and (max-width: 380px) { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
export const SearchIcon = styled(FcSearch)` | ||
font-size: 2rem; | ||
color: #d7d7d7; | ||
cursor: pointer; | ||
transition: 0.2s ease-in-out; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import SearchInputBox from "./SearchInputBox"; | ||
export default SearchInputBox; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,7 @@ | ||
.note { | ||
background-color: #242526; | ||
color: #828282; | ||
border: 1px solid #828282; | ||
border-radius: 8px; | ||
padding: 10px; | ||
margin-bottom: 20px; | ||
max-height: 300px; | ||
width: 300px; | ||
overflow-x: none; | ||
overflow-wrap: break-word; | ||
word-break: break-all; | ||
.icon { | ||
color: #646464; | ||
} | ||
|
||
.note textarea { | ||
width: 100%; | ||
height: 100%; | ||
border: none; | ||
background-color: #242526; | ||
color: #828282; | ||
font-size: 16px; | ||
resize: none; | ||
outline: none; | ||
overflow-x: none; | ||
} | ||
|
||
|
||
.note button { | ||
background-color: #828282; | ||
color: #090909; | ||
border: none; | ||
padding: 8px 16px; | ||
font-size: 16px; | ||
border-radius: 4px; | ||
margin-left: 30px; | ||
cursor: pointer; | ||
} | ||
|
||
.note button:hover { | ||
background-color: #090909; | ||
color: #828282; | ||
} | ||
|
||
.note .delete-button { | ||
margin-bottom: -5px; | ||
margin-left: 260px; | ||
.icon:hover { | ||
color: #818181; | ||
cursor: pointer; | ||
} | ||
|
||
.note .character-limit-error { | ||
color: red | ||
} | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: flex-start; | ||
} | ||
|
||
.wrapper { | ||
overflow-y: hidden; | ||
} |
Oops, something went wrong.