Skip to content

Commit cf74fae

Browse files
authored
Bump staging into prod. (#86)
* Add sponsorship banner and footer placement * Update sponsor to Mechanize. * Increase sponsorship footer contrast.
1 parent 1283d07 commit cf74fae

13 files changed

Lines changed: 969 additions & 201 deletions

File tree

package-lock.json

Lines changed: 764 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"private": true,
55
"dependencies": {
66
"ajv": "^8.18.0",
7-
"axios": "^1.15.0",
7+
"axios": "^1.13.5",
88
"classnames": "^2.2.5",
99
"dom-to-image": "^2.6.0",
1010
"dotenv": "^16.4.7",
1111
"echarts": "^6.0.0",
1212
"echarts-for-react": "^3.0.6",
1313
"file-saver": "^1.3.3",
14-
"lodash": "^4.18.1",
14+
"lodash": "^4.17.5",
1515
"normalize.css": "^8.0.1",
1616
"npm-run-all": "^4.1.2",
1717
"prop-types": "^15.6.0",
@@ -55,8 +55,8 @@
5555
},
5656
"devDependencies": {
5757
"@vitejs/plugin-react": "^5.1.3",
58-
"surge": "^0.27.3",
59-
"vite": "^7.3.2",
58+
"surge": "^0.24.6",
59+
"vite": "^7.3.1",
6060
"vite-plugin-html": "^3.2.2",
6161
"vite-plugin-sass-dts": "^1.3.35"
6262
},

src/App.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { BrowserRouter, useLocation } from "react-router-dom";
33
import { connect } from "react-redux";
44
import SiteHeader from "./containers/SiteHeader";
55
import SiteFooter from "./containers/SiteFooter";
6+
import SponsorBanner from "./containers/SponsorBanner";
7+
import SPONSOR from "./config/sponsorship";
68
import Routes from "./Routes";
79

810
const updateGa = (location) => {
@@ -38,7 +40,8 @@ class App extends Component {
3840
// Set initial theme attribute
3941
document.documentElement.setAttribute("data-theme", this.props.theme);
4042
setTimeout(() => {
41-
document.documentElement.classList.remove('preload');}, 0);
43+
document.documentElement.classList.remove("preload");
44+
}, 0);
4245
}
4346

4447
componentDidUpdate(prevProps) {
@@ -54,6 +57,7 @@ class App extends Component {
5457
<AnalyticsTracker />
5558
<div className="App">
5659
<SiteHeader />
60+
{SPONSOR && <SponsorBanner sponsor={SPONSOR} />}
5761
<div className="app-content">
5862
<Routes />
5963
</div>
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

src/config/sponsorship.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import logoBlack from "../assets/sponsors/mechanize-black.svg";
2+
import logoWhite from "../assets/sponsors/mechanize-white.svg";
3+
4+
/**
5+
* Active sponsor configuration. Set to null to disable all sponsor UI.
6+
*
7+
* Fields:
8+
* name - Display name shown in the footer
9+
* url - Link destination for all sponsor placements
10+
* logoBlack - Logo variant for light backgrounds
11+
* logoWhite - Logo variant for dark backgrounds
12+
* storageKey - localStorage key for banner dismiss state
13+
* callToAction - CTA link text in the banner
14+
* taglines - Array of rotating banner taglines (pick one at random)
15+
*/
16+
17+
// eslint-disable-next-line no-unused-vars
18+
const MECHANIZE = {
19+
name: "Mechanize, Inc.",
20+
url: "https://jobs.ashbyhq.com/mechanize?utm_source=UWMadison",
21+
logoBlack,
22+
logoWhite,
23+
storageKey: "madgrades-sponsor-dismissed-mechanize",
24+
callToAction: "Apply now!",
25+
taglines: [
26+
"Mechanize is hiring junior SWEs. $300K base + equity.",
27+
"Better at coding than AI? Prove it.",
28+
"Mechanize hires engineers to outsmart AI. It's harder than you think. $300K + equity.",
29+
"Most engineers can't beat Claude on our take-home. Think you can? $300K + equity for Jr SWEs at Mechanize.",
30+
],
31+
};
32+
33+
const SPONSOR = MECHANIZE;
34+
35+
export default SPONSOR;

0 commit comments

Comments
 (0)