diff --git a/src/App.tsx b/src/App.tsx index 9038f5c..bcdc6e9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,6 +6,7 @@ import Music, { MusicEntry } from './components/music.tsx'; import { Bdpfp, Normalpfp } from './components/pfp.tsx'; import { InfoCard } from './components/middlecard.tsx'; export const [shouldpopup, setpopup] = createSignal(false) +export const [shouldpopupEasterEgg, setpopupEasterEgg] = createSignal(false) export const [ishover, setishover] = createSignal(false) let explodcount = 0 @@ -79,7 +80,7 @@ function App() { }} classList={{ 'gitgayimg': true, 'animate': isAnimating(), 'gaybackground': isAnimating() }} src="https://proxy.mono.exhq.dev/_/plain/https://git.lgbt/assets/img/logo.png" alt="logo of git.lgbt" /> as HTMLImageElement return ( <> - {isitmybd() ? : } + {isitmybd() ? : } AdvancedBr my beloved @@ -177,6 +178,16 @@ function App() { + + + + + { setpopupEasterEgg(false) }}>X + + + + + > ) diff --git a/src/components/pfp.tsx b/src/components/pfp.tsx index e7be414..f1dc269 100644 --- a/src/components/pfp.tsx +++ b/src/components/pfp.tsx @@ -1,50 +1,47 @@ import HoverComponent from "./name" import "./pfp.css" -function remov() { - for (let i = 0; i < document.styleSheets.length; i++) { - let styleSheet = document.styleSheets[i]; - let rules = styleSheet.cssRules || styleSheet.rules; - for (let j = 0; j < rules.length; j++) { - let rule = rules[j]; - if (rule.type === CSSRule.KEYFRAMES_RULE && ((rule as CSSKeyframesRule).name === "slide-left")) { - styleSheet.deleteRule(j); - } - } - } -} - -export function Bdpfp() { - return +export function Bdpfp({setpopupEasterEgg}: { setpopupEasterEgg: (value: boolean) => void }) { + return { + e.preventDefault() + setpopupEasterEgg(true) + }} class='header bd'> - - - + + + } -export function Normalpfp() { - return - { +export function Normalpfp({setpopupEasterEgg}: { setpopupEasterEgg: (value: boolean) => void }) { + return { + e.preventDefault() + setpopupEasterEgg(true) + }} class="birthdayparent header normal"> + { (e.target as HTMLImageElement).animate([ - { transform: "rotateZ(0deg)" }, - { transform: "rotateZ(360deg)" }, + {transform: "rotateZ(0deg)"}, + {transform: "rotateZ(360deg)"}, ], { duration: 400, iterations: 1, }) }} onClick={(e) => { (e.target as HTMLImageElement).animate([ - { transform: "rotateY(0deg)" }, - { transform: "rotateY(360deg)" }, + {transform: "rotateY(0deg)"}, + {transform: "rotateY(360deg)"}, ], { duration: 150, iterations: 1, }) - }} /> - + }}/> + } \ No newline at end of file
AdvancedBr my beloved