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 ( +
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 */ +}