mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-14 23:17:59 +00:00
configure new icons
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "life-trinket",
|
"name": "life-trinket",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.9.94",
|
"version": "0.9.95",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20",
|
"node": ">=20",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ const ExtraCounterButton = twc.button`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const IconContainer = twc.div<RotationDivProps>((props) => [
|
const IconContainer = twc.div<RotationDivProps>((props) => [
|
||||||
'w-auto',
|
'w-auto opacity-50',
|
||||||
props.$rotation === Rotation.SideFlipped || props.$rotation === Rotation.Side
|
props.$rotation === Rotation.SideFlipped || props.$rotation === Rotation.Side
|
||||||
? 'rotate-[-90deg]'
|
? 'rotate-[-90deg]'
|
||||||
: '',
|
: '',
|
||||||
@@ -126,8 +126,7 @@ const ExtraCounter = ({
|
|||||||
}}
|
}}
|
||||||
aria-label={`Player ${playerIndex} extra counter: ${type}`}
|
aria-label={`Player ${playerIndex} extra counter: ${type}`}
|
||||||
>
|
>
|
||||||
<IconContainer $rotation={rotation}>
|
<IconContainer $rotation={rotation}>{Icon}</IconContainer>
|
||||||
{Icon}
|
|
||||||
<TextContainer>
|
<TextContainer>
|
||||||
<OutlinedText
|
<OutlinedText
|
||||||
fontSize={fontSize}
|
fontSize={fontSize}
|
||||||
@@ -137,7 +136,6 @@ const ExtraCounter = ({
|
|||||||
{counterTotal ? counterTotal : undefined}
|
{counterTotal ? counterTotal : undefined}
|
||||||
</OutlinedText>
|
</OutlinedText>
|
||||||
</TextContainer>
|
</TextContainer>
|
||||||
</IconContainer>
|
|
||||||
</ExtraCounterButton>
|
</ExtraCounterButton>
|
||||||
</ExtraCounterContainer>
|
</ExtraCounterContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ const LifeCounterButtonTwc = twc.button`
|
|||||||
items-center
|
items-center
|
||||||
select-none
|
select-none
|
||||||
webkit-user-select-none
|
webkit-user-select-none
|
||||||
|
opacity-50
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const TextContainer = twc.div<RotationButtonProps>((props) => [
|
const TextContainer = twc.div<RotationButtonProps>((props) => [
|
||||||
|
|||||||
@@ -110,6 +110,8 @@ const ExtraCountersBar = ({ player }: ExtraCountersBarProps) => {
|
|||||||
<CommanderTax
|
<CommanderTax
|
||||||
size={iconSize}
|
size={iconSize}
|
||||||
data-contrast={iconColor}
|
data-contrast={iconColor}
|
||||||
|
strokeWidth={0}
|
||||||
|
stroke="transparent"
|
||||||
className="data-[contrast=dark]:text-icons-dark data-[contrast=light]:text-icons-light"
|
className="data-[contrast=dark]:text-icons-dark data-[contrast=light]:text-icons-light"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
import { useAnalytics } from '../../Hooks/useAnalytics';
|
import { useAnalytics } from '../../Hooks/useAnalytics';
|
||||||
|
import {
|
||||||
|
CommanderTax,
|
||||||
|
Energy,
|
||||||
|
Experience,
|
||||||
|
PartnerTax,
|
||||||
|
Poison,
|
||||||
|
} from '../../Icons/generated';
|
||||||
import { BuyMeCoffee } from '../../Icons/generated/Support';
|
import { BuyMeCoffee } from '../../Icons/generated/Support';
|
||||||
import { Separator } from '../Misc/Separator';
|
import { Separator } from '../Misc/Separator';
|
||||||
import { Paragraph } from '../Misc/TextComponents';
|
import { Paragraph } from '../Misc/TextComponents';
|
||||||
@@ -16,7 +23,35 @@ export const InfoDialog = ({
|
|||||||
<h2 className="text-md underline">Contributors</h2>
|
<h2 className="text-md underline">Contributors</h2>
|
||||||
<div className="flex flex-row items-center gap-1 text-sm">
|
<div className="flex flex-row items-center gap-1 text-sm">
|
||||||
{/* <Trinket className="size-4" /> */}
|
{/* <Trinket className="size-4" /> */}
|
||||||
<a href="#">Elin:</a> Icon design
|
<div className="flex flex-col">
|
||||||
|
<div>
|
||||||
|
<a
|
||||||
|
href="https://github.com/Vikeo"
|
||||||
|
target="_blank"
|
||||||
|
className="text-text-secondary underline"
|
||||||
|
>
|
||||||
|
Vikeo
|
||||||
|
</a>
|
||||||
|
: Creator
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="#" className="text-text-secondary underline">
|
||||||
|
Elin
|
||||||
|
</a>
|
||||||
|
: Icon design
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="mt-2 text-text-primary">
|
||||||
|
Visit the{' '}
|
||||||
|
<a
|
||||||
|
href="https://github.com/Vikeo/LifeTrinket"
|
||||||
|
target="_blank"
|
||||||
|
className="text-text-secondary underline"
|
||||||
|
>
|
||||||
|
GitHub
|
||||||
|
</a>{' '}
|
||||||
|
to contribute or learn more about this web app.
|
||||||
</div>
|
</div>
|
||||||
<Separator height="1px" />
|
<Separator height="1px" />
|
||||||
</div>
|
</div>
|
||||||
@@ -56,6 +91,25 @@ export const InfoDialog = ({
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h3 className="text-lg font-bold mb-1">Other counter symbols</h3>
|
||||||
|
<ul className="list-disc ml-6 mb-4">
|
||||||
|
<li className="flex items-center">
|
||||||
|
<CommanderTax className="size-6" /> - Commander Tax
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center">
|
||||||
|
<PartnerTax className="size-6" /> - Partner Tax
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center">
|
||||||
|
<Poison className="size-6" /> - Poison
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center">
|
||||||
|
<Energy className="size-6" /> - Energy
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center">
|
||||||
|
<Experience className="size-6" /> - Experience
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<h3 className="text-lg font-bold mb-2">Other functionality</h3>
|
<h3 className="text-lg font-bold mb-2">Other functionality</h3>
|
||||||
<ul className="list-disc ml-6">
|
<ul className="list-disc ml-6">
|
||||||
<li>
|
<li>
|
||||||
@@ -74,20 +128,24 @@ export const InfoDialog = ({
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h3 className="text-lg font-bold mb-2">Acknowledgements </h3>
|
||||||
|
<Paragraph>
|
||||||
|
LifeTrinket is unofficial Fan Content permitted under the{' '}
|
||||||
|
<a
|
||||||
|
href="https://company.wizards.com/en/legal/fancontentpolicy"
|
||||||
|
className="text-text-secondary underline"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
Fan Content Policy
|
||||||
|
</a>
|
||||||
|
. Not approved or endorsed by Wizards. Portions of the material or
|
||||||
|
concepts, such as "Commander", used are property of Wizards of the
|
||||||
|
Coast. ©Wizards of the Coast LLC.
|
||||||
|
</Paragraph>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="text-center mt-4 text-text-primary">
|
|
||||||
Visit my{' '}
|
|
||||||
<a
|
|
||||||
href="https://github.com/Vikeo/LifeTrinket"
|
|
||||||
target="_blank"
|
|
||||||
className="text-text-secondary underline"
|
|
||||||
>
|
|
||||||
GitHub
|
|
||||||
</a>{' '}
|
|
||||||
for more info about this web app.
|
|
||||||
</div>
|
|
||||||
<div className="flex justify-center mt-4">
|
<div className="flex justify-center mt-4">
|
||||||
<a
|
<a
|
||||||
className="flex flex-row items-center self-center border-none cursor-pointer bg-primary-main rounded-md mx-4 pr-4 pl-3 py-2 transition-colors duration-200 ease-in-out shadow-[1px_2px_4px_0px_rgba(0,0,0,0.3)] hover:bg-primary-dark"
|
className="flex flex-row items-center self-center border-none cursor-pointer bg-primary-main rounded-md mx-4 pr-4 pl-3 py-2 transition-colors duration-200 ease-in-out shadow-[1px_2px_4px_0px_rgba(0,0,0,0.3)] hover:bg-primary-dark"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { StartingPlayerCard } from '../PreStartGame/StartingPlayerCard';
|
|||||||
import Health from './Health';
|
import Health from './Health';
|
||||||
|
|
||||||
const SettingsButtonTwc = twc.button<RotationButtonProps>((props) => [
|
const SettingsButtonTwc = twc.button<RotationButtonProps>((props) => [
|
||||||
'absolute flex-grow border-none outline-none cursor-pointer bg-transparent z-[1] select-none webkit-user-select-none',
|
'absolute flex-grow border-none outline-none cursor-pointer bg-transparent z-[1] select-none webkit-user-select-none opacity-50',
|
||||||
props.$rotation === Rotation.Side || props.$rotation === Rotation.SideFlipped
|
props.$rotation === Rotation.Side || props.$rotation === Rotation.SideFlipped
|
||||||
? `right-auto top-[1vmax] left-[27%]`
|
? `right-auto top-[1vmax] left-[27%]`
|
||||||
: 'top-1/4 right-[1vmax]',
|
: 'top-1/4 right-[1vmax]',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { twc } from 'react-twc';
|
import { twc } from 'react-twc';
|
||||||
|
|
||||||
export const Paragraph = twc.p`text-text-primary;`;
|
export const Paragraph = twc.p`text-text-primary`;
|
||||||
|
|
||||||
// eslint-disable-next-line react-refresh/only-export-components
|
// eslint-disable-next-line react-refresh/only-export-components
|
||||||
export const H1 = twc.h1`text-text-primary;`;
|
export const H1 = twc.h1`text-text-primary;`;
|
||||||
|
|||||||
@@ -24,8 +24,7 @@ const PlayerMenuWrapper = twc.div`
|
|||||||
flex
|
flex
|
||||||
flex-col
|
flex-col
|
||||||
absolute
|
absolute
|
||||||
w-full
|
size-full
|
||||||
h-full
|
|
||||||
bg-background-settings
|
bg-background-settings
|
||||||
backdrop-blur-[3px]
|
backdrop-blur-[3px]
|
||||||
items-center
|
items-center
|
||||||
@@ -223,7 +222,7 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color="black"
|
color="black"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="30"
|
strokeWidth="1"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
checkedIcon={
|
checkedIcon={
|
||||||
@@ -231,7 +230,9 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color={player.color}
|
color={player.color}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="30"
|
strokeWidth="1"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeLinecap="round"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@@ -254,7 +255,7 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color="black"
|
color="black"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="30"
|
strokeWidth="2"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
checkedIcon={
|
checkedIcon={
|
||||||
@@ -262,7 +263,9 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color={player.color}
|
color={player.color}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="30"
|
strokeWidth="2"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeLinecap="round"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@@ -284,7 +287,7 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color="black"
|
color="black"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="15"
|
strokeWidth={2.2}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
checkedIcon={
|
checkedIcon={
|
||||||
@@ -292,7 +295,7 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color={player.color}
|
color={player.color}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="15"
|
strokeWidth={2.2}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@@ -314,7 +317,7 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color="black"
|
color="black"
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="15"
|
strokeWidth={2.5}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
checkedIcon={
|
checkedIcon={
|
||||||
@@ -322,7 +325,7 @@ const PlayerMenu = ({
|
|||||||
size={extraCountersSize}
|
size={extraCountersSize}
|
||||||
color={player.color}
|
color={player.color}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth="15"
|
strokeWidth={2.5}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ export const baseColors = {
|
|||||||
settings: 'rgba(0, 0, 0, 0.8)',
|
settings: 'rgba(0, 0, 0, 0.8)',
|
||||||
},
|
},
|
||||||
icons: {
|
icons: {
|
||||||
dark: '#00000080',
|
dark: '#000000',
|
||||||
light: '#F9FFE34f',
|
light: '#F9FFE3',
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
primary: '#F9FFE3',
|
primary: '#F9FFE3',
|
||||||
|
|||||||
Reference in New Issue
Block a user