Skip to content

Commit

Permalink
Merge pull request #135 from SweetmanTech/tech322/presave-album
Browse files Browse the repository at this point in the history
I update landing popup.
  • Loading branch information
techeng322 authored Oct 29, 2024
2 parents 2f961bd + 4cfeca9 commit c0e82a0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 52 deletions.
Binary file added public/images/presave-album.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/components/Pages/BonsaiContent/index.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Pages/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SCREENS } from "@/lib/screens"
import { usePopupWidget } from "@/providers/PopupWidgetProvider"
import LandingCard from "../../LandingCard"
import Layout from "../../Layout"
import BonsaiContent from "../BonsaiContent"
import PresaveAlbumContent from "../PresaveAlbumContent"

const LandingPage = () => {
const { openPopUp } = usePopupWidget() as any
Expand Down Expand Up @@ -65,7 +65,7 @@ const LandingPage = () => {
handleClose={() => setIsBonsaiOpen(!isBonsaiOpen)}
isVisible={isBonsaiOpen}
>
<BonsaiContent />
<PresaveAlbumContent />
</DraggableModal>
)}
</Layout>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import getIpfsLink from "@/lib/getIpfsLink"
import { BONSAI } from "@/lib/consts"
import RecBar from "../../RecBar"
import useIsMobile from "../../../hooks/useIsMobile"

const BonsaiContent = () => {
const PresaveAlbumContent = () => {
const isMobile = useIsMobile()

return (
Expand All @@ -16,21 +14,27 @@ const BonsaiContent = () => {
>
<div
className="h-fit max-h-full overflow-y-auto text-[12px] md:text-[16px]
px-[15px] md:px-[20px] flex flex-col gap-y-[5px] md:gap-y-[20px]"
px-[15px] md:px-[20px] flex flex-col items-center gap-y-[5px] md:gap-y-[20px]"
>
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
<video
src={getIpfsLink(BONSAI)}
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/images/presave-album.png"
width={isMobile ? 180 : 200}
height={isMobile ? 125 : 230}
controls
autoPlay
alt="not found presave album."
/>
<button
type="button"
className="text-xs border px-2 py-1"
onClick={() => window.open("https://nfan.link/henomadkeys", "_blank")}
>
Presave Lemons Made Better
</button>
</div>
<RecBar />
</div>
</div>
)
}

export default BonsaiContent
export default PresaveAlbumContent
3 changes: 3 additions & 0 deletions src/components/Pages/PresaveAlbumContent/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import PresaveAlbumContent from "./PresaveAlbumContent"

export default PresaveAlbumContent
34 changes: 0 additions & 34 deletions src/components/Pages/YoutubeContent/YoutubeContent.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/Pages/YoutubeContent/index.tsx

This file was deleted.

0 comments on commit c0e82a0

Please sign in to comment.