Browse Source

Multiple minor improvements & fixes vol.2

develop
Ezerous 4 years ago
parent
commit
2923f9de0b
  1. 2
      packages/concordia-app/public/locales/en/translation.json
  2. 34
      packages/concordia-app/src/assets/css/index.css
  3. 2
      packages/concordia-app/src/assets/particles.js
  4. 4
      packages/concordia-app/src/components/ClearDatabasesModal/index.jsx
  5. 2
      packages/concordia-app/src/components/PostCreate/index.jsx
  6. 2
      packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/styles.css
  7. 2
      packages/concordia-app/src/views/Home/Board/index.jsx
  8. 5
      packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/index.jsx
  9. 8
      packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/styles.css
  10. 2
      packages/concordia-app/src/views/Profile/GeneralTab/index.jsx
  11. 4
      packages/concordia-app/src/views/Profile/styles.css
  12. 5
      packages/concordia-app/src/views/Register/PersonalInformationStep/index.jsx
  13. 5
      packages/concordia-app/src/views/Register/SignUpStep/index.jsx
  14. 4
      packages/concordia-app/src/views/Register/index.jsx
  15. 12
      packages/concordia-app/src/views/Topic/TopicCreate/index.jsx
  16. 5
      packages/concordia-app/src/views/Topic/TopicCreate/styles.css
  17. 2
      packages/concordia-app/src/views/Topic/TopicView/styles.css

2
packages/concordia-app/public/locales/en/translation.json

@ -69,7 +69,7 @@
"topbar.button.register": "Sign Up", "topbar.button.register": "Sign Up",
"topic.create.form.content.field.label": "First post content", "topic.create.form.content.field.label": "First post content",
"topic.create.form.content.field.placeholder": "Message", "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.label": "Topic subject",
"topic.create.form.subject.field.placeholder": "Subject", "topic.create.form.subject.field.placeholder": "Subject",
"topic.list.row.topic.id": "#{{id}}", "topic.list.row.topic.id": "#{{id}}",

34
packages/concordia-app/src/assets/css/index.css

