feat: modernized web application

This commit is contained in:
2026-03-31 15:21:08 +09:00
parent f7019403c4
commit 7e07c7ea99
48 changed files with 1569 additions and 103 deletions

View File

@@ -0,0 +1,44 @@
'use client';
import { useTranslation } from 'react-i18next';
import YouTube from 'react-youtube';
import type { IGuideItem } from '@/models/IGuideItem';
import style from '@/styles/web.module.scss';
type Props = {
items: IGuideItem[];
};
const opts = {
height: '195',
width: '320',
};
export function GuideVideoList({ items }: Props) {
const { t } = useTranslation();
return (
<div className={style.guideBody}>
<h2>{t('guide')}</h2>
<hr />
<br />
{items.map((el) => (
<div
key={`guideItemsLoop-${el.id}`}
className={style.characterBlock}
style={{
animationDelay: `${el.id * 0.2}s`,
}}
>
<h4>{el.title}</h4>
<hr />
<div>{el.description}</div>
<div className={style.centerVideo}>
<YouTube videoId={el.youtube_id} opts={opts} />
</div>
</div>
))}
</div>
);
}