-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38538e5
commit d64751f
Showing
38 changed files
with
1,206 additions
and
424 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Empty file.
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
Binary file not shown.
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,6 +1,6 @@ | ||
import headerLogo from './header-logo.png'; | ||
import bestPlace from './best-place.svg'; | ||
import greenPlantsStaircase from './GreenPlantsStaircase.jpg'; | ||
import whiteWoodenShelfBesideBed from './WhiteWoodenShelfBesideBed.jpg'; | ||
import yellowHouse from './yellow-house.jpg'; | ||
|
||
export { headerLogo, bestPlace, greenPlantsStaircase, whiteWoodenShelfBesideBed}; | ||
export { headerLogo, bestPlace, greenPlantsStaircase, yellowHouse }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { FC, ChangeEvent, KeyboardEvent, useState } from "react"; | ||
import { FiSearch } from "react-icons/fi"; | ||
|
||
interface SearchPropertiesProps { | ||
onSearch: (value: string) => void; | ||
} | ||
|
||
const SearchProperties: FC<SearchPropertiesProps> = ({ onSearch }) => { | ||
const [text, setText] = useState<string>(""); | ||
|
||
const handleSearch = (value: string) => { | ||
setText(value); | ||
onSearch(value); | ||
}; | ||
|
||
const handleChange = (e: ChangeEvent<HTMLInputElement>) => { | ||
handleSearch(e.target.value); | ||
}; | ||
|
||
const handleKeyPress = (event: KeyboardEvent<HTMLInputElement>) => { | ||
if (event.key === 'Enter') { | ||
handleSearch(text); | ||
} | ||
}; | ||
|
||
const handleClick = () => { | ||
handleSearch(text); | ||
}; | ||
|
||
return ( | ||
<span className="flex rounded-2xl border focus-within:ring-2 focus-within:ring-yellow-500 items-center"> | ||
<input | ||
id="search" | ||
type="text" | ||
value={text} | ||
onChange={handleChange} | ||
onKeyDown={handleKeyPress} | ||
placeholder="Search.." | ||
className="rounded-2xl w-full pl-3 py-2 focus:outline-none" | ||
/> | ||
<FiSearch className="fixed-end m-3 text-lg text-gray-500" onClick={handleClick}/> | ||
</span> | ||
); | ||
}; | ||
|
||
export default SearchProperties; |
9 changes: 8 additions & 1 deletion
9
.../src/components/buttons/PrimaryButton.jsx → .../src/components/buttons/PrimaryButton.tsx
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
9 changes: 8 additions & 1 deletion
9
...omponents/buttons/PrimarySubmitButton.jsx → ...omponents/buttons/PrimarySubmitButton.tsx
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
9 changes: 8 additions & 1 deletion
9
...rc/components/buttons/SecondaryButton.jsx → ...rc/components/buttons/SecondaryButton.tsx
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
9 changes: 8 additions & 1 deletion
9
...ponents/buttons/SecondarySubmitButton.jsx → ...ponents/buttons/SecondarySubmitButton.tsx
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
File renamed without changes.
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,11 +1,12 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App'; | ||
import './index.css'; | ||
import App from './App'; | ||
|
||
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); | ||
|
||
const root = ReactDOM.createRoot(document.getElementById('root')); | ||
root.render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode> | ||
); | ||
); |
File renamed without changes.
Oops, something went wrong.