Skip to content

Commit

Permalink
Made changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsArnavSh committed Sep 15, 2024
1 parent e134374 commit edb1123
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 32 deletions.
Binary file added frontend/public/homepage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 11 additions & 32 deletions frontend/src/components/home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import background from "../../../public/background.jpg";
import howtocontribute from "../../../public/howtocontribute.png";
import background from "../../../public/homepage.png";
import p1 from "../../../public/p1.png";
import p2 from "../../../public/p2.png";
import p3 from "../../../public/p3.png";
Expand All @@ -14,38 +13,18 @@ const pokemonImages = [p1, p2, p3, p4, p5, p6, p7, p8];
const Home = () => {
return (
<div
className="min-h-screen bg-cover bg-center flex justify-center items-center relative overflow-hidden"
className="min-h-screen bg-cover bg-center flex flex-col items-center relative overflow-hidden"
style={{ backgroundImage: `url(${background})` }}
>
{/* Images scattered around */}
<div className="flex flex-col items-center justify-center absolute inset-0 pointer-events-none">
<div className="">
<h1 className="text-white text-4xl font-earlyGameboy mb-4 gba">
OSDC PRESENTS
</h1>
<h1 className="text-white text-6xl font-flippsRegular mb-4 gba">
PokeArcadia
</h1>
</div>
{pokemonImages.map((image, index) => (
<img
key={index}
src={image}
alt={`Pokemon ${index + 1}`}
className="w-24 h-24 m-2 opacity-75 transition-transform animate-pokemon"
style={{
position: "absolute",
left: `${Math.random() * 90}vw`,
top: `${Math.random() * 90}vh`,
zIndex: 1,
}}
/>
))}
</div>
{/* Centered text and image */}
<div className="">
<img className="mt-4" src={howtocontribute} alt="How to Contribute" />
</div>
<p className="text-white gba text-xl mt-5">OSDC Presents</p>
<p className="text-white gba text-7xl m-2">PokeArcadia</p>
<p className="text-white gba text-2xl mt-4">Press To Start</p>
<a href="/HallOFame">
<img src={p7} />
</a>
<a href="/Tutorial" className="text-white gba text-xl">
How to contribute
</a>
</div>
);
};
Expand Down

0 comments on commit edb1123

Please sign in to comment.