-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes for orientation, zen mode and final touches to referrals
- Loading branch information
1 parent
c3af3f7
commit 85f491e
Showing
15 changed files
with
123 additions
and
63 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,23 @@ | ||
import { type FC } from "react"; | ||
import { BaseGuide } from "../components/BaseGuide"; | ||
import { type GuideEntryProps } from "../components/GuideEntry"; | ||
|
||
const entries: GuideEntryProps[] = [ | ||
{ | ||
image: "guide/refer/1.png", | ||
children: <>Share your referral link with friends to build your forest!</>, | ||
}, | ||
{ | ||
image: "guide/refer/2.png", | ||
children: ( | ||
<div className="py-8"> | ||
The more people stake at least 0.1 gSOL using your link, the more trees | ||
grow in your forest, and the higher you climb the leaderboard. | ||
</div> | ||
), | ||
}, | ||
]; | ||
|
||
export const ReferGuide: FC = () => { | ||
return <BaseGuide entries={entries} />; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useWindowSize } from "usehooks-ts"; | ||
import { useMemo } from "react"; | ||
import { isMobilePortrait } from "../../common/utils"; | ||
|
||
export const useScreenOrientation = (): { | ||
screenType: "mobilePortrait" | "landscapeOrDesktop"; | ||
} => { | ||
const windowSize = useWindowSize(); | ||
const isPortrait = useMemo( | ||
() => isMobilePortrait(windowSize.width), | ||
[windowSize] | ||
); | ||
|
||
return { | ||
screenType: isPortrait ? "mobilePortrait" : "landscapeOrDesktop", | ||
}; | ||
}; |
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.