Skip to content

Commit

Permalink
追加の紹介文を書けるように
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Oct 25, 2024
1 parent ef87f8b commit 97615a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useDetailedCharacterInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ export const useDetailedCharacterInfo = () => {
lightColor: "#B3D7DD",
description:
"「#コンパス」を管理するAIロボ<br />人間の戦い方を監視/分析している。",
additionalProductDescription:
"話速:0.90、音高:0.03、抑揚:0.90とすれば、「#コンパス 戦闘摂理解析システム」ゲーム内のボイスに近い仕上がりとなります。",
labelInfos: [
{ label: "CV", value: "丹下桜", size: 2 },
{ label: "アビリティ", value: "緊急回避プログラム", size: 2 },
Expand Down
6 changes: 5 additions & 1 deletion src/pages/product/{Character.characterId}.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const ProductPage = ({ params }: PageProps) => {
(characterInfo.releaseDate
? `${characterInfo.releaseDate}にリリース予定。`
: "")
const additionalDescription = characterInfo.additionalProductDescription

const [
showingLibraryReadmeModalCharacterKey,
Expand Down Expand Up @@ -308,7 +309,10 @@ const ProductPage = ({ params }: PageProps) => {
</div>
<div className="description">
<h1 className="title">VOICEVOX {characterInfo.name}</h1>
<p className="is-size-5">{description}</p>
<p className="is-size-5">
{description}
{additionalDescription && additionalDescription}
</p>
{characterInfo.releaseDate == undefined && (
<a
className="button mt-5 is-primary is-rounded is-large"
Expand Down
3 changes: 2 additions & 1 deletion src/types/dormitoryCharacter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export type CharacterInfo = {
ogpImage: IGatsbyImageData
color: string
lightColor: string
description: string
description: string // ボイボ寮ページでの紹介文
additionalProductDescription?: string // 製品ページでの追加の紹介文
labelInfos: readonly { label: string; value: string; size: 1 | 2 }[]
talkVoiceUrls: { style: string; urls: readonly string[] }[]
songVoiceUrls: {
Expand Down

0 comments on commit 97615a3

Please sign in to comment.