feat: font

This commit is contained in:
tresabhi committed 2025-05-07 19:32:18 -05:00
1 parent d2e7a477bb
commit b86b6e09d0
6 files changed
+12 -4

No files matched your search

BIN
View File
Binary file not shown.
+1
View File
@@ -14,6 +14,7 @@
"@astrolib/seo": "^1.0.0-beta.8", "@astrolib/seo": "^1.0.0-beta.8",
"@blitzkit/core": "workspace:*", "@blitzkit/core": "workspace:*",
"@blitzkit/i18n": "workspace:*", "@blitzkit/i18n": "workspace:*",
"@fontsource/inter": "^5.2.5",
"@nanostores/persistent": "^0.10.2", "@nanostores/persistent": "^0.10.2",
"@nanostores/react": "^0.7.3", "@nanostores/react": "^0.7.3",
"@nivo/bar": "^0.87.0", "@nivo/bar": "^0.87.0",
@@ -120,7 +120,7 @@ export function Options({ thicknessRange, canvas, skeleton }: OptionsProps) {
gap="2" gap="2"
direction="column" direction="column"
top="50%" top="50%"
right={display === TankopediaDisplay.DynamicArmor ? '3' : '-3rem'} right={display === TankopediaDisplay.DynamicArmor ? '3' : '-4rem'}
style={{ style={{
position: 'absolute', position: 'absolute',
transform: 'translateY(-50%)', transform: 'translateY(-50%)',
@@ -93,8 +93,8 @@ export function Title({ outline }: TitleProps) {
}} }}
> >
<Heading <Heading
weight="bold"
style={{ style={{
fontWeight: 900,
userSelect: 'none', userSelect: 'none',
pointerEvents: 'none', pointerEvents: 'none',
fontSize: revealed fontSize: revealed
@@ -104,14 +104,16 @@ export function Title({ outline }: TitleProps) {
: `${75 / name.length}vw`, : `${75 / name.length}vw`,
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
color: outline ? Var(`${nationColors.tint}-a2`) : color, color: outline ? Var(`${nationColors.tint}-a2`) : color,
opacity: outline && disturbed ? 0 : 1,
WebkitTextStroke: outline WebkitTextStroke: outline
? `${revealed ? (disturbed ? '1px' : 'min(2px, 0.2vw)') : 0} ${color}` ? `${revealed ? (disturbed ? '1px' : 'min(2px, 0.2vw)') : 0} ${color}`
: undefined, : undefined,
letterSpacing: disturbed || !revealed ? 0 : '-0.03em', letterSpacing: disturbed || !revealed ? 0 : '-0.03em',
transition: ` transition: `
letter-spacing 1s ${disturbed ? '0s' : '1s'}, letter-spacing 1.5s cubic-bezier(.81,-2,.68,1),
font-size 1s, font-size 1s,
-webkit-text-stroke 1.5s -webkit-text-stroke 2s,
opacity 1s
`, `,
}} }}
wrap="nowrap" wrap="nowrap"
@@ -1,4 +1,5 @@
--- ---
import '@fontsource/inter';
import { Flex } from '@radix-ui/themes'; import { Flex } from '@radix-ui/themes';
import { BlitzKitTheme } from '../components/BlitzKitTheme'; import { BlitzKitTheme } from '../components/BlitzKitTheme';
import { Checks } from '../components/Checks'; import { Checks } from '../components/Checks';
+4
View File
@@ -1,5 +1,9 @@
@import '@radix-ui/themes/styles.css'; @import '@radix-ui/themes/styles.css';
.radix-themes {
--default-font-family: 'Inter';
}
body { body {
margin: 0; margin: 0;
} }