Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 46ecdc8

Browse files
authored
Merge branch 'master' into master
2 parents f0c17fb + a007257 commit 46ecdc8

File tree

11 files changed

+99
-56
lines changed

11 files changed

+99
-56
lines changed

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@
9393
"storybook": "start-storybook -p 6006",
9494
"build-storybook": "build-storybook",
9595
"backend": "./bin/run_backend.sh",
96-
"validate": "npm ls"
96+
"validate": "npm ls",
97+
"image-size": "node scripts/imageSize.js"
9798
},
9899
"jest": {
99100
"moduleDirectories": ["node_modules", "src"],
@@ -119,5 +120,5 @@
119120
"presets": ["react-app"]
120121
},
121122
"homepage": "http://frontend.operationcode.org/",
122-
"pre-commit": ["fix", "format", "lint"]
123+
"pre-commit": ["fix", "format", "lint", "image-size"]
123124
}

Diff for: scripts/imageSize.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* eslint-disable */
2+
const path = require('path');
3+
const fs = require('fs');
4+
5+
const readImageDirectory = dir =>
6+
fs
7+
.readdirSync(dir)
8+
.reduce(
9+
(files, file) =>
10+
fs.statSync(path.join(dir, file)).isDirectory()
11+
? files.concat(readImageDirectory(path.join(dir, file)))
12+
: files.concat(path.join(dir, file)),
13+
[]
14+
)
15+
.filter(file => typeof file === 'string')
16+
.filter(image => {
17+
fs.lstatSync(image).size > 1000000;
18+
});
19+
20+
const fileArray = readImageDirectory('src/images/');
21+
22+
if (fileArray.length) {
23+
console.log(`The following image(s) are over our 1MB size limit: ${fileArray}`);
24+
process.exit(-1);
25+
} else {
26+
console.log('Test successful 💪 💪 💪 💪 💪 💪');
27+
process.exit(0);
28+
}

Diff for: src/scenes/home/about/about.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const About = () => (
2323
Aside from our work on the Hill, we offer many services to the military community and are continuing to expand our offerings as often as possible. First and foremost, <Link to="/team">our staff</Link> works tirelessly to provide mentorship for veterans interested in learning about various tech careers. Dozens of software engineers, product managers, system architects, security engineers, and various other IT professionals act as 1-on-1 mentors to all of our members. We also have a hardware loan program to help veterans in need of a laptop!
2424
</p>
2525
<p>
26-
As a non-profit organization, we rely heavily on your support. If you are interested in helping us financially, please <a href="https://opencollective.com/operationcode#support" target="_blank" rel="noopener noreferrer">donate here</a> or <a href="https://smile.amazon.com/ch/47-4247572" target="_blank" rel="noopener noreferrer">set your Amazon Smile organization to &quot;Operation Code&quot;</a>. We also have our first Gala planned for Fall 2017 in Portland Oregon! Register to attend <Link to="/gala">here</Link>. If you have questions about our organization, platforms, or services, please reference our <Link to="/faq">FAQ page</Link>. Otherwise, do not hesitate to <Link to="/contact">reach out to our staff</Link>.
26+
As a non-profit organization, we rely heavily on your support. If you are interested in helping us financially, please <a href="https://opencollective.com/operationcode#support" target="_blank" rel="noopener noreferrer">donate here</a> or <a href="https://smile.amazon.com/ch/47-4247572" target="_blank" rel="noopener noreferrer">set your Amazon Smile organization to &quot;Operation Code&quot;</a>. If you have questions about our organization, platforms, or services, please reference our <Link to="/faq">FAQ page</Link>. Otherwise, do not hesitate to <Link to="/contact">reach out to our staff</Link>.
2727
</p>
2828
</Section>
2929

Diff for: src/scenes/home/branding/logos/logos.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
text-align: justify;
2020
}
2121

