Skip to content

Commit

Permalink
Merge pull request #426 from 1Hive/stepper-guide
Browse files Browse the repository at this point in the history
Stepper guide
  • Loading branch information
Corantin authored Jul 12, 2023
2 parents 1a7fe53 + 5c262ca commit c9ebb59
Show file tree
Hide file tree
Showing 28 changed files with 663 additions and 51 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/react-app/src/assets/ClaimScreenshot.png
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.
Binary file added packages/react-app/src/assets/ListScreenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/react-app/src/assets/PlayScreenshot.png
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.
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.
174 changes: 174 additions & 0 deletions packages/react-app/src/assets/background-logo.tsx

Large diffs are not rendered by default.

Binary file added packages/react-app/src/assets/piggy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions packages/react-app/src/assets/piggy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export default function Piggy() {
return (
<WrapperStyled>
<svg
width="237"
height="202"
viewBox="0 0 237 202"
width="100%"
height="100%"
// height="202"
// viewBox="0 0 237 202"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
Expand Down
3 changes: 2 additions & 1 deletion packages/react-app/src/components/back-to-top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { useEffect, useState } from 'react';
const TopRightCornerStyled = styled.div`
position: absolute;
bottom: ${GUpx(2)};
right: ${GUpx(2)};
right: calc(50vw - 10px);
width: 40px;
`;

export function BackToTop() {
Expand Down
12 changes: 7 additions & 5 deletions packages/react-app/src/components/claim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Claim({ claim, isLoading, challengeDeposit, questData }:
const { walletAddress, walletConnected } = useWallet();
const { transaction } = useTransactionContext();
const [status, setStatus] = useState<ClaimStatus | undefined>(claim.state);
const { below } = useViewport();
const { below, width } = useViewport();
const [waitForClose, setWaitForClose] = useState(false);
const [actionButton, setActionButton] = useState<ReactNode>();
const [challengeReason, setChallengeReason] = useState<string>();
Expand All @@ -92,6 +92,8 @@ export default function Claim({ claim, isLoading, challengeDeposit, questData }:
);
}, [claim.state, claimable]);

const isSmall = useMemo(() => below('medium'), [width]);

const timer = useMemo(
() =>
!claimable &&
Expand Down Expand Up @@ -230,18 +232,18 @@ export default function Claim({ claim, isLoading, challengeDeposit, questData }:
<div className="wide">
<Outset>
<ChildSpacer
size={below('medium') ? 0 : 16}
size={isSmall ? 0 : 16}
justify="start"
align={below('medium') ? 'start' : 'center'}
align={isSmall ? 'start' : 'center'}
buttonEnd
vertical={below('medium')}
vertical={isSmall}
>
{status && (
<FieldInput label="Status" isLoading={isLoading || status === ClaimStatus.None}>
<StatusTag status={status} className="pl-0" />
</FieldInput>
)}
<AddressWrapperStyled isSmallScreen={below('medium')}>
<AddressWrapperStyled isSmallScreen={isSmall}>
<AddressFieldInput
id="playerAddress"
value={claim.playerAddress}
Expand Down
2 changes: 2 additions & 0 deletions packages/react-app/src/components/main-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Pages } from 'src/enums/pages.enum';
import Header from './header';
import Footer from './footer';
import { BackToTop } from './back-to-top';
import GuideModal from './modals/guide-modal';

// #region StyledComponents

Expand Down Expand Up @@ -70,6 +71,7 @@ function MainView({ children }: Props) {
{page ? children : <Skeleton /> /* TODO Put some spinner here */}
</ContentWrapperStyled>
<Footer />
<GuideModal />
</ScrollViewStyled>
<BackToTop />
</Root.Provider>
Expand Down
6 changes: 6 additions & 0 deletions packages/react-app/src/components/modals/challenge-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const FormStyled = styled(Form)`
const OpenButtonStyled = styled(Button)`
margin: ${GUpx(1)};
width: fit-content;
&,
span {
color: #242424;
}
`;

const OpenButtonWrapperStyled = styled.div`
Expand Down Expand Up @@ -362,6 +367,7 @@ export default function ChallengeModal({
error={touched.reason && errors.reason}
onBlur={handleBlur}
wide
placeHolder="Explain with precision how this claim does not met the quest requirement..."
/>
</Outset>
</FormStyled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ import ModalBase, { ModalCallback } from './modal-base';
const OpenButtonStyled = styled(Button)`
margin: ${GUpx(1)};
width: fit-content;
&,
span {
color: #242424;
}
`;

const OpenButtonWrapperStyled = styled.div`
Expand Down
4 changes: 4 additions & 0 deletions packages/react-app/src/components/modals/fund-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const FormStyled = styled(Form)`
const OpenButtonStyled = styled(Button)`
margin: 0 ${GUpx(1)};
width: fit-content;
&,
span {
color: #242424;
}
`;

type Props = {
Expand Down
Loading

0 comments on commit c9ebb59

Please sign in to comment.