Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add video #34

Merged
merged 2 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
FaceEmo is a facial expression creation and configuration tool for VRChat Avatars 3.0.
It allows for easy configuration of facial expression changes using hand gestures and the Expression Menu!

[![video (en)](docs/static/img/readme/video_en.png)](https://www.youtube.com/embed/hZIHdWUONHM?rel=0)

For more information, check out the [documentation](https://suzuryg.github.io/face-emo/).

---

FaceEmoはVRChat Avatars 3.0用の表情作成・設定ツールです。
ハンドジェスチャーとExpression Menuを組み合わせた表情切り替えを簡単に設定できます!

[![video (jp)](docs/static/img/readme/video_jp.png)](https://www.youtube.com/embed/Y3taqFjOjZ8?rel=0)

詳細については[ドキュメント](https://suzuryg.github.io/face-emo/ja/)をご参照ください。
21 changes: 20 additions & 1 deletion docs/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import clsx from 'clsx';
import styles from './styles.module.css';
import Translate from '@docusaurus/Translate'
import Translate from '@docusaurus/Translate';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

function Features() {
return (
Expand Down Expand Up @@ -47,6 +48,22 @@ function Features() {
);
}

function VideoContainer() {
const { siteConfig, i18n } = useDocusaurusContext();
var video_url;
if (i18n.currentLocale == "ja") { video_url = "https://www.youtube.com/embed/Y3taqFjOjZ8?rel=0"; }
else { video_url = "https://www.youtube.com/embed/hZIHdWUONHM?rel=0"; }

return (
<div className="text--center">
<iframe width="640" height="360"
src={video_url}
frameBorder="0"
allowFullScreen
sandbox="allow-scripts allow-same-origin allow-popups allow-presentation"></iframe>
</div>);
}

function Credits(){
return(
<div>
Expand Down Expand Up @@ -84,6 +101,8 @@ export default function HomepageFeatures(): JSX.Element {
<div className="container">
<Features/>
<hr/>
<VideoContainer/>
<hr/>
<Credits/>
</div>
</section>
Expand Down
Binary file added docs/static/img/readme/video_en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/readme/video_jp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.