Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
jarbacoa committed Apr 20, 2022
1 parent 94241b4 commit f15b5a8
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const TurboIndexPage: React.FC = () => {
<Box minWidth={["100%", "100%", "50%"]} pr={[0, 0, 32]}>
<SlideFade in={true} offsetY="20px">
<Stack align="center" direction={{base: "column", md: "row"}}>
<TurboEngineIcon fill="#64DBA0" animate={true} animateSpeed="fast" boxSize={"45px"} minW="45px" mr={1}/>
<TurboEngineIcon fill="#64DBA0" animate={true} animateSpeed="superfast" boxSize={"45px"} minW="45px" mr={1}/>
<Heading size="2xl">Introducing Turbo</Heading>
</Stack>

Expand Down
11 changes: 6 additions & 5 deletions src/components/pages/Turbo/TurboSafePage/TurboSafePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ const TurboSafePage: React.FC = () => {

return (
<>
<Head>
<title>{collateralTokenData?.symbol} Safe | Tribe Turbo</title>
</Head>

{/* Modals */}
<DepositSafeCollateralModal
Expand Down Expand Up @@ -178,7 +175,7 @@ const TurboSafePage: React.FC = () => {
>
<Skeleton isLoaded={!loading}>
<VStack>
<HStack>
<HStack justify={"flex-start"}>
<TokenIcon tokenAddress={safe?.collateralAsset ?? ""} mr={2} />
<Heading>
<TokenSymbol tokenAddress={safe?.collateralAsset ?? ""} /> Safe
Expand Down Expand Up @@ -241,7 +238,11 @@ export const Buttons: React.FC<ButtonsProps> = ({

return (
<Stack direction={["column", "column", "row"]} {...restProps}>
<Button variant="cardmatte" onClick={openDepositModal} disabled={loading || !isUserAdmin}>
<Button
variant="cardmatte"
onClick={openDepositModal}
disabled={loading || !isUserAdmin}
>
<Image
src="/static/turbo/action-icons/deposit-collateral.png"
height={4}
Expand Down
5 changes: 3 additions & 2 deletions src/components/shared/Icons/TurboEngineIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { Box, usePrefersReducedMotion } from "@chakra-ui/react";
const speeds = {
"slow": "2000ms",
"medium": "1250ms",
"fast": "500ms"
"fast": "500ms",
"superfast": "300ms"
}

const TurboEngineIcon = ({
Expand All @@ -14,7 +15,7 @@ const TurboEngineIcon = ({
}: {
fill: string;
animate?: boolean;
animateSpeed?: "slow"| "medium" | "fast"
animateSpeed?: "slow"| "medium" | "fast" | "superfast"
[x: string]: any;
}) => {
const prefersReducedMotion = usePrefersReducedMotion();
Expand Down
2 changes: 1 addition & 1 deletion src/constants/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const HOMEPAGE_OPPORTUNIES: HomepageOpportunity[] = [
{
type: HomepageOpportunityType.Turbo,
title: "Tribe Turbo",
subtitle: "Earn costless yield on unutilized assets.",
subtitle: "Earn costless yield and boost FEI liquidity into Fuse.",
bgColor: "#EFEFEF",
icon: "/static/turbo/turbo-engine-green.svg",
vaultType: Pool.USDC,
Expand Down
14 changes: 10 additions & 4 deletions src/constants/tokenData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ export const TokenDataOverrides: {
},
"0x447Ddd4960d9fdBF6af9a790560d0AF76795CB08": {
symbol: "CRVrETHwstETH",
logoURL: "https://cdn.jsdelivr.net/gh/curvefi/curve-assets/images/assets/0xae78736cd615f374d3085123a210448e74fc6393.png"
logoURL:
"https://cdn.jsdelivr.net/gh/curvefi/curve-assets/images/assets/0xae78736cd615f374d3085123a210448e74fc6393.png",
},

"0x9D0464996170c6B9e75eED71c68B99dDEDf279e8": {
Expand All @@ -235,9 +236,14 @@ export const TokenDataOverrides: {
"https://cdn.jsdelivr.net/gh/curvefi/curve-assets/images/assets/0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7.png",
},
// VOLT
"0x559eBC30b0E58a45Cc9fF573f77EF1e5eb1b3E18" : {
logoURL: "https://cdn.discordapp.com/attachments/854131414316220449/965716390717833316/volt_primary_logo.png",
}
"0x559eBC30b0E58a45Cc9fF573f77EF1e5eb1b3E18": {
logoURL:
"https://cdn.discordapp.com/attachments/854131414316220449/965716390717833316/volt_primary_logo.png",
},
// gOHM
"0x0ab87046fbb341d058f17cbc4c1133f25a20a52f": {
symbol: "gOHM",
},
},
[ChainID.ARBITRUM]: {
"0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F": {
Expand Down
25 changes: 24 additions & 1 deletion src/pages/turbo/safe/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { NextPage } from "next";
import TurboSafePage from "components/pages/Turbo/TurboSafePage/TurboSafePage";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { useRouter } from "next/router";
import Head from "next/head";

export async function getStaticProps({ locale }: { locale: string }) {
return {
Expand All @@ -18,7 +20,28 @@ export const getStaticPaths = async () => {
};

const Page: NextPage = () => {
return <TurboSafePage />;
const {
query: { id },
} = useRouter();
return (
<>
<Head>
<title> Safe | Tribe Turbo</title>
<meta property="twitter:card" content="summary" />
<meta property="og:title" content={`Safe| Tribe Turbo`} />
<meta name="twitter:title" content={`Safe | Tribe Turbo`} />
<meta
property="og:url"
content={`https://app.rari.capital/turbo/safe/${id}`}
/>
<meta property="og:image" content="/static/turbo/turbo2.png" />
<meta property="twitter:image" content="/static/turbo/turbo2.png" />
<meta property="og:description" content="Earn costless yield and boost FEI liquidity with Tribe Turbo." />
<meta property="twitter:description" content="Earn costless yield and boost liquidity with Tribe Turbo." />
</Head>
<TurboSafePage />
</>
);
};

export default Page;

1 comment on commit f15b5a8

@vercel
Copy link

@vercel vercel bot commented on f15b5a8 Apr 20, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.