diff --git a/net/web/src/constants/Colors.js b/net/web/src/constants/Colors.js index cc594bdd..191f04fd 100644 --- a/net/web/src/constants/Colors.js +++ b/net/web/src/constants/Colors.js @@ -7,18 +7,29 @@ const Colors = { grey: '#888888', white: '#ffffff', divider: '#dddddd', + mask: '#dddddd', encircle: '#cccccc', alert: '#ff8888', enabled: '#444444', disabled: '#aaaaaa', text: '#444444', + link: '#0077CC', + itemDivider: '#eeeeee', + connected: '#44cc44', connecting: '#dd88ff', requested: '#4488ff', pending: '#22aaaa', confirmed: '#aaaaaa', error: '#ff4444', + + profileForm: '#e8e8e8', + profileDivider: '#aaaaaa', + statsForm: '#ededed', + statsDivider: '#afafaf', + channel: '#f2f2f2', + card: '#eeeeee', }; export default Colors; diff --git a/net/web/src/session/Session.jsx b/net/web/src/session/Session.jsx index 3f7bc402..fbe12aa0 100644 --- a/net/web/src/session/Session.jsx +++ b/net/web/src/session/Session.jsx @@ -12,7 +12,7 @@ import { Channels } from './channels/Channels'; import { Cards } from './cards/Cards'; import { Contact } from './contact/Contact'; import { Profile } from './profile/Profile'; -import { Stats } from './stats/Stats'; +import { Account } from './account/Account'; import { Welcome } from './welcome/Welcome'; import { BottomNav } from './bottomNav/BottomNav'; @@ -31,8 +31,13 @@ export function Session() { } }, [app, navigate]); - const openProfile = () => { - actions.openProfile(); + const closeAccount = () => { + actions.closeProfile(); + actions.closeAccount(); + } + + const openAccount = () => { + actions.openAccount(); actions.closeCards(); actions.closeContact(); } @@ -40,15 +45,17 @@ export function Session() { const openCards = () => { actions.openCards(); actions.closeProfile(); - actions.closeStats(); + actions.closeAccount(); } +console.log("STATE", state); + return ( { (viewport.state.display === 'xlarge') && (
- +
@@ -66,7 +73,7 @@ export function Session() { )} { state.profile && (
- +
)}
@@ -82,9 +89,9 @@ export function Session() {
)} - { state.profile && ( + { (state.profile || state.account) && (
- +
)} @@ -93,7 +100,7 @@ export function Session() { { (viewport.state.display === 'large' || viewport.state.display === 'medium') && (
- +
@@ -120,15 +127,10 @@ export function Session() { )} - - { state.profile && ( - + + { (state.profile || state.account) && ( + )} - - { state.stats && ( - - )} -
@@ -159,16 +161,11 @@ export function Session() { )} - { state.profile && ( + { (state.profile || state.account) && (
)} - { state.stats && ( -
- -
- )}
diff --git a/net/web/src/session/Session.styled.js b/net/web/src/session/Session.styled.js index ace3c393..e2b79bfb 100644 --- a/net/web/src/session/Session.styled.js +++ b/net/web/src/session/Session.styled.js @@ -28,7 +28,7 @@ export const SessionWrapper = styled.div` min-height: 0; .bottom { - height: calc(100% - 64px); + height: calc(100% - 48px); } } .center { @@ -65,7 +65,7 @@ export const SessionWrapper = styled.div` min-height: 0; .bottom { - height: calc(100% - 64px); + height: calc(100% - 48px); } } .right { diff --git a/net/web/src/session/account/Account.jsx b/net/web/src/session/account/Account.jsx new file mode 100644 index 00000000..c574fbb5 --- /dev/null +++ b/net/web/src/session/account/Account.jsx @@ -0,0 +1,30 @@ +import { AccountWrapper } from './Account.styled'; +import { DoubleRightOutlined } from '@ant-design/icons'; +import { Checkbox } from 'antd'; +import { SettingOutlined, LockOutlined } from '@ant-design/icons'; + +export function Account({ closeAccount, openProfile }) { + + return ( + +
+
Account
+
+ +
+
+
+ Visible in Registry + + +
+
+ ); +} + diff --git a/net/web/src/session/account/Account.styled.js b/net/web/src/session/account/Account.styled.js new file mode 100644 index 00000000..981c59f9 --- /dev/null +++ b/net/web/src/session/account/Account.styled.js @@ -0,0 +1,59 @@ +import styled from 'styled-components'; +import Colors from 'constants/Colors'; + +export const AccountWrapper = styled.div` + height: 100%; + width: 100%; + display: flex; + flex-direction: column; + background-color: ${Colors.statsForm}; + + .header { + width: 100%; + height: 48px; + border-bottom: 1px solid ${Colors.statsDivider}; + display: flex; + flex-shrink: 0; + align-items: center; + justify-content: center; + font-size: 18px; + padding: 16px; + + .label { + flex-grow: 1; + display: flex; + justify-content: center; + } + + .dismiss { + font-size: 18px; + color: ${Colors.text}; + cursor: pointer; + } + } + + .content { + min-height: 0; + width: 100%; + overflow: scroll; + display: flex; + flex-direction: column; + justify-content: center; + padding-top: 32px; + align-items: center; + + .link { + color: ${Colors.primary}; + padding-top: 16px; + display: flex; + flex-direction: row; + align-items: center; + cursor: pointer; + + .label { + padding-left: 8px; + } + } + } + +` diff --git a/net/web/src/session/bottomNav/BottomNav.jsx b/net/web/src/session/bottomNav/BottomNav.jsx index 7faa7bf6..1af70f98 100644 --- a/net/web/src/session/bottomNav/BottomNav.jsx +++ b/net/web/src/session/bottomNav/BottomNav.jsx @@ -18,7 +18,7 @@ export function BottomNav({ state, actions }) { actions.closeCards(); actions.closeContact(); actions.closeProfile(); - actions.closeStats(); + actions.closeAccount(); actions.closeConversation(); } @@ -27,7 +27,6 @@ export function BottomNav({ state, actions }) { actions.closeCards(); actions.closeContact(); actions.openProfile(); - actions.closeStats(); actions.closeConversation(); } @@ -36,7 +35,7 @@ export function BottomNav({ state, actions }) { actions.openCards(); actions.closeContact(); actions.closeProfile(); - actions.closeStats(); + actions.closeAccount(); actions.closeConversation(); } diff --git a/net/web/src/session/cards/Cards.jsx b/net/web/src/session/cards/Cards.jsx index ce99322c..6d247f0c 100644 --- a/net/web/src/session/cards/Cards.jsx +++ b/net/web/src/session/cards/Cards.jsx @@ -23,7 +23,7 @@ export function Cards({ close }) { )}
} - size="large" spellCheck="false" onChange={(e) => actions.onFilter(e.target.value)} /> + spellCheck="false" onChange={(e) => actions.onFilter(e.target.value)} />
{ state.display === 'small' && (
diff --git a/net/web/src/session/cards/Cards.styled.js b/net/web/src/session/cards/Cards.styled.js index ce532c70..8f7c6093 100644 --- a/net/web/src/session/cards/Cards.styled.js +++ b/net/web/src/session/cards/Cards.styled.js @@ -6,7 +6,7 @@ export const CardsWrapper = styled.div` width: 100%; display: flex; flex-direction: column; - background-color: ${Colors.formFocus}; + background-color: ${Colors.card}; .view { min-height: 0; @@ -15,10 +15,14 @@ export const CardsWrapper = styled.div` } .search { - padding: 12px; border-bottom: 1px solid ${Colors.divider}; display: flex; flex-direction: row; + height: 48px; + padding-left: 16px; + padding-right: 16px; + padding-top: 8px; + padding-bottom: 8px; .sorted { color: ${Colors.enabled}; @@ -65,7 +69,7 @@ export const CardsWrapper = styled.div` } .bar { - height: 64px; + height: 48px; width: 100%; display: flex; flex-shrink: 0; @@ -73,9 +77,9 @@ export const CardsWrapper = styled.div` align-items: center; justify-content: center; background-color: ${Colors.formBackground}; - border-top: 2px solid ${Colors.divider}; - padding-bottom: 16px; - padding-top: 16px; + border-top: 1px solid ${Colors.divider}; + padding-bottom: 12px; + padding-top: 12px; position: relative; } diff --git a/net/web/src/session/channels/Channels.jsx b/net/web/src/session/channels/Channels.jsx index 6b0ecbbc..b4a40a85 100644 --- a/net/web/src/session/channels/Channels.jsx +++ b/net/web/src/session/channels/Channels.jsx @@ -13,7 +13,7 @@ export function Channels() {