Skip to content

Commit

Permalink
add bkbk
Browse files Browse the repository at this point in the history
  • Loading branch information
vipzero committed Jan 6, 2024
1 parent e8d30d5 commit 7db0721
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Home/Cvote/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const eekeysGimic = [
'masshiro', // R
'halowa',
'rain', // R
'bkbk',
'rainbow',
'gaming',
'subetef',
Expand Down Expand Up @@ -141,6 +142,7 @@ export const EX_PATTERNS_ANIME_OR_ALBUM: [string | RegExp, Eekey][] = [
// ['極黒のブリュンヒルデ', 'bryunhild'],
// [/山田.*魔女/, 'yamajo'],
['コードギアス', 'codegeass'],
[/|cyberpunk/i, 'cyberpunk'],
]
export const EX_PATTERNS_CUSTOM: [(_song: Song) => boolean, Eekey][] = [
// [ (song) => song.animeTitle === '人生', 'jinsei' ],
Expand Down Expand Up @@ -179,6 +181,7 @@ export const EX_PATTERNS_ICY: [string | RegExp, Eekey][] = [
],
[/||choco/i, 'choco'],
[/|cyberpunk/i, 'cyberpunk'],
[/||||/i, 'bkbk'],
]

// protobuf 逆引き用, 再割り当てと欠落不可
Expand Down Expand Up @@ -237,4 +240,5 @@ export const eeId: Record<EekeyStr, number> = {
choco: 50,
codegeass: 51,
cyberpunk: 52,
bkbk: 53,
}
21 changes: 21 additions & 0 deletions src/components/Home/ex/ExtraComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,25 @@ const RainEx = () => {
)
}

const BkbkEx = () => (
<div id="bkbk">
{range(20).map((i) => (
<div
className="bubbles"
key={i}
style={{
left: `${Math.random() * 100}vw`,
opacity: `${Math.random() * 0.5 + 0.5}`,
animation: `up ${Math.random() * 10 + 4}s linear infinite`,
transform: `scale(${Math.random() * 0.5 + 0.1})`,
}}
>
<div style={{}}></div>
</div>
))}
</div>
)

const MtsEx = ({ s }: { s: string }) => {
if (!s) return null
const lineUp = (s: string) => {
Expand Down Expand Up @@ -176,6 +195,8 @@ function ExCompMain({ eeKey, rand, eeOpt, eeMemo }: ExCompProp) {
</FloatingBox>
</div>
)
} else if (eeKey === 'bkbk') {
return <BkbkEx />
}
return null
}
Expand Down
41 changes: 41 additions & 0 deletions src/components/Home/ex/exStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,47 @@ export const exStyles = css`
animation-duration: 8s;
}
}
&[data-ex='bkbk'] {
#bkbk {
position: absolute;
right: 0;
top: 0;
width: 100vw;
height: 100vh;
border: solid 1px orange;
/* Bubbles */
.bubbles {
position: absolute;
bottom: 0;
/* z-index: 5; */
margin-right: 50px;
background-color: white;
border-radius: 50%;
/* opacity: 0.5; */
width: 40px;
height: 40px;
animation: up 4s infinite;
}
/* Bubbles Animation */
@keyframes up {
100% {
transform: translateY(-100vh);
}
}
}
@keyframes plasma {
0% {
transform: scale(6) translate3d(20px, 0, 0);
}
50% {
transform: scale(1) translate3d(-60px, 0, 0);
}
100% {
transform: scale(6) translate3d(20px, 0, 0);
}
}
}
&[data-theme='kokaku'] {
--ex-color: #0385f4;
Expand Down
1 change: 1 addition & 0 deletions src/stories/Home.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const Flip = eeArgs('flip')
export const Aria = eeArgs('ariascarlet')
export const Shiki = eeArgs('subetef')
export const Parapara = eeArgs('parapara')
export const Bkbk = eeArgs('bkbk')
export const Mts10A = {
args: {
setting: {
Expand Down

0 comments on commit 7db0721

Please sign in to comment.