Skip to content

Commit 15dca35

Browse files
authored
Merge pull request #4 from patpat20/master
styling changes
2 parents 284dbf1 + 87a7842 commit 15dca35

25 files changed

+542
-289
lines changed

app/charts/RouteCopy.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ const RouteLocations = props => {
199199

200200
return (
201201
<div className='traceContainer'>
202-
<span id='trace'>Traces</span>
202+
<span id='tracesTitle'>Traces</span>
203203
<Graph className={classes.paper} graph={graph} options={options} events={events} style={{ fontSize: '8px', color: '#555555', fontFamily: 'Open Sans', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)', backgroundColor: 'white' }} />
204204
</div>
205205
);

app/components/About.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
import React from 'react';
22
import '../stylesheets/About.scss';
3+
34
const About: React.FC = () => {
45
return (
56
<div className="home">
67
<div className="blurb">
7-
<h3 className="para">About</h3>
8-
<p className="para">
8+
<h3 className="mainTitle">About</h3>
9+
<p className="text">
910
The Chronos Team has always had passion for Open Source endeavors that would greatly benefit
1011
the developer community. With many existing paid options being difficult to use and expensive to operate, Chronos was
1112
born. Chronos is an all-in-one network and health monitoring tool for your application or
1213
microservice, containerized or not!
1314
</p>
1415
<div className="doya">
15-
<h3 className="para">Team Doya</h3><span id="sproutSpan"><img className="sprout" src="../assets/clean-sprout.gif" alt="sprout"></img></span>
16-
<br/>
16+
<h3 className="title">Team Doya</h3><span><img className="sprout" id="sproutSpan" src="../assets/clean-sprout.gif" alt="sprout"></img></span>
17+
<br />
1718
<div>
18-
<span className="para">Grace </span><br />
19-
<span className="para">Jen </span><br />
20-
<span className="para">Patty </span><br />
21-
<span className="para">Stella </span><br /><br />
19+
<span className="text">Grace </span><br />
20+
<span className="text">Jen </span><br />
21+
<span className="text">Patty </span><br />
22+
<span className="text">Stella </span><br /><br />
2223
</div>
2324
</div>
24-
<h3 className="para">Contributors</h3>
25-
<p className="para">Michael, Ronelle, Todd, Greg
25+
<h3 className="title">Contributors</h3>
26+
<p className="text">Michael, Ronelle, Todd, Greg
2627
Brianna, Brian, Alon, Alan
2728
Ousman, Ben, Chris, Jenae, Tim</p>
2829
</div>
2930
</div>
3031
);
3132
};
32-
export default About;
33+
34+
export default About;

app/components/Applications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const Applications = () => {
8787
[theme.breakpoints.up('lg')]: {
8888
fontSize: '18px',
8989
// MAIN PAGE SQUARE BUTTON FONTS
90-
fontFamily: 'Inter'
90+
fontFamily: 'Open Sans'
9191
},
9292
},
9393
}));

app/components/Contact.tsx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
import React from 'react';
2-
import '../stylesheets/Contact.css';
2+
import '../stylesheets/Contact.scss';
33

