Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add project page for mofy #256

Merged
merged 2 commits into from Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/mofy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 17 additions & 13 deletions src/components/DegenerativeCard/DegenerativeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,28 @@ import { Box, Button, Card, CardActions, CardContent, CardIcon, Spacer } from "r

import Label from "components/Label";
import ValueText from "components/ValueText";

import styled from "styled-components";
const DegenerativeCard: React.FC = () => {

return (
<Card>
<Spacer />
<CardIcon>🧟</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Yam Synths" />
<Label text="Yam Synths is your portal to the powerful world of synthetic derivatives" labelPosition="center" />
</Box>
</CardContent>
<CardActions>
<Button full href="http://synths.yam.xyz" text="View" variant="secondary" />
</CardActions>
<StyledCard>
<Spacer />
<CardIcon>🧟</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Yam Synths" />
<Label text="Yam Synths is your portal to the powerful world of synthetic derivatives" labelPosition="center" />
</Box>
</CardContent>
<CardActions>
<Button full href="http://synths.yam.xyz" text="View" variant="secondary" />
</CardActions>
</StyledCard>
</Card>
);
};

const StyledCard = styled.div`
height:320px;
`;
export default DegenerativeCard;
40 changes: 40 additions & 0 deletions src/components/MofyCard/MofyCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from "react";

import { Box, Button, Card, CardActions, CardContent, CardIcon, Spacer } from "react-neu";

import Label from "components/Label";
import ValueText from "components/ValueText";
import MofyIcon from "assets/mofy.png";

import styled from "styled-components";
const MofyCard: React.FC = () => {

return (
<Card>
<StyledCard>
<Spacer />
{/*<StyledDiv><StyledImg src = {MofyIcon}></StyledImg></StyledDiv>*/}
<CardIcon>🖼</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Mofy" />
<Label text="The Museum of Fine Yams is the premier destination for digital art and innovative ideas." labelPosition="center"/>
</Box>
</CardContent>
<CardActions>
<Button full href="https://nft.yam.xyz/" text="View" variant="secondary" />
</CardActions>
</StyledCard>
</Card>
);
};
const StyledDiv = styled.div`
text-align:center;
`;
const StyledImg = styled.img`
width:60px;
`;
const StyledCard = styled.div`
height:320px;
`;
export default MofyCard;
1 change: 1 addition & 0 deletions src/components/MofyCard/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./MofyCard";
1 change: 1 addition & 0 deletions src/components/TopBar/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const Nav: React.FC<NavProps> = ({ onDismiss, mobileMenu }) => {
<StyledLink href="http://synths.yam.xyz" label="Yam Synths" mobileMenu={mobileMenu} onDismiss={onDismiss} />
<StyledRouterLink target="umbrella" label="Yam Protection" mobileMenu={mobileMenu} onDismiss={onDismiss} />
<StyledRouterLink target="daohouse" label="Yam Treasuries" mobileMenu={mobileMenu} onDismiss={onDismiss} />
<StyledLink href="https://nft.yam.xyz/" label="MOFY" mobileMenu={mobileMenu} onDismiss={onDismiss} />
</StyledRouterLink>
<StyledLink href="http://synths.yam.xyz" label="Synths" mobileMenu={mobileMenu} onDismiss={onDismiss} />
<StyledRouterLink target="governance" label="Govern" mobileMenu={mobileMenu} onDismiss={onDismiss} >
Expand Down
29 changes: 17 additions & 12 deletions src/components/UmbrellaCard/UmbrellaCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,29 @@ import { Box, Button, Card, CardActions, CardContent, CardIcon, Spacer } from "r

import Label from "components/Label";
import ValueText from "components/ValueText";

import styled from "styled-components";
const UmbrellaCard: React.FC = () => {

return (
<Card>
<Spacer />
<CardIcon>🌂</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Yam Protection" />
<Label text="Yam Protection has the potential to become a critical lego block for the DeFi ecosystem." labelPosition="center"/>
</Box>
</CardContent>
<CardActions>
<Button full to="/umbrella" text="View" variant="secondary" />
</CardActions>
<StyledCard>
<Spacer />
<CardIcon>🌂</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Yam Protection" />
<Label text="Yam Protection has the potential to become a critical lego block for the DeFi ecosystem." labelPosition="center"/>
</Box>
</CardContent>
<CardActions>
<Button full to="/umbrella" text="View" variant="secondary" />
</CardActions>
</StyledCard>
</Card>
);
};
const StyledCard = styled.div`
height:320px;
`;

export default UmbrellaCard;
30 changes: 17 additions & 13 deletions src/components/YamDaoCard/YamDaoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,28 @@ import { Box, Button, Card, CardActions, CardContent, CardIcon, Spacer } from "r

import Label from "components/Label";
import ValueText from "components/ValueText";

import styled from "styled-components";
const YamDaoCard: React.FC = () => {

return (
<Card>
<Spacer />
<CardIcon>🏡</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Yam Treasuries" />
<Label text="Yam Treasuries is an actively managed portfolio that is governed by the Yam DAO" labelPosition="center"/>
</Box>
</CardContent>
<CardActions>
<Button full href="https://tokensets.com/portfolio/yamhouse" text="View" variant="secondary" />
</CardActions>
<StyledCard>
<Spacer />
<CardIcon>🏡</CardIcon>
<CardContent>
<Box alignItems="center" column>
<ValueText value="Yam Treasuries" />
<Label text="Yam Treasuries is an actively managed portfolio that is governed by the Yam DAO" labelPosition="center"/>
</Box>
</CardContent>
<CardActions>
<Button full href="https://tokensets.com/portfolio/yamhouse" text="View" variant="secondary" />
</CardActions>
</StyledCard>
</Card>
);
};

const StyledCard = styled.div`
height:320px;
`;
export default YamDaoCard;
2 changes: 2 additions & 0 deletions src/views/Projects/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Split from "components/Split";
import UmbrellaCard from "components/UmbrellaCard";
import DegenerativeCard from "components/DegenerativeCard"
import YamDaoCard from "components/YamDaoCard"
import MofyCard from "components/MofyCard"

const Projects: React.FC = () => {
return (
Expand All @@ -18,6 +19,7 @@ const Projects: React.FC = () => {
<DegenerativeCard />
<UmbrellaCard />
<YamDaoCard />
<MofyCard />
</Split>
</Container>
</Page>
Expand Down