Skip to content

Commit

Permalink
adds a banner and about page
Browse files Browse the repository at this point in the history
  • Loading branch information
dekanbro committed Dec 11, 2023
1 parent 70544ca commit 70c5595
Show file tree
Hide file tree
Showing 5 changed files with 227 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import NewProposal from "./pages/NewProposal";
import { DaoContainer } from "./components/layout/DaoContainer";
import { ClaimContainer } from "./components/layout/ClaimContainer";
import { Dao } from "./pages/Dao";
import { About } from "./pages/About";

export const Routes = ({
setDaoChainId,
Expand All @@ -46,6 +47,7 @@ export const Routes = ({
<Router>
<Route path="/" element={<HomeContainer />}>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
</Route>
<Route
path={`${MULTI_DAO_ROUTER}/activate`}
Expand Down
97 changes: 97 additions & 0 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
import React from 'react';
import styled from 'styled-components';
import { RiDiscordFill, RiToolsLine } from 'react-icons/ri/index.js';
import { Link, ParMd, breakpoints } from '@daohaus/ui';


export type BannerProps = {
bannerText?: string;
className?: string;
};

export const StyledBanner = styled.div`
align-items: center;
display: flex;
background-color: ${({ theme }) => theme.banner.bg};
border: 1px solid ${({ theme }) => theme.banner.border};
color: ${({ theme }) => theme.banner.color};
flex-wrap: wrap;
height: auto;
justify-content: space-between;
min-height: 8rem;
padding: 2rem 4rem;
width: 100%;
.banner--text-container {
align-items: center;
display: flex;
margin-bottom: 1.6rem;
@media (min-width: ${breakpoints.xs}) {
margin-bottom: 0;
}
svg {
font-size: 10.8rem;
margin-right: 1.4rem;
@media (min-width: ${breakpoints.xs}) {
font-size: 2.8rem;
}
}
}
.banner--link-container {
align-items: center;
display: flex;
justify-content: space-between;
width: 100%;
@media (min-width: ${breakpoints.xs}) {
justify-content: flex-start;
width: auto;
}
svg {
font-size: 2.4rem;
margin-right: 1rem;
}
}
.banner--link-item {
@media (min-width: ${breakpoints.xs}) {
margin: 0 6rem;
}
}
`;

export const Banner = ({
className,
bannerText = 'SILO is a MVP and under active development.',
}: BannerProps) => {
return (
<StyledBanner className={className}>
<div className="banner--text-container">
<RiToolsLine />
<ParMd>{bannerText}</ParMd>
</div>
<div className="banner--link-container">
<Link
href="/#/about"
showExternalIcon={false}
className="banner--link-item"
>
Learn about TBAs
</Link>
<Link
href="https://github.com/SiloHaus/silo-nft-dao-admin/issues"
showExternalIcon={false}
className="banner--link-item"
>
Give Feedback
</Link>
<Link showExternalIcon={false} href="https://discord.gg/NTfrBtKSB7">
<RiDiscordFill />
Chat
</Link>
</div>
</StyledBanner>
);
};
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { App } from "./App";

import "./App.css";
import { siloTheme } from "./theme/theme";
import { Banner } from "./components/Banner";

const queryClient = new QueryClient();

Expand All @@ -16,6 +17,7 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<HashRouter>
<QueryClientProvider client={queryClient}>
<HausThemeProvider themeOverrides={siloTheme}>
<Banner />
<App />
</HausThemeProvider>
</QueryClientProvider>
Expand Down
122 changes: 122 additions & 0 deletions src/pages/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
import { useDHConnect } from "@daohaus/connect";
import { HomeDashboard } from "../components/hub/HomeDashboard";
import { HomeNotConnected } from "../components/hub/HomeNotConnected";
import { H2, H3, Link, ParMd, SingleColumnLayout } from "@daohaus/ui";

export const About = () => {
return (
<SingleColumnLayout>
<H2>Understanding Token Bound Accounts (TBAs)</H2>

<ParMd>
Token Bound Accounts (TBAs) utilize the ERC6551 standard, a cutting-edge
protocol gaining momentum and supported by the pioneering efforts of the
Future Primitive team.
</ParMd>

<H3>Key Features:</H3>

<ol>
<ParMd>
<strong>Individualized Smart Contract Accounts:</strong> With TBAs,
each Non-Fungible Token (NFT) functions as its own smart contract
account, employing a form of account abstraction.
</ParMd>

<ParMd>
<strong>Versatile Transactions:</strong> NFTs with TBAs have the
capability to receive tokens and other NFTs, and possess the same
functionality as an Externally Owned Account (EOA).
</ParMd>

<ParMd>
<strong>Diverse Interactions:</strong> TBAs enable seamless
interaction with Decentralized Autonomous Organizations (DAOs),
decentralized finance (DeFi) platforms, and facilitate the reception
of airdrops.
</ParMd>

<ParMd>
<strong>Owner Control:</strong> The owner of the NFT retains complete
control over the associated TBA, ensuring autonomy in its operations.
</ParMd>

<ParMd>
<strong>Default TBA for NFTs:</strong> As per this standard, every NFT
automatically possesses a designated address capable of receiving
funds, tokens, or other NFTs.
</ParMd>
</ol>

<h2>How to Interact with TBAs:</h2>

<ParMd>
<strong>TBA Deployment:</strong> Initiating interaction with the TBA as
the NFT owner involves a single transaction to deploy the smart contract
account. This can be accomplished conveniently at{" "}
<Link href="https://tokenbound.org">tokenbound.org</Link>.
</ParMd>

<ParMd>
<strong>TBA Functionality:</strong> At{" "}
<Link href="https://tokenbound.org">tokenbound.org</Link>, users can
access comprehensive insights into the assets held within the TBA.
Additionally, the platform supports WalletConnect, enabling seamless
integration with decentralized applications (dApps) through your TBA.
</ParMd>

<ParMd>
<strong>Resource Hub:</strong>{" "}
<Link href="https://tokenbound.org">tokenbound.org</Link> serves as an
informational hub akin to Etherscan for TBAs, offering detailed and
comprehensive information about individual TBAs.
</ParMd>
<hr/>
<H2>Understanding SILO Retro Active DAO Formation (RDF)</H2>

<ParMd>
SILO Retro Active DAO Formation (RDF) enables the transformation of any
NFT (ERC-721) into a DAO by leveraging Token Bound Accounts (TBAs).
</ParMd>

<H3>Key Features:</H3>

<ol>
<ParMd>
<strong>NFT Upgrade to DAO:</strong> Each NFT has the potential to be
upgraded to a DAO through the utilization of TBAs.
</ParMd>
<ParMd>
<strong>Voting Representation:</strong> Each NFT represents one voting
unit, granting execution rights within the DAO.
</ParMd>
<ParMd>
<strong>Airdrop Incentives:</strong> NFTs claiming governance also
receive an airdrop of a specific amount of the community token (meme
token).
</ParMd>
<ParMd>
<strong>Meme Token Functionality:</strong> The meme token, a
transferable fixed supply asset, is distributed through airdrops, with
a portion controlled by the DAO. It acts as a tool to gauge sentiment
and gather signals from the community to drive the DAO's objectives.
</ParMd>
<ParMd>
<strong>DAO Avatar:</strong> Each NFT effectively functions as its own
avatar within the DAO, allowing delegation and voting rights.
</ParMd>
<ParMd>
<strong>NFT Transferability:</strong> Beyond its DAO functions, each
NFT retains its characteristic as a transferable NFT, providing
versatility in ownership.
</ParMd>
</ol>

<ParMd>
SILO RDF enables NFTs to transcend their standard functionality,
empowering them as active participants in the DAO ecosystem while
maintaining their inherent transferability and ownership attributes.
</ParMd>
</SingleColumnLayout>
);
};
4 changes: 4 additions & 0 deletions src/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,8 @@ export const siloTheme: ThemeOverrides = {
color: siloMono.step5,
},
},
banner: {
color: siloMono.step2,
bg: siloMono.step1,
},
};

0 comments on commit 70c5595

Please sign in to comment.