-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BOX-241: Rename font, change method to include it #76
Conversation
Kater-auf-Dach
commented
Oct 16, 2021
- Replace "Hover" with "Hoves" in font name
- Replace relative path to fonts with imports
import BlackItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_Black_Italic.woff2'; | ||
import BlackWoff2 from '@box/shared/assets/fonts/TT_Hoves_Black.woff2'; | ||
import BoldItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_Bold_Italic.woff2'; | ||
import BoldWoff2 from '@box/shared/assets/fonts/TT_Hoves_Bold.woff2'; | ||
import DemiBoldItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_DemiBold_Italic.woff2'; | ||
import DemiBoldWoff2 from '@box/shared/assets/fonts/TT_Hoves_DemiBold.woff2'; | ||
import ExtraBoldItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_ExtraBold_Italic.woff2'; | ||
import ExtraBoldWoff2 from '@box/shared/assets/fonts/TT_Hoves_ExtraBold.woff2'; | ||
import ExtraLightItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_ExtraLight_Italic.woff2'; | ||
import ExtraLightWoff2 from '@box/shared/assets/fonts/TT_Hoves_ExtraLight.woff2'; | ||
import ItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_Italic.woff2'; | ||
import LightItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_Light_Italic.woff2'; | ||
import LightWoff2 from '@box/shared/assets/fonts/TT_Hoves_Light.woff2'; | ||
import MediumItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_Medium_Italic.woff2'; | ||
import MediumWoff2 from '@box/shared/assets/fonts/TT_Hoves_Medium.woff2'; | ||
import RegularWoff2 from '@box/shared/assets/fonts/TT_Hoves_Regular.woff2'; | ||
import ThinItalicWoff2 from '@box/shared/assets/fonts/TT_Hoves_Thin_Italic.woff2'; | ||
import ThinWoff2 from '@box/shared/assets/fonts/TT_Hoves_Thin.woff2'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Выглядит жестко)))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sergeysova @dmi-ch А в стайледах точно так делается?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну по относительному пути не подтянулись, наверно, нужно сборку посмотреть. Собственно, в этом проблема и была. Так-то обычно в public/assets клали, но здесь ассетсы в сорцах...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Увы, по другому никак, пока что
Пусть так, потом разберемся и оптимизируем. Может на CDN закинем