Skip to content

Commit 4fa28ea

Browse files
committed
V1.2.0
1 parent 030a327 commit 4fa28ea

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

src/components/EasterEgg.tsx

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
import React from "react";
1+
import React from 'react';
22

33
interface EasterEggProps {
4-
show: boolean;
5-
onClose: () => void;
4+
show: boolean;
5+
onClose: () => void;
66
}
77

88
export const EasterEgg: React.FC<EasterEggProps> = ({ show, onClose }) => {
9-
if (!show) return null;
9+
if (!show) return null;
1010

11-
return (
12-
<div
13-
className="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50"
14-
onClick={onClose}
15-
>
16-
<div className="relative w-full max-w-4xl bg-black rounded-xl overflow-hidden">
17-
<video
18-
autoPlay
19-
controls
20-
className="w-full"
21-
onClick={(e) => e.stopPropagation()}
22-
>
23-
<source src="/easteregg.mp4" type="video/mp4" />
24-
Your browser does not support the video tag.
25-
</video>
26-
</div>
27-
</div>
28-
);
11+
return (
12+
<div className="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50" onClick={onClose}>
13+
<div className="relative w-full max-w-4xl bg-black rounded-xl overflow-hidden">
14+
<video autoPlay controls className="w-full" onClick={(e) => e.stopPropagation()}>
15+
<source src="./easteregg.mp4" type="video/mp4" />
16+
Your browser does not support the video tag.
17+
</video>
18+
</div>
19+
</div>
20+
);
2921
};

0 commit comments

Comments
 (0)