feat: colors

This commit is contained in:
TrèsAbhi committed 2024-04-16 22:05:36 -05:00
1 parent 2fd2e93f55
commit c35916c291
2 files changed
+6 -4

No files matched your search

+5 -3
View File
@@ -10,13 +10,14 @@ interface DayProps {
}
export function Day({ offset }: DayProps) {
const timeTo = new Date(Date.now() - offset * 24 * 60 * 60 * 1000);
const timeFrom = new Date(Date.now() - (offset + 1) * 24 * 60 * 60 * 1000);
const awaitedTankDefinitions = use(tankDefinitions);
const tanksList = useMemo(
() => Object.values(awaitedTankDefinitions),
[awaitedTankDefinitions],
);
const [expanded, setExpanded] = useState(true);
const time = new Date(Date.now() - offset * 24 * 60 * 60 * 1000);
const [expanded, setExpanded] = useState(offset === 0);
const tanks = tanksList
.filter((tank) => tank.tier === 10)
.sort(() => Math.random() - 0.5)
@@ -41,7 +42,7 @@ export function Day({ offset }: DayProps) {
}}
>
{expanded ? <CaretDownIcon /> : <CaretRightIcon />}
{time.toLocaleString('default', {
{timeTo.toLocaleString('default', {
month: 'short',
day: 'numeric',
})}
@@ -70,6 +71,7 @@ export function Day({ offset }: DayProps) {
}}
>
<img
draggable={false}
src={tankIcon(tank.id)}
style={{
position: 'absolute',
+1 -1
View File
@@ -8,7 +8,7 @@ import { Day } from './components/Day';
export default function Page() {
return (
<PageWrapper color="indigo">
<PageWrapper color="iris">
<Flex gap="2">
<Heading>TresAbhi</Heading>
<Heading color="gray">[OPTML]</Heading>