Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"proxy": "http://localhost:5000",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && ./build.sh",
"build": "CI=false && react-scripts build && ./build.sh",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
27 changes: 27 additions & 0 deletions src/common/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react';
import { Button } from 'react-bootstrap';

const Btn = (props) => {
let styles = {
fontFamily: 'Inter',
boxShadow: 'none',
borderRadius: '0.25rem',
fontStyle: 'normal'
};
if (props.buttonType === 'outline'){
styles.backgroundColor = '#ffffff';
styles.color = '#1A73E8';
} else {
styles.backgroundColor = '#1A73E8';
styles.color = '#ffffff';
}
const Props = {...props};
Props.style = styles;
return(
<Button {...Props}>
{props.children}
</Button>
)
}

export default Btn;
16 changes: 8 additions & 8 deletions src/css/components/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
width: 6vw;
height: 5vh;
background: rgb(250, 251, 252);
border-radius: 100px;
font-family: Inter;
color: #1A73E8;
padding: 0.3em;
margin-left: 1em;
Expand Down Expand Up @@ -257,8 +257,6 @@
.modal__remove__followButton {
border: 1px solid #eb5757;
box-sizing: border-box;
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 34px;
background: transparent;
width: 83px;
height: 4.5vh;
Expand Down Expand Up @@ -309,9 +307,8 @@
display: flex;
.invite__btn {
margin-left: 3px;
font-family: Inter;
background: #1a73e8;
box-shadow: 1.26667px 2.53333px 6.33333px rgba(0, 0, 0, 0.1);
border-radius: 43.0667px;
width: 83px;
height: 4.5vh;
padding: 0px;
Expand All @@ -322,9 +319,8 @@
flex-wrap: wrap;
.invite__btn {
margin-right: 10px;
font-family: Inter;
background: #1a73e8;
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 20px;
width: 83px;
height: 4.5vh;
padding: 0px;
Expand Down Expand Up @@ -385,4 +381,8 @@
}
}
}
}
.vertical-align-row {
display: flex;
align-items: center;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

9 changes: 5 additions & 4 deletions src/user/dashboard/news-feed/news-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { Button } from "react-bootstrap";
import Btn from "../../../common/Button";
import AddEventModal from "./popups/AddEventModal";
import AddProjectModal from "./popups/AddProjectModal";
import ArrowDropUpIcon from "@material-ui/icons/ArrowDropUp";
Expand Down Expand Up @@ -393,7 +394,7 @@ function NewsFeed(props) {
color="primary"
aria-label="contained primary button group"
>
<Button
<Btn
variant="primary"
onClick={() => {
handleShow("event");
Expand All @@ -413,8 +414,8 @@ function NewsFeed(props) {
/>
</svg>
<span className="optionbtn-text">Event</span>
</Button>
<Button
</Btn>
<Btn
variant="primary"
className="optionbtn"
onClick={() => {
Expand All @@ -434,7 +435,7 @@ function NewsFeed(props) {
/>
</svg>
<span className="optionbtn-text">Project</span>
</Button>
</Btn>
</ButtonGroup>
</div>
</div>
Expand Down
6 changes: 1 addition & 5 deletions src/user/dashboard/news-feed/news-feed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
height: 50px;
.article {
display: flex;
align-items: center;
form {
flex: 1;
border: none;
Expand Down Expand Up @@ -392,16 +393,11 @@
}

.optionbtn {
background: #1a73e8;
border-radius: 100px;
.optionbtn-text {
font-family: Inter;
font-style: normal;
font-weight: 600;
font-size: 16px;
line-height: 19px;

color: #ffffff;
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/user/dashboard/notifications/notifications.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
display: inline;
}
.tag {
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 31px;
padding: 2px;
border: 1px solid #007bff;
Expand Down
24 changes: 13 additions & 11 deletions src/user/organization/popups/Admins.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,19 @@ class Admins extends Component {
<Modal.Header closeButton className="modal__header">
<Modal.Title className="modal__title">
<div className="modal__main-title">Administrators</div>
<input
type="text"
placeholder="Search"
className="modal__search"
value={this.state.query}
onChange={this.onChange}
onKeyPress={this.onKeyPress}
/>
<Button className="search_btn" onClick={this.onSearchClick}>
Search
</Button>
<div className="vertical-align-row">
<input
type="text"
placeholder="Search"
className="modal__search"
value={this.state.query}
onChange={this.onChange}
onKeyPress={this.onKeyPress}
/>
<Button className="search_btn" onClick={this.onSearchClick}>
Search
</Button>
</div>
</Modal.Title>
</Modal.Header>
<Modal.Body className="modal__body">
Expand Down
34 changes: 18 additions & 16 deletions src/user/organization/popups/Members.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,23 @@ class Members extends Component {
<Modal.Header closeButton className="modal__header">
<Modal.Title className="modal__title">
<div className="modal__main-title">Members</div>
<input
type="text"
placeholder="Search"
className="modal__search"
name="query"
value={this.state.query}
onChange={this.onChange}
onKeyPress={this.onKeyPress}
/>
<Button
className="search_btn"
onClick={this.onSearchClick}
>
Search
</Button>
<div className="vertical-align-row">
<input
type="text"
placeholder="Search"
className="modal__search"
name="query"
value={this.state.query}
onChange={this.onChange}
onKeyPress={this.onKeyPress}
/>
<Button
className="search_btn"
onClick={this.onSearchClick}
>
Search
</Button>
</div>
</Modal.Title>
</Modal.Header>
<Modal.Body className="modal__body">
Expand All @@ -163,7 +165,7 @@ class Members extends Component {
<Form.Label htmlFor="email" className="email__header">
Get invite link
</Form.Label>
<div className="add__member__input__container">
<div className="add__member__input__container vertical-align-row">
<Form.Control
as="input"
placeholder="Copy invite link to share"
Expand Down