Skip to content

Commit

Permalink
planding page pyth logo (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
timongll authored Dec 27, 2023
1 parent b507a76 commit dde18c2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 19 additions & 2 deletions landing/src/components/Mission/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import { Container } from "react-bootstrap";

import { Title, BaseText } from "../../designSystem";
import { Title, BaseText, BaseLink } from "../../designSystem";
import sizes from "../../designSystem/sizes";
import colors from "shared/lib/designSystem/colors";
import { SubgraphDataContext } from "shared/lib/hooks/subgraphDataContext";
Expand All @@ -15,7 +15,8 @@ import { ExternalAPIDataContext } from "shared/lib/hooks/externalAPIDataContext"
import { Assets } from "shared/lib/store/types";
import { getAssetDecimals } from "shared/lib/utils/asset";
import { formatUnits } from "ethers/lib/utils";

import { Pyth } from "shared/lib/assets/icons/pyth";
import { URLS } from "shared/lib/constants/constants";
const MainContainer = styled(Container)`
padding: 80px 0;
position: relative;
Expand Down Expand Up @@ -133,6 +134,19 @@ const Bar = styled.div<{ delay: number }>`
animation-delay: ${(props) => props.delay}s;
`;

const LogoContainer = styled(BaseLink)`
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: auto;
color: white;
&:hover {
color: white;
}
width: fit-content;
`;

const Mission = () => {
const { vaultSubgraphData } = useContext(SubgraphDataContext);
const { assetsPrice } = useContext(ExternalAPIDataContext);
Expand Down Expand Up @@ -254,6 +268,9 @@ const Mission = () => {
</Container>
</Col>
</MissionSubtitleRow>
<LogoContainer to={URLS.pyth} target="_blank" rel="noreferrer noopener">
<Pyth />
</LogoContainer>
</MainContainer>
);
};
Expand Down
4 changes: 2 additions & 2 deletions shared/src/assets/icons/pyth.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const Pyth: React.FC = (props) => (
<svg
width="60"
height="20"
width="90"
height="30"
fill="white"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 370.99 127.93"
Expand Down

5 comments on commit dde18c2

@vercel
Copy link

@vercel vercel bot commented on dde18c2 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ribbon-lend – ./lend

ribbon-lend-git-master-ribbon-finance.vercel.app
lend.ribbon.finance
ribbon-lend-ribbon-finance.vercel.app

@vercel
Copy link

@vercel vercel bot commented on dde18c2 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ribbon-governance – ./governance

ribbon-governance-ribbon-finance.vercel.app
vote.ribbon.finance
ribbon-governance-git-master-ribbon-finance.vercel.app

@vercel
Copy link

@vercel vercel bot commented on dde18c2 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on dde18c2 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on dde18c2 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ribbon-frontend – ./webapp

ribbon-frontend-git-master-ribbon-finance.vercel.app
ribbon-frontend-ribbon-finance.vercel.app
app.ribbon.finance

Please sign in to comment.