diff --git a/components/character/CharacterConflictModal/index.module.scss b/components/character/CharacterConflictModal/index.module.scss index e69de29b..3fb80d4d 100644 --- a/components/character/CharacterConflictModal/index.module.scss +++ b/components/character/CharacterConflictModal/index.module.scss @@ -0,0 +1,69 @@ +.content { + $weapon-diameter: 14rem; + + display: flex; + flex-direction: column; + gap: $unit-4x; + padding: $unit-4x $unit-4x $unit-2x $unit-4x; + + & > p { + font-size: $font-regular; + line-height: 1.4; + + strong { + font-weight: $bold; + } + + &:lang(ja) { + line-height: 1.4; + } + } + + .diagram { + align-items: center; + display: grid; + grid-template-columns: 1fr auto 1fr; + + ul { + align-items: center; + display: flex; + flex-direction: column; + gap: $unit-2x; + } + + .character { + display: flex; + flex-direction: column; + gap: $unit; + text-align: center; + width: $weapon-diameter; + font-weight: $medium; + + img { + border-radius: 1rem; + width: $weapon-diameter; + height: auto; + } + + span { + line-height: 1.3; + } + } + + .wrapper { + display: flex; + justify-content: center; + width: 100%; + } + + .arrow { + align-items: center; + color: $grey-55; + display: flex; + font-size: 4rem; + text-align: center; + height: $weapon-diameter; + justify-content: center; + } + } +} diff --git a/components/character/CharacterConflictModal/index.tsx b/components/character/CharacterConflictModal/index.tsx index 13a38545..d89a0dca 100644 --- a/components/character/CharacterConflictModal/index.tsx +++ b/components/character/CharacterConflictModal/index.tsx @@ -4,6 +4,7 @@ import { Trans, useTranslation } from 'next-i18next' import { Dialog } from '~components/common/Dialog' import DialogContent from '~components/common/DialogContent' +import DialogFooter from '~components/common/DialogFooter' import Button from '~components/common/Button' import Overlay from '~components/common/Overlay' @@ -75,19 +76,19 @@ const CharacterConflictModal = (props: Props) => { return ( event.preventDefault()} onEscapeKeyDown={close} > -
+

-
+
    {props.conflictingCharacters?.map((character, i) => ( -
  • +
  • {character.object.name[locale]} {
  • ))}
- -
-
+ +
+
{props.incomingCharacter?.name[locale]} {
-
-
-
-
+ />, + ]} + />
diff --git a/components/common/DialogContent/index.module.scss b/components/common/DialogContent/index.module.scss index c4437896..83050529 100644 --- a/components/common/DialogContent/index.module.scss +++ b/components/common/DialogContent/index.module.scss @@ -80,7 +80,8 @@ } } - &.editParty { + &.editParty, + &.conflict { min-height: 80vh; .container { diff --git a/components/weapon/WeaponConflictModal/index.module.scss b/components/weapon/WeaponConflictModal/index.module.scss index e69de29b..c38413be 100644 --- a/components/weapon/WeaponConflictModal/index.module.scss +++ b/components/weapon/WeaponConflictModal/index.module.scss @@ -0,0 +1,69 @@ +.content { + $weapon-diameter: 14rem; + + display: flex; + flex-direction: column; + gap: $unit-4x; + padding: $unit-4x $unit-4x $unit-2x $unit-4x; + + & > p { + font-size: $font-regular; + line-height: 1.4; + + strong { + font-weight: $bold; + } + + &:lang(ja) { + line-height: 1.4; + } + } + + .diagram { + display: grid; + grid-template-columns: 1fr auto 1fr; + align-items: flex-start; + + ul { + align-items: center; + display: flex; + flex-direction: column; + gap: $unit-2x; + } + + .weapon { + display: flex; + flex-direction: column; + gap: $unit; + text-align: center; + width: $weapon-diameter; + font-weight: $medium; + + img { + border-radius: 1rem; + width: $weapon-diameter; + height: auto; + } + + span { + line-height: 1.3; + } + } + + .wrapper { + display: flex; + justify-content: center; + width: 100%; + } + + .arrow { + align-items: center; + color: $grey-55; + display: flex; + font-size: 4rem; + text-align: center; + height: $weapon-diameter; + justify-content: center; + } + } +} diff --git a/components/weapon/WeaponConflictModal/index.tsx b/components/weapon/WeaponConflictModal/index.tsx index 8d6a4166..d9cebe7f 100644 --- a/components/weapon/WeaponConflictModal/index.tsx +++ b/components/weapon/WeaponConflictModal/index.tsx @@ -4,6 +4,7 @@ import { Trans, useTranslation } from 'react-i18next' import { Dialog } from '~components/common/Dialog' import DialogContent from '~components/common/DialogContent' +import DialogFooter from '~components/common/DialogFooter' import Button from '~components/common/Button' import Overlay from '~components/common/Overlay' @@ -69,17 +70,17 @@ const WeaponConflictModal = (props: Props) => { return ( event.preventDefault()} onEscapeKeyDown={close} > -
+

{infoString()}

-
+
    {props.conflictingWeapons?.map((weapon, i) => ( -
  • +
  • {weapon.object.name[locale]} {
  • ))}
- -
-
+ +
+
{props.incomingWeapon?.name[locale]} {
-
-
-
-
+ />, + ]} + />