@ -1,11 +1,13 @@
:root { :root {
--primary-color: #0B2540; --primary-color: #EA6954;
--primary-color-highlighted: #061A30; --primary-color-highlighted: #DB5844;
--secondary-color: #EA6954; --secondary-color: #0B2540;
--secondary-color-highlighted: #DB5844; --secondary-color-highlighted: #061A30;
} }
body.app { body.app {
height: auto;
padding-bottom: 4rem;
overflow: auto; overflow: auto;
margin: 0; margin: 0;
background: #E6E6E6; background: #E6E6E6;
@ -28,11 +30,31 @@ div {
font-style: italic; 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; color: white !important;
background-color: var(--secondary-color) !important; background-color: var(--secondary-color) !important;
} }
.main-button:hover { .secondary-button:hover {
background-color: var(--secondary-color-highlighted) !important; 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;
}

2
packages/concordia-app/src/assets/particles.js

@ -16,7 +16,7 @@ const particlesOptions = {
speed: 0.12, speed: 0.12,
}, },
size: { size: {
value: 1, value: 1.5,
}, },
opacity: { opacity: {
anim: { anim: {

4
packages/concordia-app/src/components/ClearDatabasesModal/index.jsx

@ -126,10 +126,10 @@ const ClearDatabasesModal = (props) => {
{!isClearing && ( {!isClearing && (
<Modal.Actions> <Modal.Actions>
<Button color="black" basic onClick={onCancelTry} disabled={isClearing}> <Button className="secondary-button" onClick={onCancelTry} disabled={isClearing}>
{t('clear.databases.modal.cancel.button')} {t('clear.databases.modal.cancel.button')}
</Button> </Button>
<Button onClick={handleSubmit} negative disabled={!userConfirmed}> <Button onClick={handleSubmit} className="primary-button" disabled={!userConfirmed}>
{t('clear.databases.modal.clear.button')} {t('clear.databases.modal.clear.button')}
</Button> </Button>
</Modal.Actions> </Modal.Actions>

2
packages/concordia-app/src/components/PostCreate/index.jsx

@ -136,7 +136,7 @@ const PostCreate = (props) => {
<Button <Button
animated animated
type="button" type="button"
className="main-button" className="primary-button"
disabled={posting || postContent === ''} disabled={posting || postContent === ''}
onClick={savePost} onClick={savePost}
> >

2
packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/styles.css

@ -3,7 +3,7 @@
} }
.ui.inverted.menu { .ui.inverted.menu {
background: var(--primary-color) !important; background: var(--secondary-color) !important;
border-radius: 0; border-radius: 0;
margin-bottom: 4rem; margin-bottom: 4rem;
} }

2
packages/concordia-app/src/views/Home/Board/index.jsx

@ -22,7 +22,7 @@ const Board = (props) => {
? ( ? (
<Button <Button
id="new-topic-button" id="new-topic-button"
className="main-button" className="primary-button"
content="New Topic" content="New Topic"
icon="plus" icon="plus"
labelPosition="left" labelPosition="left"

5
packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/index.jsx

@ -12,7 +12,6 @@ import { USER_DATABASE } from '../../../../constants/orbit/OrbitDatabases';
import { breeze, drizzle } from '../../../../redux/store'; import { breeze, drizzle } from '../../../../redux/store';
import UsernameSelector from '../../../../components/UsernameSelector'; import UsernameSelector from '../../../../components/UsernameSelector';
import { FORUM_CONTRACT } from '../../../../constants/contracts/ContractNames'; import { FORUM_CONTRACT } from '../../../../constants/contracts/ContractNames';
import './styles.css';
const { orbit: { stores } } = breeze; const { orbit: { stores } } = breeze;
const { contracts: { [FORUM_CONTRACT]: { methods: { updateUsername } } } } = drizzle; const { contracts: { [FORUM_CONTRACT]: { methods: { updateUsername } } } } = drizzle;
@ -198,11 +197,11 @@ const EditInformationModal = (props) => {
</Modal.Description> </Modal.Description>
</Modal.Content> </Modal.Content>
<Modal.Actions> <Modal.Actions>
<Button id="cancel-button" onClick={onCancel}> <Button className="secondary-button" onClick={onCancel}>
{t('edit.information.modal.form.cancel.button')} {t('edit.information.modal.form.cancel.button')}
</Button> </Button>
<Button <Button
className="main-button" className="primary-button"
content={t('edit.information.modal.form.submit.button')} content={t('edit.information.modal.form.submit.button')}
labelPosition="right" labelPosition="right"
icon="checkmark" icon="checkmark"

8
packages/concordia-app/src/views/Profile/GeneralTab/EditInformationModal/styles.css

@ -1,8 +0,0 @@
#cancel-button {
color: white;
background-color: var(--primary-color);
}
#cancel-button:hover {
background-color: var(--primary-color-highlighted);
}

2
packages/concordia-app/src/views/Profile/GeneralTab/index.jsx

@ -173,7 +173,7 @@ const GeneralTab = (props) => {
<Table.HeaderCell colSpan="2"> <Table.HeaderCell colSpan="2">
<Button <Button
id="edit-info-button" id="edit-info-button"
className="main-button" className="primary-button"
floated="right" floated="right"
icon icon
labelPosition="left" labelPosition="left"

4
packages/concordia-app/src/views/Profile/styles.css

@ -1,3 +1,3 @@
#profile-container > div { #profile-container {
margin-bottom: 4rem; height: auto !important;
} }

5
packages/concordia-app/src/views/Register/PersonalInformationStep/index.jsx

@ -150,16 +150,15 @@ const PersonalInformationStep = (props) => {
)} )}
<Card.Content extra> <Card.Content extra>
<Button <Button
color="green" className="primary-button"
floated="right" floated="right"
content={t('register.form.personal.information.step.button.submit')} content={t('register.form.personal.information.step.button.submit')}
onClick={handleSubmit} onClick={handleSubmit}
disabled={!profilePictureUrlValid} disabled={!profilePictureUrlValid}
/> />
<Button <Button
color="violet" className="skip-button"
floated="right" floated="right"
basic
content={t('register.form.personal.information.step.button.skip')} content={t('register.form.personal.information.step.button.skip')}
onClick={goToHomePage} onClick={goToHomePage}
/> />

5
packages/concordia-app/src/views/Register/SignUpStep/index.jsx

@ -94,7 +94,7 @@ const SignUpStep = (props) => {
)} )}
<Card.Content extra> <Card.Content extra>
<Button <Button
color="green" className="primary-button"
floated="right" floated="right"
content={t('register.form.sign.up.step.button.submit')} content={t('register.form.sign.up.step.button.submit')}
onClick={handleSubmit} onClick={handleSubmit}
@ -102,9 +102,8 @@ const SignUpStep = (props) => {
loading={!usernameIsChecked} loading={!usernameIsChecked}
/> />
<Button <Button
color="violet" className="skip-button"
floated="right" floated="right"
basic
content={t('register.form.sign.up.step.button.guest')} content={t('register.form.sign.up.step.button.guest')}
onClick={goToHomePage} onClick={goToHomePage}
disabled={signingUp} disabled={signingUp}

4
packages/concordia-app/src/views/Register/index.jsx

@ -5,10 +5,10 @@ import {
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { useHistory } from 'react-router'; import { useHistory } from 'react-router';
import './styles.css';
import SignUpStep from './SignUpStep'; import SignUpStep from './SignUpStep';
import PersonalInformationStep from './PersonalInformationStep'; import PersonalInformationStep from './PersonalInformationStep';
import { REGISTER_STEP_PROFILE_INFORMATION, REGISTER_STEP_SIGNUP } from '../../constants/RegisterSteps'; import { REGISTER_STEP_PROFILE_INFORMATION, REGISTER_STEP_SIGNUP } from '../../constants/RegisterSteps';
import './styles.css';
const Register = () => { const Register = () => {
const [currentStep, setCurrentStep] = useState('signup'); const [currentStep, setCurrentStep] = useState('signup');
@ -107,7 +107,7 @@ const Register = () => {
</Card.Content> </Card.Content>
<Card.Content extra> <Card.Content extra>
<Button <Button
color="black" className="secondary-button"
floated="right" floated="right"
content={t('register.form.button.back')} content={t('register.form.button.back')}
onClick={goToHomePage} onClick={goToHomePage}

12
packages/concordia-app/src/views/Topic/TopicCreate/index.jsx

@ -97,7 +97,7 @@ const TopicCreate = (props) => {
return ( return (
<Container> <Container>
<Header id="new-topic-header">New Topic</Header> <Header id="new-topic-header" as="h2">New Topic</Header>
<Form loading={posting}> <Form loading={posting}>
<Form.Field required> <Form.Field required>
<label htmlFor="form-topic-create-field-subject"> <label htmlFor="form-topic-create-field-subject">
@ -126,12 +126,12 @@ const TopicCreate = (props) => {
onChange={handleSubjectInputChange} onChange={handleSubjectInputChange}
/> />
</Form.Field> </Form.Field>
<Form.Group> <Button
<Form.Button id="create-topic-button"
animated animated
key="form-topic-create-button-submit" key="form-topic-create-button-submit"
type="button" type="button"
color="green" className="primary-button"
disabled={posting || subjectInput === '' || contentInput === ''} disabled={posting || subjectInput === '' || contentInput === ''}
onClick={validateAndPost} onClick={validateAndPost}
> >
@ -141,8 +141,8 @@ const TopicCreate = (props) => {
<Button.Content hidden> <Button.Content hidden>
<Icon name="send" /> <Icon name="send" />
</Button.Content> </Button.Content>
</Form.Button> </Button>
</Form.Group>
</Form> </Form>
</Container> </Container>
); );

5
packages/concordia-app/src/views/Topic/TopicCreate/styles.css

@ -9,3 +9,8 @@
border-color: rgb(224, 180, 180) !important; border-color: rgb(224, 180, 180) !important;
background-color: rgb(255, 246, 246) !important; background-color: rgb(255, 246, 246) !important;
} }
#create-topic-button {
float: right;
margin: 1rem 0 4rem 0;
}

2
packages/concordia-app/src/views/Topic/TopicView/styles.css

@ -1,5 +1,5 @@
#topic-container { #topic-container {
height: 100%; height: auto !important;
} }
#topic-header { #topic-header {

Loading…
Cancel
Save