22-
a {
22+
.logosInfo a {
2323
color: #249cbc;
2424
font-size: 1.3rem;
2525
text-decoration: none;

Diff for: src/scenes/home/branding/logos/logos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const LogosSection = () => (
3636
In most cases, use the blue-accent version of the logo. The red-accent is
3737
delivered for special uses only.
3838
</p>
39-
<p>
39+
<p className={styles.logosInfo}>
4040
<a href="https://ocbranding.squarespace.com/s/Operation-Code-Logo.eps">
4141
Download master EPS file
4242
</a>

Diff for: src/scenes/home/footer/footer.css

+57-46
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.footer {
2-
background-color: #4A4A4A;
3-
height: 250px;
2+
background-color: #4a4a4a;
3+
height: 300px;
44
padding: 0 20px;
55
position: relative;
6+
font-size: 1.1rem;
67
}
78

89
.content {
@@ -12,15 +13,21 @@
1213
height: 100%;
1314
}
1415

15-
/* outerFooterGroups class represents the NON logo columns of the footer flex container */
16-
.outerFooterGroups {
16+
/* outerFooterGroup classes represent the NON logo columns of the footer flex container */
17+
.outerFooterGroupLinks {
18+
display: flex;
19+
flex: 1 0 30%;
20+
flex-flow: row wrap;
21+
justify-content: flex-start;
22+
align-items: center;
23+
}
24+
.outerFooterGroupSocial {
1725
display: flex;
1826
flex: 1 0 30%;
1927
flex-flow: column wrap;
2028
padding: 64px 0;
2129
justify-content: space-around;
2230
align-items: center;
23-
overflow: hidden;
2431
}
2532

2633
.email {
@@ -29,7 +36,7 @@
2936
}
3037

3138
.email a {
32-
color: #F7F7F7;
39+
color: #f7f7f7;
3340
text-align: center;
3441
text-decoration: none;
3542
}
@@ -49,15 +56,17 @@
4956
.blockGroup {
5057
display: flex;
5158
flex: 1 0 50%;
52-
flex-flow: row wrap;
53-
align-items: center;
59+
flex-flow: column wrap;
60+
align-items: flex-start;
5461
justify-content: space-around;
62+
padding-top: 5px;
63+
padding-bottom: 5px;
5564
}
5665

5766
.blockGroup a {
5867
text-decoration: none;
59-
color: #F7F7F7;
60-
padding: 0 30px;
68+
color: #f7f7f7;
69+
margin: 0.75rem 0px;
6170
}
6271

6372
.blockGroup a:hover {
@@ -66,7 +75,7 @@
6675
}
6776

6877
.copyright {
69-
color:#F7F7F7;
78+
color: #f7f7f7;
7079
font-size: inherit;
7180
font-family: 'PF Din Display';
7281
text-align: center;
@@ -78,7 +87,8 @@
7887
}
7988

8089
@media screen and (max-width: 1330px) {
81-
.outerFooterGroups {
90+
.outerFooterGroupSocial,
91+
.outerFooterGroupLinks {
8292
flex: 1 0 35%;
8393
}
8494

@@ -93,7 +103,7 @@
93103
}
94104
}
95105

96-
@media screen and (min-width: 481px) and (max-width: 979px) {
106+
@media screen and (min-width: 481px) and (max-width: 1100px) {
97107
.logo > img {
98108
height: 100px;
99109
}
@@ -104,66 +114,67 @@
104114
}
105115

106116
@media screen and (max-width: 768px) {
107-
.logo > p {
108-
font-size: 0.5rem;
109-
}
110-
}
111-
112-
@media screen and (min-width: 481px) and (max-width: 768px) {
113-
.outerFooterGroups {
114-
padding: 32px 0;
115-
}
116-
117-
.blockGroup {
118-
flex-direction: column;
119-
height: 100%;
120-
}
121-
}
122-
123-
@media screen and (max-width: 616px) {
124-
.email {
125-
font-size: 0.8rem;
126-
}
127-
128-
.blockRow a {
129-
padding: 10px 10px;
130-
}
131-
}
132-
133-
@media screen and (max-width: 480px) {
134117
.footer {
135-
height: 500px;
136-
padding: 0 16px;
118+
height: 700px;
119+
padding: 2rem 1rem 1rem 1rem;
137120
}
138121

139122
.content {
140123
display: block;
141124
}
142125

143-
.outerFooterGroups {
126+
.outerFooterGroupSocial,
127+
.outerFooterGroupLinks {
144128
justify-content: center;
145129
flex: 1 0 auto;
146-
padding: 20px 0;
130+
padding: 5px 0px;
147131
}
148132

149133
.email {
150134
font-size: 1.3rem;
151135
margin-bottom: 10px;
152136
}
153137

138+
.logo {
139+
margin: 1rem 0;
140+
}
141+
142+
.copyright {
143+
margin: 0;
144+
}
145+
154146
.logo img {
155147
height: 100px;
148+
line-height: 1.5;
149+
margin: 0 0 1rem 0;
156150
}
157151

158152
.blockGroup {
159153
font-size: 1rem;
160154
}
161155

162156
.blockGroup a {
157+
padding: 0px 0px 0px 6rem;
158+
font-size: 1.3rem;
159+
}
160+
}
161+
162+
@media screen and (max-width: 616px) {
163+
.blockRow a {
163164
padding: 10px 10px;
164165
}
165166

166-
.blockGroup ~ .blockGroup {
167-
margin-top: 10px;
167+
.footer {
168+
height: 650px;
169+
}
170+
}
171+
172+
@media screen and (max-width: 480px) {
173+
.blockGroup a {
174+
padding-left: 3rem;
175+
}
176+
177+
.footer {
178+
padding-bottom: 50px;
168179
}
169180
}

Diff for: src/scenes/home/footer/footer.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import styles from './footer.css';
88
const Footer = () => (
99
<div className={styles.footer}>
1010
<div className={styles.content}>
11-
<div className={styles.outerFooterGroups}>
11+
<div className={styles.outerFooterGroupSocial}>
1212
<div className={styles.email} >
1313
1414
</div>
@@ -22,7 +22,7 @@ const Footer = () => (
2222
Operation Code™
2323
</p>
2424
</div>
25-
<div className={styles.outerFooterGroups}>
25+
<div className={styles.outerFooterGroupLinks}>
2626
<div className={styles.blockGroup} >
2727
<Link to="/about">About</Link>
2828
<Link to="/press">Press</Link>
@@ -35,6 +35,7 @@ const Footer = () => (
3535
<a href="https://smile.amazon.com/ch/47-4247572" target="_blank" rel="noopener noreferrer">Amazon Smile</a>
3636
<Link to="/contact">Contact</Link>
3737
<a href="https://www.iubenda.com/privacy-policy/8174861" target="_blank" rel="noopener noreferrer">Privacy</a>
38+
<Link to="/terms">Terms of Service</Link>
3839
</div>
3940
<ScrollUpButton />
4041
</div>

Diff for: src/scenes/home/landing/emailSignup/emailSignup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class EmailSignup extends Component {
6363
headingLines={false}
6464
>
6565
<p className={styles.emailSignupText}>
66-
Keep up to date with everything Operation Code. We proimse we won&#39;t spam you or sell
66+
Keep up to date with everything Operation Code. We promise we won&#39;t spam you or sell
6767
your information.
6868
</p>
6969
<Form className={styles.emailListForm}>

Diff for: src/scenes/home/mentorRequest/mentorRequest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MentorRequest extends Component {
1313
state = {
1414
mentors: [],
1515
services: [],
16-
loggedIn: true
16+
loggedIn: false
1717
};
1818

1919
componentDidMount() {

Diff for: src/shared/components/boardCard/boardCard.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
.boardCard:active .descriptionText {
2525
opacity: 1;
2626
visibility: visible;
27-
transition: opacity 0.3s linear;
27+
transition: opacity 0.3s ease-in-out;
28+
transition-delay: 0.2s;
2829
}
2930

3031
.boardCard:hover > img,

Diff for: src/shared/components/schoolCard/schoolCard.css

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
.schoolCardLink {
1515
text-decoration: none;
16+
color: black;
1617
}
1718

1819
.schoolCard p {

0 commit comments

Comments
 (0)