Skip to content

Commit

Permalink
internal link to Lite
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiolalombardim committed Dec 21, 2022
1 parent 67b2d8a commit b4bb2cc
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/modules/explorer/pages/DAOList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { DAOItem } from "./components/DAOItem"
import { SearchInput } from "./components/Searchbar"
import { MainButton } from "../../../common/MainButton"
import { EnvKey, getEnv } from "services/config"
import { LaunchOutlined } from "@material-ui/icons"

const PageContainer = styled("div")(({ theme }) => ({
width: "1000px",
Expand Down Expand Up @@ -82,6 +83,43 @@ const DAOItemCard = styled(Grid)({
}
})

const BannerContainer = styled(Grid)(({ theme }) => ({
background: theme.palette.primary.main,
padding: "30px 48px",
borderRadius: 8,
display: "inline-block",
[theme.breakpoints.down("md")]: {
padding: "28px 38px"
}
}))

const LinkText = styled(Typography)(({ theme }) => ({
fontSize: 18,
fontWeight: 200,
lineHeight: "146.3%",
cursor: "default",
[theme.breakpoints.down("sm")]: {
fontSize: 16
},
[theme.breakpoints.down("xs")]: {
fontSize: 13
}
}))

const ExternalLink = styled(Typography)({
"display": "inline",
"cursor": "pointer",
"fontWeight": 200,
"&:hover": {
textDecoration: "underline"
}
})

const ExternalLinkIcon = styled(LaunchOutlined)({
fontSize: 14,
marginBottom: 2
})

export const DAOList: React.FC = () => {
const { network, account, tezos } = useTezos()
const { data: daos, isLoading } = useAllDAOs(network)
Expand Down Expand Up @@ -129,11 +167,28 @@ export const DAOList: React.FC = () => {
setSelectedTab(newValue)
}

const goToHomebaseLite = () => {
window.open("https://lite.tezos-homebase.io/")
}

return (
<>
<Navbar disableMobileMenu />
<PageContainer>
<Grid container style={{ gap: 42 }} direction="column">
<Grid item>
<BannerContainer container alignItems="center" direction="row">
<LinkText color="textPrimary" style={{ display: "inline" }}>
For off-chain token-weighted polls, try{" "}
</LinkText>{" "}
<ExternalLink color="secondary" onClick={goToHomebaseLite}>
{" "}
Homebase Lite
<ExternalLinkIcon color="secondary" />{" "}
</ExternalLink>
</BannerContainer>
</Grid>

<Grid item>
<Grid
container
Expand Down

0 comments on commit b4bb2cc

Please sign in to comment.