-
Notifications
You must be signed in to change notification settings - Fork 61
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
fd64ab7
commit 0fd25b7
Showing
5 changed files
with
34 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import * as localizations from "../../localizations"; | ||
|
||
import { IconChevronUp } from "@tabler/icons"; | ||
import { useLanguage } from "contexts/language"; | ||
import { useRef } from "react"; | ||
|
||
export const Footer = () => { | ||
const { strings, setLanguage } = useLanguage(); | ||
return <footer className="fixed bottom-0 flex justify-between w-full m-auto py-5 px-10"> | ||
<div className="space-x-8"> | ||
<div className="space-x-8 flex flex-row"> | ||
<a className="opacity-40 text-black hover:opacity-70 transition" target="_blank" rel="noreferrer" href="https://github.com/Animenosekai/translate">GitHub</a> | ||
<select value={strings.language} className="appearance-none bg-transparent outline-none cursor-pointer opacity-40 hover:opacity-70 transition" name="language" onChange={ev => setLanguage(ev.target.value)}> | ||
{ | ||
Object.keys(localizations).map((lang, key) => { | ||
return <option value={lang} key={key}>{(new localizations[lang]()).name}</option> | ||
}) | ||
} | ||
</select> | ||
<div className="flex flex-row opacity-40 hover:opacity-70 transition cursor-pointer"> | ||
<select value={strings.language} className="appearance-none bg-transparent outline-none pr-5 z-[1] cursor-pointer" name="language" onChange={ev => setLanguage(ev.target.value)}> | ||
{ | ||
Object.keys(localizations).map((lang, key) => { | ||
return <option value={lang} key={key}>{(new localizations[lang]()).name}</option> | ||
}) | ||
} | ||
</select> | ||
<IconChevronUp className="-ml-7" /> | ||
</div> | ||
</div> | ||
</footer> | ||
} |
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,5 @@ | ||
import { IconCopy } from "@tabler/icons"; | ||
|
||
export const CopyIcon = (props: any) => ( | ||
<IconCopy {...props} /> | ||
); |
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
0fd25b7
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:
translate – ./
translatepy.vercel.app
translate-animenosekai.vercel.app
translatep.vercel.app
translate-ruby.vercel.app
translate-git-website-animenosekai.vercel.app