Skip to content

Commit df59ec6

Browse files
committed
polished for merge to main
1 parent 00c94e1 commit df59ec6

File tree

16 files changed

+78
-40
lines changed

16 files changed

+78
-40
lines changed

src/components/TextWithImage/TextWithImage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export type MyProps = {
77
text: string;
88
link?: string;
99
linkText?: string;
10+
wideImage?: boolean;
11+
largeImage?: boolean;
1012
};
1113

1214
interface Props {
@@ -48,7 +50,7 @@ export class TextWithImage extends React.Component<Props> {
4850
</div>
4951
</div>
5052
<img
51-
className="Img-TextWithImage"
53+
className={`Img-TextWithImage ${entry.largeImage ? 'Img-TextWithImage--large' : ''} ${entry.wideImage ? 'Img-TextWithImage--wide' : ''}`}
5254
src={this.props.imgData[key]}
5355
alt="waterloop"
5456
></img>

src/components/TextWithProfileImage/TextWithProfileImage.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ export class TextWithProfileImage extends React.Component<Props> {
3939
}
4040

4141
return (
42-
<div key={key} className={`Block-TextWithImage ${posClass}`}>
43-
<div className="TextBlock-TextWithImage">
42+
<div key={key} className={`Block-TextWithProfileImage ${posClass}`}>
43+
<div className="TextBlock-TextWithProfileImage">
4444
{entry.title !== undefined ? <h3>{entry.title}</h3> : <b></b>}
4545
<p>{entry.text}</p>
46-
<div className="ButtonBlock-TextWithImage">
46+
<div className="ButtonBlock-TextWithProfileImage">
4747
{this.renderButton(entry.link, entry.linkText)}
4848
</div>
4949
</div>
5050
<img
51-
className="Img-TextWithImage"
51+
className="Img-TextWithProfileImage"
5252
src={this.props.imgData[key]}
5353
alt="waterloop"
5454
></img>
55-
<div className="text-w-image-btn-mobile">
55+
<div className="text-w-profile-image-btn-mobile">
5656
{this.renderButton(entry.link, entry.linkText)}
5757
</div>
5858
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { TextWithProfileImage} from './TextWithProfileImage'; // This will take all the named exports
1+
export * from './TextWithProfileImage'; // This will take all the named exports

src/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export * from './SimpleFeatures';
1313
export * from './Hero';
1414
export * from './TeamsDisplayer';
1515
export * from './TextWithImage';
16+
export * from './TextWithProfileImage';
17+
export * from './TextWithProfileImage';
1618
export * from './ColumnBlock';
1719
export * from './Postings';
1820
export * from './NewsletterSignUpForm';

src/pages/Team.tsx

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,34 @@ import styled from "styled-components";
44
import OurTeam from "components/OurTeam";
55
import { TextWithImage } from "components";
66
import { MyProps } from "components/TextWithImage";
7-
import { TextWithProfileImage } from "components";
87
//import TeamsDisplayer from "components/TeamsDisplayer";
9-
import WebText from "static/copy/Team/web.json";
10-
import AdminText from "static/copy/Team/admin.json";
8+
//import WebText from "static/copy/Team/web.json";
9+
//import AdminText from "static/copy/Team/admin.json";
1110
import ElecText from "static/copy/Team/electrical.json";
1211
import ExecText from "static/copy/Team/exec.json";
13-
import InfraText from "static/copy/Team/infrastructure.json";
12+
//import InfraText from "static/copy/Team/infrastructure.json";
1413
import MechText from "static/copy/Team/mech.json";
1514
import SoftwareText from "static/copy/Team/software.json";
1615
import LeadText from "static/copy/Team/teamleads.json";
17-
import propulsionLeads from "static/img/team/propulsion_leads.png";
18-
const webText: MyProps [] = WebText
19-
const adminText: MyProps [] = AdminText
16+
//import propulsionLeads from "static/img/team/propulsion_leads.png";
17+
import mechLeads from "static/img/team/mech_leads.png";
18+
import firmwareLeads from "static/img/team/firmware_leads.png";
19+
import elecLeads from "static/img/team/elec_leads.png";
20+
import PMS from "static/img/team/PMS.png";
21+
22+
//const webText: MyProps [] = WebText
23+
//const adminText: MyProps [] = AdminText
2024
const elecText: MyProps [] = ElecText
2125
const execText: MyProps [] = ExecText
22-
const infraText: MyProps [] = InfraText
26+
//const infraText: MyProps [] = InfraText
2327
const mechText: MyProps [] = MechText
2428
const softwareText: MyProps [] = SoftwareText
2529
const leadText: MyProps [] = LeadText
26-
const webImg : string[] = [propulsionLeads]
30+
//const propulsionImg : string[] = [propulsionLeads]
31+
const mechImg : string[] = [mechLeads]
32+
const firmwareImg : string[] = [firmwareLeads]
33+
const elecImg : string[] = [elecLeads]
34+
const PmsImg : string[] = [PMS]
2735

2836
const ContentContainer = styled.div`
2937
display: block;
@@ -45,45 +53,52 @@ const Teams: React.FC = () => (
4553
{//<TeamsDisplayer initFilterSetting={0} /> TODO: uncomment me when teamhub roster has been updated properly. */
4654
}
4755
</ContentContainer>
48-
<TextWithProfileImage
56+
{
57+
/*
58+
<TextWithImage
4959
data={webText}
5060
textPos={"left"}
51-
imgData={webImg}
52-
></TextWithProfileImage>
61+
imgData={propulsionImg}
62+
></TextWithImage>
5363
<TextWithImage
5464
data={adminText}
5565
textPos={"right"}
56-
imgData={webImg}
66+
imgData={propulsionImg}
5767
></TextWithImage>
68+
*/
69+
}
5870
<TextWithImage
5971
data={elecText}
6072
textPos={"left"}
61-
imgData={webImg}
73+
imgData={elecImg}
6274
></TextWithImage>
6375
<TextWithImage
6476
data={execText}
6577
textPos={"right"}
66-
imgData={webImg}
78+
imgData={PmsImg}
6779
></TextWithImage>
80+
{/*
6881
<TextWithImage
6982
data={infraText}
7083
textPos={"left"}
71-
imgData={webImg}
84+
imgData={propulsionImg}
7285
></TextWithImage>
86+
*/
87+
}
7388
<TextWithImage
7489
data={mechText}
75-
textPos={"right"}
76-
imgData={webImg}
90+
textPos={"left"}
91+
imgData={mechImg}
7792
></TextWithImage>
7893
<TextWithImage
7994
data={softwareText}
80-
textPos={"left"}
81-
imgData={webImg}
95+
textPos={"right"}
96+
imgData={firmwareImg}
8297
></TextWithImage>
8398
<TextWithImage
8499
data={leadText}
85-
textPos={"right"}
86-
imgData={webImg}
100+
textPos={"left"}
101+
imgData={PmsImg}
87102
></TextWithImage>
88103
</div>
89104
</div>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"title": "Electrical; Team Leads, Mathew and Christina",
4-
"text": "The electrical team works on powering and controlling the Hyperloop pod while providing sensor feedback. The team has a strong focus on both HV and LV development in battery management, motor control and embedded sensing."
4+
"text": "The electrical team works on powering and controlling the Hyperloop pod while providing sensor feedback. The team has a strong focus on both HV and LV development in battery management, motor control and embedded sensing.",
5+
"wideImage": true
56
}
67
]

src/static/copy/Team/exec.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
3-
"title": "Executive, Team Lead: x",
4-
"text": "Execs are responsible for high-level planning for the team as a whole, ensuring work is completed in time to meet short- and long-term schedule milestones, and providing technical and leadership mentorship for subteam leads."
3+
"title": "Executives: Mathew, Yifei, Mark, and Surya",
4+
"text": "Execs are responsible for high-level planning for the team as a whole, ensuring work is completed in time to meet short- and long-term schedule milestones, and providing technical and leadership mentorship for subteam leads.",
5+
"largeImage": true
56
}
67
]

src/static/copy/Team/mech.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
3-
"title": "Mechanical, Team Lead:",
4-
"text": "The mechanical team is in charge of the design, fabrication, and testing of all physical mechanisms for structures, guidance, and propulsion subsystems on the Hyperloop pod. The team uses skills in CAD, drafting, as well as analysis through simulations. Through manufacturing the pod components, machine shop skills like milling, turning and use of power-tools are learned. Recent projects include frame analysis, motor design, and mathematical modelling of pod motion."
3+
"title": "Mechanical, Team Leads: Mark and Surya",
4+
"text": "The mechanical team is in charge of the design, fabrication, and testing of all physical mechanisms for structures, guidance, and propulsion subsystems on the Hyperloop pod. The team uses skills in CAD, drafting, as well as analysis through simulations. Through manufacturing the pod components, machine shop skills like milling, turning and use of power-tools are learned. Recent projects include frame analysis, motor design, and mathematical modelling of pod motion.",
5+
"wideImage": true
56
}
67
]

src/static/copy/Team/software.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
3-
"title": "Software, Team Lead:",
4-
"text": "The software team is responsible for controlling all the embedded components related to the Hyperloop pod. Our work consists of projects on the desktop application to coding the motor controller for our Linear Induction Motor."
3+
"title": "Software, Team Leads: Jessica, Tharun, and Sardor",
4+
"text": "The software team is responsible for controlling all the embedded components related to the Hyperloop pod. Our work consists of projects on the desktop application to coding the motor controller for our Linear Induction Motor.",
5+
"largeImage": true
56
}
67
]
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
3-
"title": "Leads, Team Lead: x",
4-
"text": "Leads are experienced members of the team responsible for mentoring younger members, reviewing designs, doing high-level planning and scoping tasks for each term, and ensuring work is completed in time to meet schedule milestones. This group consists of all the subteam leads as well as a few executive members who manage the overall team."
3+
"title": "Leads, Team Lead: Mathew, Yifei, Mark, and Surya",
4+
"text": "Leads are experienced members of the team responsible for mentoring younger members, reviewing designs, doing high-level planning and scoping tasks for each term, and ensuring work is completed in time to meet schedule milestones. This group consists of all the subteam leads as well as a few executive members who manage the overall team.",
5+
"largeImage": true
56
}
67
]

0 commit comments

Comments
 (0)