This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
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
Showing
24 changed files
with
246 additions
and
133 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
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,27 +1,28 @@ | ||
import { memo } from 'react'; | ||
|
||
import IconEmail from '../icons/IconEmail'; | ||
import IconPhone from '../icons/IconPhone'; | ||
|
||
const Footer = () => { | ||
return ( | ||
<div className='bg-slate-900'> | ||
<div className='page-container grid grid-cols-1 md:grid-cols-2 text-md'> | ||
<div className='text-slate-400 flex-col p-3 hidden md:flex italic'> | ||
<div className='grid grid-cols-1 page-container md:grid-cols-2 text-md'> | ||
<div className='flex-col hidden p-3 italic text-slate-400 md:flex'> | ||
<h4> | ||
“There are no regrets. If one can be proud of one’s life, one should not wish for | ||
another chance.” | ||
“There are no regrets. If one can be proud of one’s life, one should | ||
not wish for another chance.” | ||
</h4> | ||
<h4 className='text-end mt-3'>Saber (Fate Stay Night)</h4> | ||
<h4 className='mt-3 text-end'>Saber (Fate Stay Night)</h4> | ||
</div> | ||
|
||
<div className='flex flex-col items-start md:items-end p-3 text-slate-400'> | ||
<div className='flex flex-col items-start p-3 md:items-end text-slate-400'> | ||
<h4>Contact</h4> | ||
<div className='flex items-center gap-x-3 mt-3'> | ||
<div className='flex items-center mt-3 gap-x-3'> | ||
<span>[email protected]</span> | ||
<IconEmail className={'h-5 w-5'} /> | ||
</div> | ||
|
||
<div className='flex items-center gap-x-3 mt-3'> | ||
<div className='flex items-center mt-3 gap-x-3'> | ||
<span>+843092002</span> | ||
<IconPhone className={'h-5 w-5'} /> | ||
</div> | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useEffect } from 'react'; | ||
|
||
const useBindEnter = (setQuery = () => {}, inputRef) => { | ||
useEffect(() => { | ||
const handlerEnterKeyPress = (e) => { | ||
if (e.code === 'Enter') { | ||
setQuery(inputRef.current.value); | ||
} | ||
}; | ||
|
||
document.addEventListener('keyup', handlerEnterKeyPress); | ||
|
||
return () => { | ||
document.removeEventListener('keyup', handlerEnterKeyPress); | ||
}; | ||
}, []); | ||
}; | ||
|
||
export default useBindEnter; |
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 @@ | ||
import { useQuery } from '@tanstack/react-query'; | ||
|
||
const useGetAnimeDetail = (animeID) => { | ||
return useQuery(['anime', { animeID }], async () => | ||
(await fetch(`https://api.jikan.moe/v4/anime/${animeID}`)).json(), | ||
); | ||
}; | ||
|
||
export default useGetAnimeDetail; |
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 @@ | ||
import { useQuery } from '@tanstack/react-query'; | ||
|
||
const useGetCharacterDetail = (characterID) => { | ||
return useQuery(['character', { characterID }], async () => | ||
(await fetch(`https://api.jikan.moe/v4/characters/${characterID}`)).json(), | ||
); | ||
}; | ||
|
||
export default useGetCharacterDetail; |
Oops, something went wrong.
21e20ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
anime-website-react – ./
anime-website-react.vercel.app
anime-website-react-git-master-sonicname.vercel.app
anime-website-react-sonicname.vercel.app