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

Add an icon to represent war #464

Merged
merged 1 commit into from
Mar 28, 2024
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: 2 additions & 2 deletions frontend/components/WarPortrait.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image"
import MilitaryIcon from "@/images/icons/military.svg"
import WarIcon from "@/images/icons/war.svg"
import War from "@/classes/War"
import Punic1 from "@/images/wars/punic1.png"
import Punic2 from "@/images/wars/punic2.png"
Expand Down Expand Up @@ -52,7 +52,7 @@ const WarPortrait = ({ war }: WarPortraitProps) => {
<div className="border-2 border-solid border-neutral-700 dark:border-black rounded bg-red-600 dark:bg-red-700">
<div className="relative p-0.5 flex">
<div className="absolute bg-black/75 h-[36px] w-[36px] flex justify-center items-center">
<Image src={MilitaryIcon} alt="War Icon" height={30} width={30} />
<Image src={WarIcon} alt="War Icon" height={30} width={30} />
</div>
<div className="absolute right-0.5 bottom-0.5 h-[36px] w-[36px] flex justify-center items-center">
<div className="h-[26px] w-[26px] bg-black/75 rounded-full flex justify-center items-center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image"
import MilitaryIcon from "@/images/icons/military.svg"
import WarIcon from "@/images/icons/war.svg"
import ActionLog from "@/classes/ActionLog"
import War from "@/classes/War"
import EnemyLeader from "@/classes/EnemyLeader"
Expand All @@ -26,7 +26,7 @@ const MatchedEnemyLeaderActionLog = ({

const getIcon = () => (
<div className="h-[18px] w-[24px] flex justify-center">
<Image src={MilitaryIcon} alt="war icon" width={30} height={30} />
<Image src={WarIcon} alt="war icon" width={30} height={30} />
</div>
)

Expand Down
4 changes: 2 additions & 2 deletions frontend/components/actionLogs/ActionLog_MatchedWar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image"
import MilitaryIcon from "@/images/icons/military.svg"
import WarIcon from "@/images/icons/war.svg"
import ActionLog from "@/classes/ActionLog"
import War from "@/classes/War"
import { useGameContext } from "@/contexts/GameContext"
Expand Down Expand Up @@ -28,7 +28,7 @@ const MatchedWarActionLog = ({ notification }: ActionLogProps) => {

const getIcon = () => (
<div className="h-[18px] w-[24px] flex justify-center">
<Image src={MilitaryIcon} alt="war icon" width={30} height={30} />
<Image src={WarIcon} alt="war icon" width={30} height={30} />
</div>
)

Expand Down
4 changes: 2 additions & 2 deletions frontend/components/actionLogs/ActionLog_NewEnemyLeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image"
import MilitaryIcon from "@/images/icons/military.svg"
import WarIcon from "@/images/icons/war.svg"
import ActionLog from "@/classes/ActionLog"
import { useGameContext } from "@/contexts/GameContext"
import War from "@/classes/War"
Expand Down Expand Up @@ -34,7 +34,7 @@ const NewEnemyLeaderActionLog = ({ notification }: ActionLogProps) => {

const getIcon = () => (
<div className="h-[18px] w-[24px] flex justify-center">
<Image src={MilitaryIcon} alt="war icon" width={30} height={30} />
<Image src={WarIcon} alt="war icon" width={30} height={30} />
</div>
)

Expand Down
4 changes: 2 additions & 2 deletions frontend/components/actionLogs/ActionLog_NewWar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image"
import MilitaryIcon from "@/images/icons/military.svg"
import WarIcon from "@/images/icons/war.svg"
import ActionLog from "@/classes/ActionLog"
import War from "@/classes/War"
import { useGameContext } from "@/contexts/GameContext"
Expand Down Expand Up @@ -42,7 +42,7 @@ const NewWarActionLog = ({ notification }: ActionLogProps) => {

const getIcon = () => (
<div className="h-[18px] w-[24px] flex justify-center">
<Image src={MilitaryIcon} alt="War Icon" width={30} height={30} />
<Image src={WarIcon} alt="War Icon" width={30} height={30} />
</div>
)

Expand Down
1 change: 1 addition & 0 deletions frontend/images/icons/war.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading