Skip to content

Commit 08f900e

Browse files
committed
Merge branch 'dev' into sofia
2 parents bcf52ac + 8ebe547 commit 08f900e

76 files changed

Lines changed: 2028 additions & 1514 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import Splash from './components/Splash';
2+
import Splash from './components/Splash/Splash';
33
import DashboardContainer from './containers/DashboardContainer';
44
import './stylesheets/scrollBar.scss';
55

app/assets/search.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/components/About.tsx

Lines changed: 0 additions & 61 deletions
This file was deleted.

app/components/About/About.tsx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from 'react';
2+
import './styles.scss';
3+
import TeamMembers from './TeamMembers';
4+
import PastContributors from './PastContributors';
5+
import { useStylingContext } from './StylingContext';
6+
7+
8+
const About: React.FC = React.memo(() => {
9+
const currentMode = useStylingContext();
10+
11+
return (
12+
<div className="about">
13+
<div className="blurb" data-testid="aboutPage">
14+
<h3 style={currentMode} className="mainTitle">About</h3>
15+
<p style={currentMode} className="text">
16+
The Chronos Team has a passion for building tools that are powerful, beautifully
17+
designed, and easy to use. Chronos was conceived as an Open Source endeavor that directly benefits the developer
18+
community. It can also monitor applications deployed using AWS, EC2, and ECS from Amazon.
19+
</p>
20+
<br></br>
21+
<TeamMembers />
22+
<PastContributors />
23+
</div>
24+
</div>
25+
);
26+
});
27+
28+
export default About;
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from 'react';
2+
import { useStylingContext } from './StylingContext';
3+
4+
const contributors = [
5+
'Snow', 'Taylor', 'Tim', 'Roberto', 'Nachiket', 'Tiffany', 'Bruno', 'Danny', 'Vince',
6+
'Matt', 'Derek', 'Kit', 'Grace', 'Jen', 'Patty', 'Stella', 'Michael', 'Ronelle', 'Todd',
7+
'Greg', 'Brianna', 'Brian', 'Alon', 'Alan', 'Ousman', 'Ben', 'Chris', 'Jenae', 'Tim',
8+
'Kirk', 'Jess', 'William', 'Alexander', 'Elisa', 'Josh', 'Troy', 'Gahl', 'Brisa', 'Kelsi',
9+
'Lucie', 'Jeffrey', 'Justin'
10+
];
11+
12+
const PastContributors: React.FC = () => {
13+
const currentMode = useStylingContext();
14+
15+
return (
16+
<div>
17+
<h3 style={currentMode} className="title">
18+
Past Contributors
19+
</h3>
20+
<p style={currentMode} className="text">
21+
{contributors.join(', ')}
22+
</p>
23+
<br />
24+
</div>
25+
);
26+
};
27+
28+
export default PastContributors;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { useContext } from 'react';
2+
import { DashboardContext } from '../../context/DashboardContext';
3+
import lightAndDark from '../Styling';
4+
5+
export const useStylingContext = () => {
6+
const { mode } = useContext(DashboardContext);
7+
const currentMode = mode === 'light' ? lightAndDark.lightModeText : lightAndDark.darkModeText;
8+
return currentMode;
9+
};
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from 'react';
2+
import { useStylingContext } from './StylingContext';
3+
4+
const names = ['Haoyu', 'Eisha', 'Edwin', 'Tyler'];
5+
6+
const TeamMembers: React.FC = () => {
7+
const currentMode = useStylingContext();
8+
9+
const nameList = names.map(name => (
10+
<span key={name} style={currentMode} className="text">
11+
<p>{name}</p>
12+
</span>
13+
));
14+
15+
return (
16+
<div>
17+
<h3 style={currentMode} className="title">
18+
Current Version Authors
19+
</h3>
20+
<div id='OSPNames'>
21+
{nameList}
22+
<br />
23+
</div>
24+
</div>
25+
);
26+
};
27+
28+
export default TeamMembers;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import './constants.scss';
1+
@import '../../stylesheets/constants.scss';
22

33
.about {
44
min-width: 421px;
@@ -72,4 +72,4 @@
7272

7373
p {
7474
padding-left: 10px;
75-
}
75+
}

app/components/ApplicationsCard/ApplicationsCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const ApplicationsCard = (props) => {
4545
setAppIndex(i);
4646
setApp(selectedApp);
4747
setServicesData([]);
48+
//When we open the service modal a connection is made to the db in a useEffect inside of the service modal component
4849
setModal({isOpen:true,type:'serviceModal'})
4950
}
5051
}

app/components/ApplicationsCard/styles.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,45 @@
204204
height: 55px;
205205
}
206206
}
207+
208+
.cardLine {
209+
background-color: $grey;
210+
width: 85%;
211+
border: none;
212+
height: 1px;
213+
margin-top: 20px;
214+
margin-bottom: 15px;
215+
}
216+
217+
.cardFooter {
218+
width: 90%;
219+
display: flex;
220+
height: 20px;
221+
align-items: center;
222+
margin-left: 18px;
223+
}
224+
225+
#cardFooterText {
226+
color: $icon;
227+
font-size: 11px;
228+
margin: 0;
229+
margin-left: 10px;
230+
}
231+
232+
.cardFooterIcon {
233+
color: $icon;
234+
font-size: 14px;
235+
margin: 0;
236+
}
237+
238+
#databaseName {
239+
margin-top: 14px;
240+
margin-bottom: 0;
241+
font-size: 40px;
242+
width: 280px;
243+
}
244+
245+
#serviceName {
246+
font-size: 11px;
247+
margin-top: 6px;
248+
}

0 commit comments

Comments
 (0)