From 62460306d0080b93df06b334eede1b45b63c94d8 Mon Sep 17 00:00:00 2001 From: dappnodedev <144998261+dappnodedev@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:27:18 +0200 Subject: [PATCH] Add OP community (#1604) --- .../pages/rollups/components/OpCommunity.tsx | 70 +++++++++++++++++++ .../src/pages/rollups/components/Optimism.tsx | 2 + .../pages/rollups/components/opCommunity.css | 13 ++++ 3 files changed, 85 insertions(+) create mode 100644 packages/admin-ui/src/pages/rollups/components/OpCommunity.tsx create mode 100644 packages/admin-ui/src/pages/rollups/components/opCommunity.css diff --git a/packages/admin-ui/src/pages/rollups/components/OpCommunity.tsx b/packages/admin-ui/src/pages/rollups/components/OpCommunity.tsx new file mode 100644 index 000000000..ce82365d8 --- /dev/null +++ b/packages/admin-ui/src/pages/rollups/components/OpCommunity.tsx @@ -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 ( +
+ + + setIsOpen(!isOpen)} + style={{ cursor: "pointer" }} + > + {isOpen ? : }{" "} + Optimism Community + + + +
+ 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. +
+ +
+ + + + Discord: Connect with fellow enthusiasts, share insights, + seek assistance, or simply engage in lively blockchain + discussions. +
+
+ + + + Governance Forum: Delve into deep-dive discussions, share + your perspectives, or keep abreast with the latest updates. +
+
+ + + + Snapshot Governance Voting: Have a say in the future of + Optimism. Voice your opinion and cast your vote on key + proposals. +
+
+
+
+
+
+ ); +} diff --git a/packages/admin-ui/src/pages/rollups/components/Optimism.tsx b/packages/admin-ui/src/pages/rollups/components/Optimism.tsx index 38bac1d3c..456a6992f 100644 --- a/packages/admin-ui/src/pages/rollups/components/Optimism.tsx +++ b/packages/admin-ui/src/pages/rollups/components/Optimism.tsx @@ -17,6 +17,7 @@ import Input from "components/Input"; import { confirm } from "components/ConfirmDialog"; import { disclaimer } from "../data"; import { withToast } from "components/toast/Toast"; +import OpCommunity from "./OpCommunity"; export default function Optimism({ description }: { description: string }) { const { theme } = React.useContext(ThemeContext); @@ -109,6 +110,7 @@ export default function Optimism({ description }: { description: string }) { return (
+ {currentOptimismConfigReq.data ? (

diff --git a/packages/admin-ui/src/pages/rollups/components/opCommunity.css b/packages/admin-ui/src/pages/rollups/components/opCommunity.css new file mode 100644 index 000000000..ea258d479 --- /dev/null +++ b/packages/admin-ui/src/pages/rollups/components/opCommunity.css @@ -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 */ +}