Skip to content

Commit 537abff

Browse files
committed
u4
1 parent 6fd427c commit 537abff

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import App from './App';
55
import reportWebVitals from './reportWebVitals';
66
import { BrowserRouter } from 'react-router-dom';
77

8-
// Dynamically set basename for GitHub Pages vs. local development
9-
const basename = process.env.NODE_ENV === 'production' ? '/prize-website-v2' : '/';
8+
// Dynamically set basename based on the hostname
9+
// No basename needed for custom domain, but use /prize-website-v2 for github.io
10+
const isGitHubPages = window.location.hostname.includes('github.io');
11+
const basename = isGitHubPages ? '/prize-website-v2' : '/';
1012

1113
const root = ReactDOM.createRoot(document.getElementById('root'));
1214
root.render(

src/pages/LandingPage.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@ const LandingPage = () => {
2020

2121
<div className="hero-content">
2222
<h1 className="title">UPenn Eco-Venture Challenge</h1>
23-
<p className="subheading"><b>WE HAVE EXTENDED OUR DEADLINE FROM MARCH 14TH TO APRIL 4TH</b></p>
24-
<p className="subheading">Preparing tomorrow’s leaders to tackle today’s climate crisis.</p>
23+
<div className="ceremony-banner" style={{
24+
backgroundColor: 'rgba(0, 0, 0, 0.7)',
25+
padding: '10px 20px',
26+
borderRadius: '5px',
27+
margin: '10px 0',
28+
}}>
29+
<h2 style={{ color: '#fff', margin: '0 0 5px 0', fontSize: '1.5rem' }}>OPENING CEREMONY</h2>
30+
<p style={{ color: '#fff', margin: '0' }}>
31+
<b>APRIL 5th @ 7 PM EST - <a href="https://upenn.zoom.us/j/98989743464" target="_blank" rel="noopener noreferrer" style={{textDecoration: 'underline', color: '#fff', fontWeight: 'bold'}}>JOIN WITH THIS LINK</a></b>
32+
</p>
33+
</div>
34+
<p className="subheading">Preparing tomorrow's leaders to tackle today's climate crisis.</p>
2535
<Countdown />
2636
<p className="subcountdown">UNTIL FIRST ROUND CLOSES</p>
2737
<img
@@ -44,10 +54,10 @@ const LandingPage = () => {
4454
The EcoVenture Challenge hosted by the University of Pennsylvania is a 100% remote, no-cost,
4555
and accessible climate pitch competition for high school, undergraduate, and master's students. Through
4656
our challenge, we aim to empower high school and university students to create environmental
47-
business pitches to tackle todays most pressing issues.
57+
business pitches to tackle today's most pressing issues.
4858
</p>
4959
<p>
50-
If youre at all interested in addressing environmental issues through a business perspective,
60+
If you're at all interested in addressing environmental issues through a business perspective,
5161
this competition is a perfect way to get real-world experience and feedback from industry experts.
5262
</p>
5363
<Link
@@ -67,7 +77,7 @@ const LandingPage = () => {
6777
<br /><br />
6878
<h2 className="heading">Up to $10,000 in prizes!</h2>
6979
<p>
70-
In The EcoVenture Challenge, you will have the opportunity to compete for a <b>$10,000 TOTAL PRIZE POOL!</b> Our mission with this cash prize is to inspire upcoming entrepreneurs and fuel personal environmental projects. The prize is flexible and will be directly deposited to participants. We hope that our flexible prize money will motivate students and ultimately create Penns most impactful sustainability competition yet.
80+
In The EcoVenture Challenge, you will have the opportunity to compete for a <b>$10,000 TOTAL PRIZE POOL!</b> Our mission with this cash prize is to inspire upcoming entrepreneurs and fuel personal environmental projects. The prize is flexible and will be directly deposited to participants. We hope that our flexible prize money will motivate students and ultimately create Penn's most impactful sustainability competition yet.
7181
</p>
7282
<br /><br /><br />
7383
</div>

0 commit comments

Comments
 (0)