chore: fix segment failed.
This commit is contained in:
parent
28026bcc09
commit
d70c4ae9eb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,27 +0,0 @@
|
||||
/**
|
||||
* OPPO Sans Fonts
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'OPPOSans';
|
||||
src:
|
||||
url(OPPOSans-Regular.woff2) format('woff2'),
|
||||
url(OPPOSans-Regular.ttf) format('truetype');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OPPOSans';
|
||||
src:
|
||||
url(OPPOSans-Medium.woff2) format('woff2'),
|
||||
url(OPPOSans-Medium.ttf) format('truetype');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'OPPOSans';
|
||||
src:
|
||||
url(OPPOSans-Bold.woff2) format('woff2'),
|
||||
url(OPPOSans-Bold.ttf) format('truetype');
|
||||
font-weight: 800;
|
||||
font-style: normal;
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
import { resolveSong, type MusicPlayerProps } from '@/components/player/resolver';
|
||||
import 'aplayer/dist/APlayer.min.css';
|
||||
|
||||
interface Props extends MusicPlayerProps {}
|
||||
|
||||
|
@ -135,13 +135,13 @@ export const defaultOpenGraph = async (): Promise<Buffer> => {
|
||||
return await fetchCover('/images/default-cover.jpg');
|
||||
};
|
||||
|
||||
export const drawOpenGraph = async ({ title, summary, cover }: OpenGraphProps): Promise<Buffer> => {
|
||||
// Register the font if it doesn't exist
|
||||
if (!GlobalFonts.has('NotoSansSC-Bold')) {
|
||||
const fontBuffer = await readFile(join(process.cwd(), 'src/assets/og/NotoSansSC-Bold.ttf'));
|
||||
// Register the font if it doesn't exist
|
||||
if (!GlobalFonts.has('NotoSansSC-Bold')) {
|
||||
const fontBuffer = await readFile(join(process.cwd(), '/src/assets/og/NotoSansSC-Bold.ttf'));
|
||||
GlobalFonts.register(fontBuffer, 'NotoSansSC-Bold');
|
||||
}
|
||||
}
|
||||
|
||||
export const drawOpenGraph = async ({ title, summary, cover }: OpenGraphProps): Promise<Buffer> => {
|
||||
// Fetch the cover image as the background
|
||||
const coverImage = new Image();
|
||||
coverImage.src = await fetchCover(cover);
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
// tslint:disable:ordered-imports
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import '@/assets/styles/opposans/opposans.css';
|
||||
import '@/assets/styles/iconfont/iconfont.css';
|
||||
import 'aplayer/dist/APlayer.min.css';
|
||||
import '@/assets/styles/reset.css';
|
||||
import '@/assets/styles/globals.css';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user