-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: scroll mobile designs * feat: remaining styling updates for scroll badge * feat(app): include changes after merge conflict * fix(app): remove unused vars
- Loading branch information
1 parent
c10f2ff
commit 6991cfa
Showing
9 changed files
with
94 additions
and
68 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
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
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,25 +1,22 @@ | ||
import { useWeb3ModalAccount } from "@web3modal/ethers/react"; | ||
import { ProviderWithTitle } from "../ScrollCampaign"; | ||
import PageRoot from "../PageRoot"; | ||
import { AccountCenter } from "../AccountCenter"; | ||
import { ScrollFooter, ScrollHeader } from "./ScrollLayout"; | ||
import { MobileBackgroundImage, ScrollCampaignPageRoot, ScrollFooter } from "./ScrollLayout"; | ||
import { RenderedBadges } from "./ScrollMintedBadge"; | ||
|
||
export const ScrollMintingBadge = ({ earnedBadges }: { earnedBadges: ProviderWithTitle[] }) => { | ||
const { isConnected } = useWeb3ModalAccount(); | ||
return ( | ||
<PageRoot className="text-color-1"> | ||
{isConnected && <AccountCenter />} | ||
<ScrollHeader className="fixed top-0 left-0 right-0" /> | ||
<div className="flex grow"> | ||
<div className="flex flex-col min-h-screen justify-center items-center shrink-0 grow w-1/2 text-center"> | ||
<div className="text-5xl text-[#FFEEDA] mb-10">Minting badge{earnedBadges.length > 1 ? "s" : ""}...</div> | ||
<ScrollCampaignPageRoot> | ||
<div className="flex grow mx-8 md:mx-10 py-10 md:py-0"> | ||
<div className="flex flex-col min-h-screen mt-16 lg:mt-0 justify-start lg:justify-center items-center shrink-0 grow w-1/2 text-center"> | ||
<div className="text-3xl lg:text-5xl text-[#FFEEDA] mb-10"> | ||
Minting badge{earnedBadges.length > 1 ? "s" : ""}... | ||
</div> | ||
<div className="flex flex-wrap justify-center items-end gap-8"> | ||
<RenderedBadges badges={earnedBadges} /> | ||
</div> | ||
</div> | ||
</div> | ||
<ScrollFooter className="absolute bottom-0 left-0 right-0 z-10" /> | ||
</PageRoot> | ||
<MobileBackgroundImage /> | ||
</ScrollCampaignPageRoot> | ||
); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.