-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9157abf
commit 6246030
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
packages/admin-ui/src/pages/rollups/components/OpCommunity.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React, { useState } from "react"; | ||
import { Accordion, Card } from "react-bootstrap"; | ||
import { IoIosArrowDropdown, IoIosArrowDropup } from "react-icons/io"; | ||
import { BsDiscord } from "react-icons/bs"; | ||
import { MdForum, MdHowToVote } from "react-icons/md"; | ||
import "./opCommunity.css"; | ||
|
||
export default function OpCommunity() { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
const iconStyle = { | ||
fontSize: "2rem", | ||
marginRight: "1rem" | ||
}; | ||
|
||
return ( | ||
<div> | ||
<Accordion defaultActiveKey={isOpen ? "0" : ""}> | ||
<Card> | ||
<Accordion.Toggle | ||
as={Card.Header} | ||
eventKey="0" | ||
onClick={() => setIsOpen(!isOpen)} | ||
style={{ cursor: "pointer" }} | ||
> | ||
{isOpen ? <IoIosArrowDropup /> : <IoIosArrowDropdown />}{" "} | ||
<b>Optimism Community</b> | ||
</Accordion.Toggle> | ||
<Accordion.Collapse eventKey="0"> | ||
<Card.Body> | ||
<div style={{ marginBottom: "1rem" }}> | ||
Dive into the next-gen blockchain scalability solution. Optimism | ||
revolutionizes transaction speeds, ensuring a seamless and | ||
efficient decentralized experience. Be part of the movement | ||
that's shaping the future of blockchain. | ||
</div> | ||
|
||
<div> | ||
<a href="https://discord.gg/optimism" className="iconLink"> | ||
<BsDiscord style={iconStyle} /> | ||
</a> | ||
<b>Discord</b>: Connect with fellow enthusiasts, share insights, | ||
seek assistance, or simply engage in lively blockchain | ||
discussions. | ||
</div> | ||
<div> | ||
<a href="https://gov.optimism.io/" className="iconLink"> | ||
<MdForum style={iconStyle} /> | ||
</a> | ||
<b>Governance Forum</b>: Delve into deep-dive discussions, share | ||
your perspectives, or keep abreast with the latest updates. | ||
</div> | ||
<div> | ||
<a | ||
href="https://snapshot.org/#/opcollective.eth" | ||
className="iconLink" | ||
> | ||
<MdHowToVote style={iconStyle} /> | ||
</a> | ||
<b>Snapshot Governance Voting</b>: Have a say in the future of | ||
Optimism. Voice your opinion and cast your vote on key | ||
proposals. | ||
</div> | ||
</Card.Body> | ||
</Accordion.Collapse> | ||
</Card> | ||
</Accordion> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/admin-ui/src/pages/rollups/components/opCommunity.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.iconLink { | ||
color: inherit; /* inherit color to make sure it looks like regular text */ | ||
text-decoration: none; /* to remove the underline */ | ||
} | ||
|
||
.iconLink:hover { | ||
color: var(--dappnode-links-color); /* change the color on hover */ | ||
} | ||
|
||
.iconLink svg { | ||
/* targeting the svg which is the icon */ | ||
vertical-align: middle; /* to align the icon with the text */ | ||
} |