44
const Contact: React.FC = () => {
55
return (
66
<div className="contact">
77
<div className="contact-border">
88
<div className="contact-container">
99
<div className="contact-blurb">
10-
<h1>Contact Us!</h1>
10+
<h1>Contact Us</h1>
1111
<br />
12-
<p>The Chronos Team is always looking for any feedback or suggestions for Chronos.</p>
12+
<p>Please feel free to provide any feedback, concerns, or comments.</p>
1313
<p>
1414
You can find issues the team is currently working on&nbsp;
15-
<a href="https://github.com/open-source-labs/Chronos/issues" target="_blank">
15+
<a id="issueLink" href="https://github.com/open-source-labs/Chronos/issues" target="_blank">
1616
here
1717
</a>
1818
.
1919
</p>
20-
<p>
21-
If you would like your voice heard, fill out the form and we will get back to you
22-
ASAP!
23-
</p>
24-
</div>
25-
<div className="chronos-contact-container">
26-
<img src={'../assets/chronos-v4.png'} alt="Chronos logo" />
2720
</div>
2821
</div>
2922
<div className="email-container">
@@ -40,9 +33,11 @@ const Contact: React.FC = () => {
4033
<label htmlFor="subject">Subject: &nbsp;</label>
4134
<input type="text" id="subject" name="subject" placeholder="Subject" />
4235
<br />
43-
<label htmlFor="message">Message: </label>
44-
<br />
45-
<textarea id="message" name="message" placeholder="Write something.."></textarea>
36+
<label id="messageLabel" htmlFor="message">Message: <span>
37+
<textarea id="message" name="message" placeholder="Write something.."></textarea>
38+
</span>
39+
</label>
40+
4641
<br />
4742
<label htmlFor="myfile">Select a file: </label>
4843
<input type="file" id="myfile" name="myfile" accept="image/*"></input>

app/components/Copyright.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ export interface CopyrightProps {}
88
const Copyright = () => {
99
const useStyles = makeStyles(theme => ({
1010
copyright: {
11-
fontFamily: 'Inter',
11+
fontFamily: 'Open Sans',
1212
position: 'fixed',
13+
color: "#ffffff"
1314
}
1415
}))
1516
const classes = useStyles();
1617
return (
17-
<Typography className={classes.copyright} variant="body2" color="textSecondary" align="center">
18+
<Typography className={classes.copyright} variant="body2" align="center">
1819
{'Copyright © '}
1920
<Link color="inherit" href="https://chronoslany.com/" target="_blank">
2021
Team Chronos

app/components/Header.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from 'react';
2-
import { useHistory } from 'react-router-dom';
3-
2+
import { useHistory, Link } from 'react-router-dom';
3+
import ListIcon from '@material-ui/icons/List';
44
import { ApplicationContext } from '../context/ApplicationContext';
55
import '../stylesheets/Header.scss';
66

@@ -18,7 +18,7 @@ const Header: React.SFC<HeaderProps> = ({ app, service, setLive, live }) => {
1818

1919
return (
2020
<div className="microservice-header">
21-
<h1>{app}</h1>
21+
<h1 className="microserviceTitle">{app}</h1>
2222
<select name="microservice" value={service} onChange={e => history.replace(e.target.value)}>
2323
{servicesData.map(({ _id, microservice }: any) => (
2424
<option key={_id} value={`${microservice}`} selected={service === microservice}>
@@ -29,16 +29,22 @@ const Header: React.SFC<HeaderProps> = ({ app, service, setLive, live }) => {
2929
communications
3030
</option>
3131
</select>
32-
<div className="header-btns">
33-
<button onClick={() => history.goBack()}>Return to Applications</button>
34-
<button onClick={() => setLive(!live)}>
32+
<div className="header">
33+
<Link className="link" id="return" to="/applications">
34+
<span>
35+
<ListIcon className="icon" id="returnIcon" />
36+
</span>
37+
<p id="returnToDash">Dashboard</p>
38+
</Link>
39+
{/* <button id="returnButton" onClick={() => history.goBack()}><ListIcon className="icon" id="returnIcon" /></button> */}
40+
<button id="liveButton" onClick={() => setLive(!live)}>
3541
{live ? (
3642
<div>
37-
<span className="dot"></span>Live
43+
<span id="live">Live</span>
3844
</div>
3945
) : (
40-
<div id='gather'>Gather Live Data</div>
41-
)}
46+
<div id="gatherLiveData" >Gather Live Data</div>
47+
)}
4248
</button>
4349
</div>
4450
</div>

app/components/Occupied.tsx

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
import React, { useContext, useEffect, useState, useRef } from 'react';
1+
import React, { useContext, useEffect, useState, useRef, forwardRef } from 'react';
22

33
// MATERIAL UI METHODS
44
import {
55
IconButton,
6-
Modal,
6+
Modal,
77
Card,
88
CardHeader,
99
CardContent,
10-
Button,
11-
Typography } from '@material-ui/core';
10+
Button,
11+
Typography
12+
} from '@material-ui/core';
1213
import { Theme, makeStyles } from '@material-ui/core/styles';
1314
import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
1415

1516
// MATERIAL UI ICONS
1617
import MoreVertIcon from '@material-ui/icons/MoreVert';
1718
import AddCircleOutlineTwoToneIcon from '@material-ui/icons/AddCircleOutlineTwoTone';
1819
import DeleteForeverOutlinedIcon from '@material-ui/icons/DeleteForeverOutlined';
19-
import ListIcon from '@material-ui/icons/List';
2020
import HighlightOffIcon from '@material-ui/icons/HighlightOff';
21+
import ListIcon from '@material-ui/icons/List';
2122
import SearchIcon from '@material-ui/icons/Search';
2223
import DashboardIcon from '@material-ui/icons/Dashboard';
2324
import NotificationsIcon from '@material-ui/icons/Notifications';
@@ -39,14 +40,13 @@ interface StyleProps {
3940
};
4041
type ClickEvent = React.MouseEvent<HTMLElement>;
4142

42-
const Occupied: React.FC = () => {
43+
const Occupied: React.FC = React.memo(function Occupied(props) {
4344
const { applications, getApplications, deleteApp } = useContext(DashboardContext);
4445
const [open, setOpen] = useState<boolean>(false);
4546
const [addOpen, setAddOpen] = useState<boolean>(false);
46-
4747
const [index, setIndex] = useState<number>(0);
4848
const [app, setApp] = useState<string>('');
49-
49+
const [searchTerm, setSearchTerm] = useState<string>('Search...');
5050
// Dynamic refs
5151
const delRef = useRef<any>([]);
5252

@@ -68,8 +68,8 @@ const Occupied: React.FC = () => {
6868
setOpen(true);
6969
}
7070
};
71+
7172
const useStyles = makeStyles<Theme, StyleProps>(theme => ({
72-
// card: "+" button only
7373
paper: {
7474
height: 280,
7575
width: 280,
@@ -81,7 +81,7 @@ const Occupied: React.FC = () => {
8181
border: '0',
8282
boxShadow: '0 6px 6px 0 rgba(153, 153, 153, 0.14), 0 6px 6px -2px rgba(153, 153, 153, 0.2), 0 6px 8px 0 rgba(153, 153, 153, 0.12)',
8383
'&:hover, &.Mui-focusVisible': {
84-
backgroundColor: `#ccd8e1`,
84+
backgroundColor: `#b5d3e9`,
8585
color: '#ffffff',
8686
},
8787
},
@@ -97,7 +97,7 @@ const Occupied: React.FC = () => {
9797
color: '#eeeeee',
9898
borderRadius: '0',
9999
backgroundColor: 'transparent',
100-
'&:hover' : {
100+
'&:hover': {
101101
backgroundColor: 'none'
102102
}
103103
},
@@ -111,10 +111,7 @@ const Occupied: React.FC = () => {
111111
const classes = useStyles({} as StyleProps);
112112

113113
return (
114-
115114
<div className="entireArea">
116-
<div className="sidebarArea">
117-
</div>
118115
<div className="dashboardArea">
119116
<header className="mainHeader">
120117
<section className="header" id="leftHeader">
@@ -124,16 +121,16 @@ const Occupied: React.FC = () => {
124121
<section className="header" id="rightHeader">
125122
<form className="form">
126123
<label className="inputContainer">
127-
<input className="form" id="textInput" value={`Search`} type="text" name="search" />
124+
<input className="form" id="textInput" placeholder={searchTerm} onChange={e => setSearchTerm(e.target.value)} type="text" name="search" />
128125
<hr />
129126
</label>
130127
<button className="form" id="submitBtn" type="submit">
131-
<SearchIcon className="icon" id="searchIcon"/>
128+
<SearchIcon className="icon" id="searchIcon" />
132129
</button>
133130
</form>
134-
<DashboardIcon className="sideIcon" id="dashboardIcon"/>
135-
<NotificationsIcon className="sideIcon" id="notificationsIcon"/>
136-
<PersonIcon className="sideIcon" id="personIcon"/>
131+
<DashboardIcon className="sideIcon" id="dashboardIcon" />
132+
<NotificationsIcon className="sideIcon" id="notificationsIcon" />
133+
<PersonIcon className="sideIcon" id="personIcon" />
137134
</section>
138135
</header>
139136

@@ -144,7 +141,7 @@ const Occupied: React.FC = () => {
144141
</Button>
145142
</div>
146143
{applications.map((app: string[], i: number | any | string | undefined) => (
147-
<div className="card" id={`card-${i}`}>
144+
<div className="card" key={`card-${i}`} id={`card-${i}`}>
148145
<Card
149146
key={`card-${i}`}
150147
className={classes.paper}
@@ -159,7 +156,7 @@ const Occupied: React.FC = () => {
159156
aria-label="Delete"
160157
onClick={event => confirmDelete(event, app[0], i)}
161158
>
162-
<HighlightOffIcon className={classes.btnStyle} id='deleteIcon' />
159+
<HighlightOffIcon className={classes.btnStyle} id="deleteIcon" />
163160
</IconButton>
164161
}
165162
></CardHeader>
@@ -173,12 +170,12 @@ const Occupied: React.FC = () => {
173170
<AddModal setOpen={setAddOpen} />
174171
</Modal>
175172
<Modal open={open} onClose={() => setOpen(false)}>
176-
<ServicesModal i={index} app={app} />
173+
<ServicesModal key={`key-${index}`} i={index} app={app} />
177174
</Modal>
178175
</div>
179176
</div>
180177
</div>
181178
);
182-
};
179+
});
183180

184181
export default Occupied;

app/components/Settings.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import React from 'react';
77
const Settings: React.FC = () => {
88
return (
99
<div className="home">
10-
<h1>Currently under construction, coming soon!</h1>
11-
<p>Contact the Chronos Team for anything you'd like to see!</p>
10+
<p id="settings"></p>
1211
</div>
1312
);
1413
};

app/containers/GraphsContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface GraphsContainerProps {
3232
}
3333

3434
const GraphsContainer: React.SFC<GraphsContainerProps> = () => {
35-
const { app, service } = useParams();
35+
const { app, service } = useParams<any>();
3636
const [live, setLive] = useState<boolean>(false);
3737
const [intervalID, setIntervalID] = useState<NodeJS.Timeout | null>(null);
3838

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
77
<title>CHRONOS</title>
88
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/>
9-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@100&family=Lexend+Peta&display=swap" />
9+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Inter:wght@100&family=Lexend+Peta&display=swap" />
1010
<script src="https://cdn.plot.ly/plotly-latest.min.js" charset="utf-8"></script>
1111
<base href='/'/>
1212
</head>

0 commit comments

Comments
 (0)