fix(styles): resolve font not found
This commit is contained in:
parent
656ce45d44
commit
5b86ebbf7e
@ -13,7 +13,6 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/press-start-2p": "^4.5.11",
|
|
||||||
"@motionone/solid": "10.16.0",
|
"@motionone/solid": "10.16.0",
|
||||||
"@tauri-apps/api": "^1.2.0",
|
"@tauri-apps/api": "^1.2.0",
|
||||||
"@tauri-apps/cli": "^1.2.3",
|
"@tauri-apps/cli": "^1.2.3",
|
||||||
|
21
pnpm-lock.yaml
generated
21
pnpm-lock.yaml
generated
@ -1,9 +1,6 @@
|
|||||||
lockfileVersion: '6.0'
|
lockfileVersion: '6.0'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@fontsource/press-start-2p':
|
|
||||||
specifier: ^4.5.11
|
|
||||||
version: 4.5.11
|
|
||||||
'@motionone/solid':
|
'@motionone/solid':
|
||||||
specifier: 10.16.0
|
specifier: 10.16.0
|
||||||
version: 10.16.0(solid-js@1.7.4)
|
version: 10.16.0(solid-js@1.7.4)
|
||||||
@ -45,9 +42,6 @@ devDependencies:
|
|||||||
eslint:
|
eslint:
|
||||||
specifier: 8.39.0
|
specifier: 8.39.0
|
||||||
version: 8.39.0
|
version: 8.39.0
|
||||||
eslint-plugin-tailwindcss:
|
|
||||||
specifier: ^3.11.0
|
|
||||||
version: 3.11.0(tailwindcss@3.3.2)
|
|
||||||
postcss:
|
postcss:
|
||||||
specifier: 8.4.23
|
specifier: 8.4.23
|
||||||
version: 8.4.23
|
version: 8.4.23
|
||||||
@ -657,10 +651,6 @@ packages:
|
|||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@fontsource/press-start-2p@4.5.11:
|
|
||||||
resolution: {integrity: sha512-wICB8YPvoBi9Ok7s+CxAOljiQ6wqQN/UhrDrB63q9nudYDSOWmvrjFQaXSlj0AN16nAkDjZiaCz6dcKtR0kleg==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@humanwhocodes/config-array@0.11.8:
|
/@humanwhocodes/config-array@0.11.8:
|
||||||
resolution: {integrity: sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==}
|
resolution: {integrity: sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==}
|
||||||
engines: {node: '>=10.10.0'}
|
engines: {node: '>=10.10.0'}
|
||||||
@ -2012,17 +2002,6 @@ packages:
|
|||||||
eslint: 8.39.0
|
eslint: 8.39.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/eslint-plugin-tailwindcss@3.11.0(tailwindcss@3.3.2):
|
|
||||||
resolution: {integrity: sha512-RaraOG4D6VXutKnoNvFQ4+frTWGJDKtezy1yCrGFS7Um1to/npDNdh2GL19IRoGB/eanbtwhxFXy+xyEw0grAg==}
|
|
||||||
engines: {node: '>=12.13.0'}
|
|
||||||
peerDependencies:
|
|
||||||
tailwindcss: ^3.2.2
|
|
||||||
dependencies:
|
|
||||||
fast-glob: 3.2.12
|
|
||||||
postcss: 8.4.23
|
|
||||||
tailwindcss: 3.3.2
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/eslint-plugin-unicorn@45.0.2(eslint@8.39.0):
|
/eslint-plugin-unicorn@45.0.2(eslint@8.39.0):
|
||||||
resolution: {integrity: sha512-Y0WUDXRyGDMcKLiwgL3zSMpHrXI00xmdyixEGIg90gHnj0PcHY4moNv3Ppje/kDivdAy5vUeUr7z211ImPv2gw==}
|
resolution: {integrity: sha512-Y0WUDXRyGDMcKLiwgL3zSMpHrXI00xmdyixEGIg90gHnj0PcHY4moNv3Ppje/kDivdAy5vUeUr7z211ImPv2gw==}
|
||||||
engines: {node: '>=14.18'}
|
engines: {node: '>=14.18'}
|
||||||
|
BIN
public/PressStart2P-Regular.ttf
Normal file
BIN
public/PressStart2P-Regular.ttf
Normal file
Binary file not shown.
@ -43,18 +43,11 @@ export const Downloaders: Component = () => {
|
|||||||
return callback(`Completed in: ${seconds} seconds`, 'success')
|
return callback(`Completed in: ${seconds} seconds`, 'success')
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(Animation.fadeInOut({ scale: [0, 1, 0], y: [1, 4, 1] }))
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Loader active={loading()} class='mt-10' />
|
<Loader active={loading()} class='mt-10' />
|
||||||
<Popup condition={popup()}>
|
<Popup condition={popup()}>
|
||||||
<span
|
<span class={classNames('', { 'text-red-600': error })}>{message()}</span>
|
||||||
class={classNames('', {
|
|
||||||
'text-red-600': error
|
|
||||||
})}>
|
|
||||||
{message()}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
value='Close'
|
value='Close'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { render } from 'solid-js/web'
|
import { render } from 'solid-js/web'
|
||||||
|
|
||||||
import './styles.css'
|
import './styles/fonts.css'
|
||||||
import '@fontsource/press-start-2p'
|
import './styles/styles.css'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
|
|
||||||
render(() => {
|
render(() => {
|
||||||
|
13
src/styles/fonts.css
Normal file
13
src/styles/fonts.css
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Press Start 2P';
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url('./PressStart2P-Regular.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
font-family: 'Press Start 2P';
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
@ -2,12 +2,6 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
#root {
|
|
||||||
font-family: 'Press Start 2P';
|
|
||||||
overflow: hidden;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
.retro-text-shadow {
|
.retro-text-shadow {
|
||||||
text-shadow: 0px 1.5px 0px #000000, -1px 3px 0px rgba(0, 0, 0, 0.54);
|
text-shadow: 0px 1.5px 0px #000000, -1px 3px 0px rgba(0, 0, 0, 0.54);
|
7
src/types/Converters.d.ts
vendored
7
src/types/Converters.d.ts
vendored
@ -6,16 +6,15 @@ import type {
|
|||||||
IFurni,
|
IFurni,
|
||||||
IProduct
|
IProduct
|
||||||
} from './SubConverters'
|
} from './SubConverters'
|
||||||
import type { KeyValuePairs } from './global'
|
|
||||||
|
|
||||||
export interface IFigureData {
|
export interface IFigureData {
|
||||||
palettes: IFigureDataPalette[]
|
palettes: IFigureDataPalette[]
|
||||||
setTypes: KeyValuePairs<string, IFigureDataSetType>
|
setTypes: Record<string, IFigureDataSetType>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IFigureMap {
|
export interface IFigureMap {
|
||||||
libraries: IFigureMapLibrary[]
|
libraries: IFigureMapLibrary[]
|
||||||
parts: KeyValuePairs<string, KeyValuePairs<number, number>>
|
parts: Record<string, Record<number, number>>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IFurniData {
|
export interface IFurniData {
|
||||||
@ -23,7 +22,7 @@ export interface IFurniData {
|
|||||||
wallItems: IFurni[]
|
wallItems: IFurni[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IEffectMap = KeyValuePairs<string, KeyValuePairs<string, string>>
|
export type IEffectMap = Record<string, Record<string, string>>
|
||||||
|
|
||||||
export interface IProductData {
|
export interface IProductData {
|
||||||
productData: { product: IProduct }
|
productData: { product: IProduct }
|
||||||
|
6
src/types/SubConverters.d.ts
vendored
6
src/types/SubConverters.d.ts
vendored
@ -1,5 +1,3 @@
|
|||||||
import type { KeyValuePairs } from './global'
|
|
||||||
|
|
||||||
export interface IFloorItemDimensions {
|
export interface IFloorItemDimensions {
|
||||||
x: number
|
x: number
|
||||||
y: number
|
y: number
|
||||||
@ -39,7 +37,7 @@ export interface IFigureDataPaletteType {
|
|||||||
color: string
|
color: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IFigureDataPalette = KeyValuePairs<number, IFigureDataPaletteType>
|
export type IFigureDataPalette = Record<number, IFigureDataPaletteType>
|
||||||
|
|
||||||
export interface IFigureDataPart {
|
export interface IFigureDataPart {
|
||||||
id: number
|
id: number
|
||||||
@ -66,7 +64,7 @@ export interface IFigureDataSetType {
|
|||||||
mandatoryF1: boolean
|
mandatoryF1: boolean
|
||||||
mandatoryM0: boolean
|
mandatoryM0: boolean
|
||||||
mandatoryM1: boolean
|
mandatoryM1: boolean
|
||||||
sets: KeyValuePairs<number, IFigureDataSet>
|
sets: Record<number, IFigureDataSet>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IFigureMapLibraryPart {
|
export interface IFigureMapLibraryPart {
|
||||||
|
Loading…
Reference in New Issue
Block a user