-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add info button + default black theme (#244)
* Add info button + default black theme * Disable codecov comments
- Loading branch information
1 parent
af78b4d
commit 4850284
Showing
11 changed files
with
77 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
codecov: | ||
comment: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import relic_icon from "../../public/icons/general/relic_icon.png"; | ||
import Image from "next/image"; | ||
|
||
const RelicIcon = ({ size = 20 }: { size?: number }) => { | ||
return <Image src={relic_icon} alt={`$Relic icon`} width={size} height={size} unoptimized />; | ||
}; | ||
|
||
export default RelicIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { ActionIcon, Code, Group, HoverCard, Text } from "@mantine/core"; | ||
import { IconBrandSteam, IconInfoCircle } from "@tabler/icons-react"; | ||
import React from "react"; | ||
import RelicIcon from "../../../icon/relic-icon"; | ||
|
||
const PlayerIdIcon = ({ relicID, steamID }: { relicID: number; steamID?: string }) => { | ||
return ( | ||
<HoverCard width={260} shadow="md"> | ||
<HoverCard.Target> | ||
<ActionIcon size="lg" variant="default" radius="md"> | ||
<IconInfoCircle size={25} /> | ||
</ActionIcon> | ||
</HoverCard.Target> | ||
<HoverCard.Dropdown> | ||
<Group spacing={"xs"}> | ||
<RelicIcon size={17} /> | ||
<Text size="sm">Relic ID </Text> | ||
|
||
<Code>{relicID}</Code> | ||
</Group> | ||
{steamID && ( | ||
<Group spacing={"xs"}> | ||
<IconBrandSteam size={15} /> | ||
<Text size="sm">Steam ID</Text> | ||
<Code>{steamID}</Code> | ||
</Group> | ||
)} | ||
</HoverCard.Dropdown> | ||
</HoverCard> | ||
); | ||
}; | ||
|
||
export default PlayerIdIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters