From 2923f9de0b12aadc5e32be3e1e43c446a30d089e Mon Sep 17 00:00:00 2001 From: Ezerous Date: Tue, 2 Feb 2021 20:30:02 +0200 Subject: [PATCH] Multiple minor improvements & fixes vol.2 --- .../public/locales/en/translation.json | 2 +- .../concordia-app/src/assets/css/index.css | 34 ++++++++++++++--- .../concordia-app/src/assets/particles.js | 2 +- .../components/ClearDatabasesModal/index.jsx | 4 +- .../src/components/PostCreate/index.jsx | 2 +- .../MainLayout/MainLayoutMenu/styles.css | 2 +- .../src/views/Home/Board/index.jsx | 2 +- .../GeneralTab/EditInformationModal/index.jsx | 5 +-- .../EditInformationModal/styles.css | 8 ---- .../src/views/Profile/GeneralTab/index.jsx | 2 +- .../src/views/Profile/styles.css | 4 +- .../PersonalInformationStep/index.jsx | 5 +-- .../src/views/Register/SignUpStep/index.jsx | 5 +-- .../src/views/Register/index.jsx | 4 +- .../src/views/Topic/TopicCreate/index.jsx | 38 +++++++++---------- .../src/views/Topic/TopicCreate/styles.css | 5 +++ .../src/views/Topic/TopicView/styles.css | 2 +- 17 files changed, 71 insertions(+), 55 deletions(-) delete mode 100644 packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/styles.css diff --git a/packages/concordia-app/public/locales/en/translation.json b/packages/concordia-app/public/locales/en/translation.json index e09a733..d37376c 100644 --- a/packages/concordia-app/public/locales/en/translation.json +++ b/packages/concordia-app/public/locales/en/translation.json @@ -69,7 +69,7 @@ "topbar.button.register": "Sign Up", "topic.create.form.content.field.label": "First post content", "topic.create.form.content.field.placeholder": "Message", - "topic.create.form.post.button": "Post", + "topic.create.form.post.button": "Create Topic", "topic.create.form.subject.field.label": "Topic subject", "topic.create.form.subject.field.placeholder": "Subject", "topic.list.row.topic.id": "#{{id}}", diff --git a/packages/concordia-app/src/assets/css/index.css b/packages/concordia-app/src/assets/css/index.css index e7005f0..2ecb4f9 100644 --- a/packages/concordia-app/src/assets/css/index.css +++ b/packages/concordia-app/src/assets/css/index.css @@ -1,11 +1,13 @@ :root { - --primary-color: #0B2540; - --primary-color-highlighted: #061A30; - --secondary-color: #EA6954; - --secondary-color-highlighted: #DB5844; + --primary-color: #EA6954; + --primary-color-highlighted: #DB5844; + --secondary-color: #0B2540; + --secondary-color-highlighted: #061A30; } body.app { + height: auto; + padding-bottom: 4rem; overflow: auto; margin: 0; background: #E6E6E6; @@ -28,11 +30,31 @@ div { font-style: italic; } -.main-button{ +.primary-button{ + color: white !important; + background-color: var(--primary-color) !important; +} + +.primary-button:hover { + background-color: var(--primary-color-highlighted) !important; +} + +.secondary-button{ color: white !important; background-color: var(--secondary-color) !important; } -.main-button:hover { +.secondary-button:hover { background-color: var(--secondary-color-highlighted) !important; } + +.skip-button { + color: var(--secondary-color) !important; + background-color: white !important; + box-shadow: 0 0 0 1px var(--secondary-color) inset !important; +} + +.skip-button:hover { + color: var(--secondary-color-highlighted) !important; + box-shadow: 0 0 0 1px var(--secondary-color-highlighted) inset !important; +} diff --git a/packages/concordia-app/src/assets/particles.js b/packages/concordia-app/src/assets/particles.js index d4ce239..68a19b7 100644 --- a/packages/concordia-app/src/assets/particles.js +++ b/packages/concordia-app/src/assets/particles.js @@ -16,7 +16,7 @@ const particlesOptions = { speed: 0.12, }, size: { - value: 1, + value: 1.5, }, opacity: { anim: { diff --git a/packages/concordia-app/src/components/ClearDatabasesModal/index.jsx b/packages/concordia-app/src/components/ClearDatabasesModal/index.jsx index 26e47fe..db2aa72 100644 --- a/packages/concordia-app/src/components/ClearDatabasesModal/index.jsx +++ b/packages/concordia-app/src/components/ClearDatabasesModal/index.jsx @@ -126,10 +126,10 @@ const ClearDatabasesModal = (props) => { {!isClearing && ( - - diff --git a/packages/concordia-app/src/components/PostCreate/index.jsx b/packages/concordia-app/src/components/PostCreate/index.jsx index 17ea739..bf75927 100644 --- a/packages/concordia-app/src/components/PostCreate/index.jsx +++ b/packages/concordia-app/src/components/PostCreate/index.jsx @@ -136,7 +136,7 @@ const PostCreate = (props) => { + ); diff --git a/packages/concordia-app/src/views/Topic/TopicCreate/styles.css b/packages/concordia-app/src/views/Topic/TopicCreate/styles.css index 229f696..5d078ac 100644 --- a/packages/concordia-app/src/views/Topic/TopicCreate/styles.css +++ b/packages/concordia-app/src/views/Topic/TopicCreate/styles.css @@ -9,3 +9,8 @@ border-color: rgb(224, 180, 180) !important; background-color: rgb(255, 246, 246) !important; } + +#create-topic-button { + float: right; + margin: 1rem 0 4rem 0; +} diff --git a/packages/concordia-app/src/views/Topic/TopicView/styles.css b/packages/concordia-app/src/views/Topic/TopicView/styles.css index b592494..75b87b7 100644 --- a/packages/concordia-app/src/views/Topic/TopicView/styles.css +++ b/packages/concordia-app/src/views/Topic/TopicView/styles.css @@ -1,5 +1,5 @@ #topic-container { - height: 100%; + height: auto !important; } #topic-header {