diff --git a/web/components/keyserver-pill.css b/web/components/keyserver-pill.css new file mode 100644 --- /dev/null +++ b/web/components/keyserver-pill.css @@ -0,0 +1,19 @@ +.keyserverContainer { + display: flex; + justify-content: center; + align-items: center; + padding: 5px 10px; + border-radius: 8px; + background-color: var(--panel-background-primary-default); + column-gap: 4px; +} + +.keyserverName { + color: var(--text-background-primary-default); + font-size: var(--s-font-14); + font-weight: var(--semi-bold); +} + +.keyserverIcon { + color: var(--text-background-primary-default); +} diff --git a/web/components/keyserver-pill.react.js b/web/components/keyserver-pill.react.js new file mode 100644 --- /dev/null +++ b/web/components/keyserver-pill.react.js @@ -0,0 +1,23 @@ +// @flow + +import * as React from 'react'; + +import css from './keyserver-pill.css'; +import CommIcon from '../CommIcon.react.js'; + +type Props = { + +keyserverAdminUsername: string, +}; + +function KeyserverPill(props: Props): React.Node { + const { keyserverAdminUsername } = props; + + return ( +
+ +
{keyserverAdminUsername}
+
+ ); +} + +export default KeyserverPill; diff --git a/web/sidebar/community-creation/community-creation-keyserver-label.css b/web/sidebar/community-creation/community-creation-keyserver-label.css --- a/web/sidebar/community-creation/community-creation-keyserver-label.css +++ b/web/sidebar/community-creation/community-creation-keyserver-label.css @@ -9,21 +9,5 @@ div.ancestryContainer p { color: var(--community-creation-ancestry-text); -} - -.keyserverContainer { - display: flex; - justify-content: center; - align-items: center; - padding: 5px 10px; - margin: 0 6px; - border-radius: 8px; - background-color: var(--community-creation-keyserver-container); -} - -.keyserverName { - padding-left: 6px; - color: var(--thread-ancestor-color); - font-size: var(--s-font-14); - font-weight: var(--semi-bold); + margin-right: 6px; } diff --git a/web/sidebar/community-creation/community-creation-keyserver-label.react.js b/web/sidebar/community-creation/community-creation-keyserver-label.react.js --- a/web/sidebar/community-creation/community-creation-keyserver-label.react.js +++ b/web/sidebar/community-creation/community-creation-keyserver-label.react.js @@ -3,16 +3,13 @@ import * as React from 'react'; import css from './community-creation-keyserver-label.css'; -import CommIcon from '../../CommIcon.react.js'; +import KeyserverPill from '../../components/keyserver-pill.react.js'; function CommunityCreationKeyserverLabel(): React.Node { return (

within

-
- -
ashoat
-
+
); }