Skip to content

Commit

Permalink
feat: add logo to detail widget and footer (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum authored Jun 21, 2023
1 parent 4f7254e commit b287aee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
19 changes: 19 additions & 0 deletions src/components/detail/DetailWidget/DetailWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import toast from "react-hot-toast";
import styled from "styled-components";
import { useAccount, useBalance, useSigner } from "wagmi";

import { ReactComponent as Logo } from "../../../assets/logo-white.svg";
import { CONFIG } from "../../../lib/config";
import { BosonRoutes } from "../../../lib/routing/routes";
import { breakpoint } from "../../../lib/styles/breakpoint";
Expand Down Expand Up @@ -121,6 +122,17 @@ const RedeemButton = styled(BosonButton)`
}
`;

const BlackLogo = styled(Logo)`
width: 6.25rem;
height: fit-content;
padding: 1.2rem 0 0 0;
:first-child {
path:first-child {
fill: ${colors.black};
}
}
`;

type ActionName = "approveExchangeToken" | "depositFunds" | "commit";
interface IDetailWidget {
pageType?: "exchange" | "offer";
Expand Down Expand Up @@ -334,6 +346,8 @@ const DetailWidget: React.FC<IDetailWidget> = ({
const coreSDK = useCoreSDK();
const addPendingTransaction = useAddPendingTransaction();
const removePendingTransaction = useRemovePendingTransaction();
const isCustomStoreFront = useCustomStoreQueryParameter("isCustomStoreFront");

const { isLteXS } = useBreakpoints();
const navigate = useKeepQueryParamsNavigate();
const { address } = useAccount();
Expand Down Expand Up @@ -1056,6 +1070,11 @@ const DetailWidget: React.FC<IDetailWidget> = ({
</Grid>
</>
)}
{isCustomStoreFront && (
<Grid justifyContent="center" alignItems="center">
<BlackLogo />
</Grid>
)}
</Widget>
</>
);
Expand Down
5 changes: 3 additions & 2 deletions src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ function CustomStoreAdditionalLinks() {

function ByBoson() {
return (
<Grid justifyContent="center">
<Typography $fontSize="0.8rem">Powered by Boson</Typography>
<Grid justifyContent="center" alignItems="center" gap="0.5rem">
<Typography $fontSize="0.8rem">Powered by</Typography>
<img src={logo} alt="boson logo" width="100" />
</Grid>
);
}
Expand Down

0 comments on commit b287aee

Please sign in to comment.