-
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
Ramin Rezaei
committed
May 28, 2024
1 parent
43f2d7b
commit 16e8df4
Showing
12 changed files
with
72 additions
and
41 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
import { FormEvent } from "react"; | ||
import { animator } from "shared/utils/animator"; | ||
import { classnames } from "shared/utils/classnames"; | ||
|
||
interface CounterFooterProps { | ||
text: string; | ||
onChange: (value: string) => void; | ||
onSend: (event: FormEvent<HTMLButtonElement>) => void; | ||
} | ||
export function CounterFooter({ text = '', onChange = () => {}, onSend = () => {} }: CounterFooterProps){ | ||
return ( | ||
<form className={classnames( | ||
"z-30 bottom-5 gap-x-2 rounded-full fixed overflow-hidden w-11/12 flex items-center justify-center shadow-lg bg-white/50 dark:bg-black/20 backdrop-blur-sm", | ||
animator({ name: "fadeIn" }) | ||
)}> | ||
<input | ||
type="text" | ||
value={text} | ||
tabIndex={1} | ||
placeholder="Send A Good Thing In Your Day..." | ||
onChange={({ target }) => onChange(target.value)} | ||
className="w-full text-sm leading-10 outline-none border-none indent-4 bg-transparent" | ||
/> | ||
<button | ||
type="submit" | ||
onClick={onSend} | ||
className="bg-app-gradient min-w-11 min-h-11 flex items-center justify-center rounded-full" | ||
> | ||
<img width={24} className="invert" alt="SEND" src="/images/send.png" /> | ||
</button> | ||
</form> | ||
); | ||
} |
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,9 @@ | ||
.counter { | ||
&__hide-scrollbar { | ||
scrollbar-width: none; | ||
-ms-overflow-style: none; | ||
&::-webkit-scrollbar { | ||
display: none; | ||
} | ||
} | ||
} |
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
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
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,3 +1,3 @@ | ||
.tas-font { | ||
font-family: 'Edu TAS Beginner', cursive !important; | ||
font-family: "Edu NSW ACT Foundation", cursive; | ||
} |