From b4b5ff47bfd3cda2ccea2849275daa9c4d4fa3f5 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Tue, 2 Feb 2021 13:25:26 +0200 Subject: [PATCH] Multiple minor improvements & fixes --- README.md | 8 ++++---- packages/concordia-app/src/assets/About.md | 8 ++++---- packages/concordia-app/src/assets/css/index.css | 10 ++++++++++ .../concordia-app/src/components/PostCreate/index.jsx | 8 ++++---- .../src/components/PostCreate/styles.css | 11 +++-------- .../src/components/PostList/PostListRow/index.jsx | 3 +-- .../src/layouts/MainLayout/MainLayoutMenu/styles.css | 2 +- packages/concordia-app/src/views/Home/Board/index.jsx | 3 ++- .../concordia-app/src/views/Home/Board/styles.css | 5 ----- .../Profile/GeneralTab/EditInformationModal/index.jsx | 4 +++- .../GeneralTab/EditInformationModal/styles.css | 8 ++++++++ .../src/views/Profile/GeneralTab/index.jsx | 1 + .../src/views/Profile/GeneralTab/styles.css | 5 ----- packages/concordia-app/src/views/Profile/index.jsx | 3 ++- packages/concordia-app/src/views/Profile/styles.css | 3 +++ .../src/views/Topic/TopicCreate/index.jsx | 5 +++-- .../src/views/Topic/TopicCreate/styles.css | 5 +++++ 17 files changed, 54 insertions(+), 38 deletions(-) create mode 100644 packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/styles.css create mode 100644 packages/concordia-app/src/views/Profile/styles.css diff --git a/README.md b/README.md index 97b0b0c..5ede2d4 100644 --- a/README.md +++ b/README.md @@ -4,28 +4,28 @@ ## Setup ```shell script -cd apella +cd concordia yarn ``` ## Compile contracts ```shell script -cd packages/apella-contracts +cd packages/concordia-contracts yarn compile ``` ## Run app ```shell script -cd packages/apella-app +cd packages/concordia-app yarn start ``` ## Build app ```shell script -cd packages/apella-app +cd packages/concordia-app yarn build ``` diff --git a/packages/concordia-app/src/assets/About.md b/packages/concordia-app/src/assets/About.md index b9a5885..5b9ad1f 100644 --- a/packages/concordia-app/src/assets/About.md +++ b/packages/concordia-app/src/assets/About.md @@ -23,13 +23,13 @@ authentication that makes trusted, direct voting possible. You can read more about the technological stack in Concordia's [whitepaper][concordia-whitepaper]. ---- +--- Developed by [apostolof][devs-apostolof-profile], [ezerous][devs-ezerous-profile] -[concordia-repository]: https://gitlab.com/ecentrics/apella -[concordia-docker-hub]: https://hub.docker.com/repository/docker/ecentrics/apella-app -[concordia-license]: https://gitlab.com/ecentrics/apella/-/blob/master/LICENSE.md +[concordia-repository]: https://gitlab.com/ecentrics/concordia +[concordia-docker-hub]: https://hub.docker.com/repository/docker/ecentrics/concordia-app +[concordia-license]: https://gitlab.com/ecentrics/concordia/-/blob/master/LICENSE.md [devs-apostolof-profile]: https://gitlab.com/Apostolof [devs-ezerous-profile]: https://gitlab.com/Ezerous [concordia-whitepaper]: https://whitepaper.concordia.ecentrics.net diff --git a/packages/concordia-app/src/assets/css/index.css b/packages/concordia-app/src/assets/css/index.css index 594a9ce..e7005f0 100644 --- a/packages/concordia-app/src/assets/css/index.css +++ b/packages/concordia-app/src/assets/css/index.css @@ -1,5 +1,6 @@ :root { --primary-color: #0B2540; + --primary-color-highlighted: #061A30; --secondary-color: #EA6954; --secondary-color-highlighted: #DB5844; } @@ -26,3 +27,12 @@ div { color: gray; font-style: italic; } + +.main-button{ + color: white !important; + background-color: var(--secondary-color) !important; +} + +.main-button:hover { + background-color: var(--secondary-color-highlighted) !important; +} diff --git a/packages/concordia-app/src/components/PostCreate/index.jsx b/packages/concordia-app/src/components/PostCreate/index.jsx index 360d4ae..17ea739 100644 --- a/packages/concordia-app/src/components/PostCreate/index.jsx +++ b/packages/concordia-app/src/components/PostCreate/index.jsx @@ -131,12 +131,12 @@ const PostCreate = (props) => { /> - + - @@ -146,7 +146,7 @@ const PostCreate = (props) => { - + diff --git a/packages/concordia-app/src/components/PostCreate/styles.css b/packages/concordia-app/src/components/PostCreate/styles.css index 94d5fc5..8772846 100644 --- a/packages/concordia-app/src/components/PostCreate/styles.css +++ b/packages/concordia-app/src/components/PostCreate/styles.css @@ -8,16 +8,11 @@ color: #fff !important; } -#post-button { +#post-button-div { float: right; - margin: 1rem 0; + margin: 1rem 0 4rem 0; } -#post-button button { +#post-button-div button { margin: 0; - background-color: var(--secondary-color); -} - -#post-button button:hover { - background-color: var(--secondary-color-highlighted); } diff --git a/packages/concordia-app/src/components/PostList/PostListRow/index.jsx b/packages/concordia-app/src/components/PostList/PostListRow/index.jsx index 371a218..c1f636b 100644 --- a/packages/concordia-app/src/components/PostList/PostListRow/index.jsx +++ b/packages/concordia-app/src/components/PostList/PostListRow/index.jsx @@ -2,7 +2,7 @@ import React, { memo, useEffect, useMemo, useState, useCallback, } from 'react'; import { - Dimmer, Icon, Image, Feed, Placeholder, Ref, + Dimmer, Feed, Placeholder, Ref, } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; @@ -14,7 +14,6 @@ import { breeze } from '../../../redux/store'; import './styles.css'; import { POSTS_DATABASE, USER_DATABASE } from '../../../constants/orbit/OrbitDatabases'; import determineKVAddress from '../../../utils/orbitUtils'; -import { USER_PROFILE_PICTURE } from '../../../constants/orbit/UserDatabaseKeys'; import { POST_CONTENT } from '../../../constants/orbit/PostsDatabaseKeys'; import { FORUM_CONTRACT } from '../../../constants/contracts/ContractNames'; import ProfileImage from '../../ProfileImage'; diff --git a/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/styles.css b/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/styles.css index 46bc68f..86cb6a1 100644 --- a/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/styles.css +++ b/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/styles.css @@ -5,5 +5,5 @@ .ui.inverted.menu { background: var(--primary-color) !important; border-radius: 0; - margin-bottom: 2em; + margin-bottom: 4rem; } diff --git a/packages/concordia-app/src/views/Home/Board/index.jsx b/packages/concordia-app/src/views/Home/Board/index.jsx index 43e7c23..7b93ea6 100644 --- a/packages/concordia-app/src/views/Home/Board/index.jsx +++ b/packages/concordia-app/src/views/Home/Board/index.jsx @@ -21,11 +21,12 @@ const Board = (props) => { {hasSignedUp ? (