feat(themes): 骚猪主题

This commit is contained in:
streakingman
2022-09-21 19:27:29 +08:00
parent b3b5737e5c
commit 30bb7a0277
17 changed files with 41 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

+30
View File
@@ -0,0 +1,30 @@
// 骚猪主题
import React from 'react';
import { Theme } from '../interface';
import { DefaultSoundNames, defaultSounds } from '../default';
import bgm from './sounds/bgm.mp3';
const imagesUrls = import.meta.glob('./images/*.png', {
import: 'default',
eager: true,
});
const images = Object.entries(imagesUrls).map(([key, value]) => ({
name: key.slice(9, -4),
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
content: <img src={value} alt="" />,
}));
export const pddTheme: Theme<DefaultSoundNames> = {
title: '🐷猪了个猪🐷',
name: '骚猪',
bgm,
icons: images.map(({ name, content }) => ({
name,
content,
clickSound: 'button-click',
tripleSound: 'triple',
})),
sounds: defaultSounds,
};
Binary file not shown.