-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
6,747 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> | ||
<url><loc>https://demmortaltreasure.com</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/auction</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/faq</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/profile</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/profile/verify</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/roadmap</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/team</loc><lastmod>2022-08-20T18:45:08.362Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/auction</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/faq</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/profile</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/profile/verify</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/roadmap</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
<url><loc>https://demmortaltreasure.com/team</loc><lastmod>2023-08-17T12:59:16.879Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url> | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<sitemap><loc>https://demmortaltreasure.com/sitemap-0.xml</loc></sitemap> | ||
</sitemapindex> | ||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<sitemap><loc>https://demmortaltreasure.com/sitemap-0.xml</loc></sitemap> | ||
</sitemapindex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import Image from "next/image"; | ||
import { allBgImg, demmortalBlastFrame } from "../../../store/img"; | ||
import { motion } from "framer-motion"; | ||
import { useEffect, useRef, useState } from "react"; | ||
|
||
const EconomyFlow: React.FC = () => { | ||
const [isActive, setIsActive] = useState(false); | ||
const imageRef = useRef(null); | ||
const clickHandler = () => { | ||
setIsActive((prevState) => !prevState); | ||
}; | ||
const handleOutsideClick = (event: any) => { | ||
if ( | ||
isActive && | ||
imageRef.current && | ||
// @ts-ignore | ||
!imageRef.current.contains(event.target) | ||
) { | ||
setIsActive(false); | ||
} | ||
}; | ||
useEffect(() => { | ||
if (isActive) { | ||
document.addEventListener('mousedown', handleOutsideClick); | ||
} | ||
|
||
return () => { | ||
document.removeEventListener('mousedown', handleOutsideClick); | ||
}; | ||
}, [isActive]); | ||
return ( | ||
<div | ||
className="flex flex-col justify-between items-center h-full w-full relative z-100" | ||
id="cards" | ||
> | ||
<div className="absolute top-0 left-0 w-full h-[7.5rem] bg-gradient-to-b from-[#04050E] via-transparent to-transparent z-[1]" /> | ||
<div className="absolute bottom-0 left-0 w-full h-[7.5rem] bg-gradient-to-t from-[#04050E] via-transparent to-transparent z-[1]" /> | ||
<span className="absolute h-full xl:w-full !aspect-[1382/814] overflow-hidden"> | ||
<span className="w-full h-full inner-image-no-max-width"> | ||
<Image | ||
alt="dedogmadao background" | ||
src={allBgImg.roadMap[1]} | ||
layout="fill" | ||
quality={100} | ||
placeholder="blur" | ||
/> | ||
</span> | ||
</span> | ||
<h2 className="z-10 mt-16 text-[1.25rem] ssm:text-[1.75rem] sm:text-[2.375rem] font-bold sm:font-bold"> | ||
<span className="text-primary-500">Economy</span> Flow | ||
</h2> | ||
<div className="w-full h-[250px] ssm:h-[350px] sm:h-[500px] flex justify-center z-20"> | ||
<motion.div | ||
ref={imageRef} | ||
className={` w-[80%] absolute ssm:top-[25%] md:top-[10%] lg:-top-[0%] xl:-top-[0%] 2xl:-top-[10%] duration-500 cursor-pointer | ||
${isActive ? "grayscale-0" : "grayscale-0 md:grayscale-70"} ${ | ||
!isActive | ||
? "scale-100 sm:scale-[0.7] md:scale-[0.6] lg:scale-[0.4]" | ||
: "scale-100" | ||
} | ||
`} | ||
onClick={clickHandler} | ||
> | ||
<Image | ||
alt="dedogmadao background" | ||
src={demmortalBlastFrame} | ||
width={1862} | ||
height={1169} | ||
quality={100} | ||
placeholder="blur" | ||
className="z-100 rounded-3xl select-none" | ||
/> | ||
</motion.div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EconomyFlow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.