fix: update sign-in prompt to include poll name var

This commit is contained in:
ethanf 2025-08-17 21:52:48 -05:00
parent a432fb9b04
commit 1571f2e256

View File

@ -12,7 +12,7 @@ function App() {
<div className="min-h-screen py-4 px-4 sm:py-8 sm:px-6 lg:px-8"> <div className="min-h-screen py-4 px-4 sm:py-8 sm:px-6 lg:px-8">
<div className="max-w-7xl mx-auto"> <div className="max-w-7xl mx-auto">
<UserInfo user={user} onLogin={handleLogin} onLogout={handleLogout} /> <UserInfo user={user} onLogin={handleLogin} onLogout={handleLogout} />
{/* Header */} {/* Header */}
<div className="flex justify-between items-center my-6"> <div className="flex justify-between items-center my-6">
<h1 className="text-2xl sm:text-3xl lg:text-4xl font-bold text-center flex-1"> <h1 className="text-2xl sm:text-3xl lg:text-4xl font-bold text-center flex-1">
@ -27,7 +27,8 @@ function App() {
Poll Has Ended Poll Has Ended
</h2> </h2>
<p className="text-sm text-red-700"> <p className="text-sm text-red-700">
Voting closed on {formatPollEndDate()}. No new votes are being accepted. Voting closed on {formatPollEndDate()}. No new votes are being
accepted.
</p> </p>
</div> </div>
)} )}
@ -71,8 +72,8 @@ function App() {
<div className="text-center max-w-md"> <div className="text-center max-w-md">
<h2 className="text-2xl font-bold mb-4">Sign in Required</h2> <h2 className="text-2xl font-bold mb-4">Sign in Required</h2>
<p className="text-gray-500 mb-6"> <p className="text-gray-500 mb-6">
Please sign in with your Steam account to participate in the RGL Please sign in with your Steam account to participate in the{" "}
HL Season 22 map poll. {POLL_NAME}
</p> </p>
<button <button
onClick={handleLogin} onClick={handleLogin}