Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions components/About/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ const About = () => {
</span>
</h2>
<p>
Play games and earn rewards. Use rewards to donate to charity
and help people in need. Play games and earn rewards. Use
rewards to donate to charity and help people in need.
Play Games, Earn Rewards, and Give Back!
</p>

<div className="mt-7.5 flex items-center gap-5">
Expand All @@ -86,9 +84,9 @@ const About = () => {
</div>
<div className="w-3/4">
<h3 className="mb-0.5 text-metatitle2 text-black dark:text-white">
Sign Up & Get Bonus
Sign Up & Get a Bonus:
</h3>
<p>Sign up now and get bonuses.</p>
<p>Sign up today and instantly get 500 points to kickstart your journey!.</p>
</div>
</div>
<div className="mt-7.5 flex items-center gap-5">
Expand All @@ -99,10 +97,11 @@ const About = () => {
</div>
<div className="w-3/4">
<h3 className="mb-0.5 text-metatitle2 text-black dark:text-white">
Play & Earn Rewards
Play, Watch, and Earn:
</h3>
<p>Play games, watch ads & answer surveys.</p>
<p>Play games, watch ads, and take surveys to earn rewards.</p>
</div>

</div>
</motion.div>
</div>
Expand Down
45 changes: 3 additions & 42 deletions components/Brands/brandData.tsx
Original file line number Diff line number Diff line change
@@ -1,48 +1,9 @@
import { Brand } from "@/types/brand";

const brandData: Brand[] = [
{
id: 0.25,
name: "Client",
href: "#",
image: "/images/brand/brand-light-01.svg",
imageLight: "/images/brand/brand-dark-01.svg",
},
{
id: 0.3,
name: "Client",
href: "#",
image: "/images/brand/brand-light-02.svg",
imageLight: "/images/brand/brand-dark-02.svg",
},
{
id: 0.4,
name: "Client",
href: "#",
image: "/images/brand/brand-light-03.svg",
imageLight: "/images/brand/brand-dark-03.svg",
},
{
id: 0.5,
name: "Client",
href: "#",
image: "/images/brand/brand-light-04.svg",
imageLight: "/images/brand/brand-dark-04.svg",
},
{
id: 0.6,
name: "Client",
href: "#",
image: "/images/brand/brand-light-05.svg",
imageLight: "/images/brand/brand-dark-05.svg",
},
{
id: 0.7,
name: "Client",
href: "#",
image: "/images/brand/brand-light-06.svg",
imageLight: "/images/brand/brand-dark-06.svg",
},
Comment on lines -4 to -45
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good way to remove any component from a next.js project.
image

YOu can just simply uncomment the component from the app/page file.




];

export default brandData;
16 changes: 1 addition & 15 deletions components/Brands/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,7 @@ import SingleBrand from "./SingleBrand";
import brandData from "./brandData";

const Brands = () => {
return (
<>
{/* <!-- ===== Clients Start ===== --> */}
<section className="border border-x-0 border-y-stroke bg-alabaster py-11 dark:border-y-strokedark dark:bg-black">
<div className="mx-auto max-w-c-1390 px-4 md:px-8 2xl:px-0">
<div className="grid grid-cols-3 items-center justify-center gap-7.5 md:grid-cols-6 lg:gap-12.5 xl:gap-29">
{brandData.map((brand, key) => (
<SingleBrand brand={brand} key={key} />
))}
</div>
</div>
</section>
{/* <!-- ===== Clients End ===== --> */}
</>
);

};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You won't have to remove component's part. you just can comment or remove the component from the app/pages file
image


export default Brands;
4 changes: 1 addition & 3 deletions components/CTA/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ const CTA = () => {
Join With Us Today & Help People
</h2>
<p>
Play2Help is a free gaming platform that allows you to play
games for free and donate to charity. Play games and help people
in need.
Play games, earn rewards, and donate them to charity to support those in need
</p>
</motion.div>
<motion.div
Expand Down
4 changes: 1 addition & 3 deletions components/FunFact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ const FunFact = () => {
Fun Facts About Us
</h2>
<p className="mx-auto lg:w-11/12">
We are a organization that provides free gaming platform that
allows you to play games for free and donate to charity. Play
games and help people in need.
We are an organization offering a free gaming platform where you can enjoy games and contribute to charity. Play, earn, and make a difference in the lives of those in need.
</p>
</motion.div>

Expand Down
4 changes: 1 addition & 3 deletions components/Games/gameSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ export default function GameSection() {
Play our games
</h2>
<p className="text-lg text-gray-400 dark:text-indigo-200/65">
Play games to donate to charity and help the world. Play, Win,
Earn Points and Get Rewards. We have a wide range of games to
choose from. Play now! 🎮
Play games, donate to charity, and make a positive impact on the world. Explore our diverse selection of games—start playing today! 🎮
</p>
</div>
{/* Spotlight items */}
Expand Down
26 changes: 13 additions & 13 deletions components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Header = () => {

const handleLinkClick = (
e: React.MouseEvent<HTMLLIElement, MouseEvent>,
menuItem: MenuItem,
menuItem: MenuItem
) => {
e.preventDefault();
setActiveMenu(menuItem.title);
Expand All @@ -35,7 +35,8 @@ const Header = () => {
setNavigationOpen(!navigationOpen);
}
};
// Sticky menu

// Sticky menu logic
const handleStickyMenu = () => {
if (window.scrollY >= 80) {
setStickyMenu(true);
Expand All @@ -46,7 +47,8 @@ const Header = () => {

useEffect(() => {
window.addEventListener("scroll", handleStickyMenu);
});
return () => window.removeEventListener("scroll", handleStickyMenu); // Cleanup on unmount
}, []);

return (
<header
Expand All @@ -60,16 +62,16 @@ const Header = () => {
<Image
src="/images/logo/logo-dark.png"
alt="logo"
width={119.03}
height={30}
className="hidden h-8 w-full dark:block"
width={300} // Increased the width to make the logo bigger
height={100} // Increased the height to make the logo bigger
className="h-12 w-full dark:block" // Made the image larger (h-12)
/>
<Image
src="/images/logo/logo-dark.png"
alt="logo"
width={119.03}
height={30}
className="h-8 w-full dark:hidden"
width={300} // Increased the width
height={100} // Increased the height
className="h-12 w-full dark:hidden"
/>
</a>

Expand Down Expand Up @@ -114,7 +116,7 @@ const Header = () => {
{/* <!-- Hamburger Toggle BTN --> */}
</div>

{/* Nav Menu Start */}
{/* Nav Menu Start */}
<div
className={`invisible h-0 w-full items-center justify-between xl:visible xl:flex xl:h-auto xl:w-full ${
navigationOpen &&
Expand All @@ -127,7 +129,7 @@ const Header = () => {
<li
onClick={(e) => handleLinkClick(e, menuItem)}
key={key}
className={menuItem.submenu && "group relative"}
className={menuItem.submenu ? "group relative" : ""}
>
{menuItem.submenu ? (
<>
Expand Down Expand Up @@ -191,6 +193,4 @@ const Header = () => {
);
};

// w-full delay-300

export default Header;
7 changes: 2 additions & 5 deletions components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ const Hero = () => {
</span>
</h1>
<p>
Play2Help is a free gaming platform that allows you to play
games for free and donate to charity. Play games and help people
in need. Play2Help is a free gaming platform that allows you to
play games for free and donate to charity. Play games and help
people in need.
Play2Help is a free gaming platform where you can enjoy your favorite games while supporting charitable causes.
Play, donate, and make a difference — every game helps people in need!
</p>

<div className="mt-10">
Expand Down
42 changes: 12 additions & 30 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -316,29 +316,10 @@
resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz"
integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==

"@img/sharp-libvips-linux-x64@1.0.4":
version "1.0.4"
resolved "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.4.tgz"
integrity sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==

"@img/sharp-libvips-linuxmusl-x64@1.0.4":
version "1.0.4"
resolved "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.4.tgz"
integrity sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==

"@img/sharp-linux-x64@0.33.5":
version "0.33.5"
resolved "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.5.tgz"
integrity sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==
optionalDependencies:
"@img/sharp-libvips-linux-x64" "1.0.4"

"@img/sharp-linuxmusl-x64@0.33.5":
"@img/sharp-win32-x64@0.33.5":
version "0.33.5"
resolved "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.5.tgz"
integrity sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==
optionalDependencies:
"@img/sharp-libvips-linuxmusl-x64" "1.0.4"
resolved "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz"
integrity sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==

"@isaacs/cliui@^8.0.2":
version "8.0.2"
Expand Down Expand Up @@ -654,15 +635,10 @@
dependencies:
fast-glob "3.3.1"

"@next/swc-linux-x64-gnu@15.0.4":
"@next/swc-win32-x64-msvc@15.0.4":
version "15.0.4"
resolved "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.0.4.tgz"
integrity sha512-Z50b0gvYiUU1vLzfAMiChV8Y+6u/T2mdfpXPHraqpypP7yIT2UV9YBBhcwYkxujmCvGEcRTVWOj3EP7XW/wUnw==

"@next/swc-linux-x64-musl@15.0.4":
version "15.0.4"
resolved "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.0.4.tgz"
integrity sha512-7H9C4FAsrTAbA/ENzvFWsVytqRYhaJYKa2B3fyQcv96TkOGVMcvyS6s+sj4jZlacxxTcn7ygaMXUPkEk7b78zw==
resolved "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.0.4.tgz"
integrity sha512-NGLchGruagh8lQpDr98bHLyWJXOBSmkEAfK980OiNBa7vNm6PsNoPvzTfstT78WyOeMRQphEQ455rggd7Eo+Dw==

"@noble/ciphers@^1.0.0":
version "1.1.3"
Expand Down Expand Up @@ -745,6 +721,11 @@
micromatch "^4.0.5"
napi-wasm "^1.1.0"

"@parcel/watcher-win32-x64@2.5.0":
version "2.5.0"
resolved "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.0.tgz"
integrity sha512-lPrxve92zEHdgeff3aiu4gDOIt4u7sJYha6wbdEZDCDUhtjTsOMiaJzG5lMY4GkWH8p0fMmO2Ppq5G5XXG+DQw==

"@parcel/watcher@^2.4.1":
version "2.5.0"
resolved "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.0.tgz"
Expand Down Expand Up @@ -5072,6 +5053,7 @@ socket.io-parser@~4.2.4:
cookie "^1.0.2"
dayjs "^1.11.13"
eslint "8.41.0"
ethers "^6.13.4"
framer-motion "^10.12.16"
js-cookie "^3.0.5"
jwt-decode "^4.0.0"
Expand Down