Skip to content

Commit

Permalink
I fix feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
techeng322 committed Oct 8, 2024
1 parent b348ddc commit f11ee91
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 22 deletions.
8 changes: 4 additions & 4 deletions src/components/Core/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ function Icon({
size <= 20
? styles.sizes.mini
: size < 25
? styles.sizes.small
: size < 40
? styles.sizes.medium
: styles.sizes.large
? styles.sizes.small
: size < 40
? styles.sizes.medium
: styles.sizes.large
}
${!noHighlights && styles?.variants?.[variant]?.highlight}
${className}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Core/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function TextArea({
className={`text-gray_1 w-full border-[2px] !border-gray_1 bg-black
focus:ring-0 focus:border-gray_1
${className || ""} ${
hookToForm && fieldError && fieldError?.message ? clasNameError : ""
}`}
hookToForm && fieldError && fieldError?.message ? clasNameError : ""
}`}
{...(!hookToForm && {
value,
onChange,
Expand Down
3 changes: 0 additions & 3 deletions src/components/Pages/BonasiContent/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import getIpfsLink from "@/lib/getIpfsLink"
import { BONASI } from "@/lib/consts"
import { BONSAI } from "@/lib/consts"
import RecBar from "../../RecBar"
import useIsMobile from "../../../hooks/useIsMobile"

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

return (
Expand All @@ -20,7 +20,7 @@ const BonasiContent = () => {
>
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
<video
src={getIpfsLink(BONASI)}
src={getIpfsLink(BONSAI)}
width={isMobile ? 180 : 200}
height={isMobile ? 125 : 230}
controls
Expand All @@ -33,4 +33,4 @@ const BonasiContent = () => {
)
}

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

export default BonsaiContent
12 changes: 6 additions & 6 deletions src/components/Pages/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import { SCREENS } from "@/lib/screens"
import { usePopupWidget } from "@/providers/PopupWidgetProvider"
import LandingCard from "../../LandingCard"
import Layout from "../../Layout"
import BonasiContent from "../BonasiContent/BonasiContent"
import BonsaiContent from "../BonsaiContent"

const LandingPage = () => {
const { openPopUp } = usePopupWidget() as any
const { entered } = usePageLoad()
const isMobile = useIsMobile()
const [isBonasiOpen, setIsBonasiOpen] = useState<any>(true)
const [isBonsaiOpen, setIsBonsaiOpen] = useState<any>(true)

return (
<Layout type={isMobile ? "mobile" : "base"}>
Expand Down Expand Up @@ -59,13 +59,13 @@ const LandingPage = () => {
Play Relief
</a>
)}
{isBonasiOpen && (
{isBonsaiOpen && (
<DraggableModal
href="/"
handleClose={() => setIsBonasiOpen(!isBonasiOpen)}
isVisible={isBonasiOpen}
handleClose={() => setIsBonsaiOpen(!isBonsaiOpen)}
isVisible={isBonsaiOpen}
>
<BonasiContent />
<BonsaiContent />
</DraggableModal>
)}
</Layout>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/consts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const ONE_MILLISEOND = 1000

export const SYSTEM_COMMERCIAL =
"ipfs://Qmccf1fZeNZc9nWwvq3a5aiQr3bCr5VNCi3PaUbhrUnpRJ/SYSTEM%20COMMERCIAL.mp4"
export const BONASI = "ipfs://QmeiQuQSv8HWsAmZxzX666V26KbknVi82qQMq5sibGhSHr"
export const BONSAI = "ipfs://QmeiQuQSv8HWsAmZxzX666V26KbknVi82qQMq5sibGhSHr"
export const COLLECTIONS = [
{
collectionAddress: ZORA_DROP_ADDRESS,
Expand Down
14 changes: 12 additions & 2 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,18 @@ body {
background-color: black;
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
font-family:
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
}

body::-webkit-scrollbar {
Expand Down

0 comments on commit f11ee91

Please sign in to comment.