Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/nominer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/still-til-valg-qrcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { isAugust, isMsgExpired, isValentinesSeason } from "./utils/date";
import WelcomeScreen from "./pages/welcome-screen";
import { AutoReload } from "./components/auto-reload";
import { useMessage } from "./hooks/use-message";
import { ValgScreen } from "./pages/valg-screen";

export default function App() {
const { data: message } = useMessage();
Expand All @@ -22,7 +23,7 @@ export default function App() {
return () => clearInterval(interval);
}, []);

const visibleScreens = [CalendarScreen, TransportScreen];
const visibleScreens = [CalendarScreen, TransportScreen, ValgScreen];
if (isAugust()) {
visibleScreens.push(WelcomeScreen);
}
Expand Down
36 changes: 36 additions & 0 deletions src/pages/valg-screen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
export const ValgScreen = () => {
return (
<div className="flex flex-col items-center justify-center w-full">
<div className="bg-background/80 border-2 shadow-lg rounded-2xl p-10 max-w-6xl w-full text-center">
<div className="grid grid-cols-1 md:grid-cols-2 gap-16 items-center">
{/* Still selv */}
<div className="flex flex-col items-center">
<h1 className="text-5xl font-semibold text-gray-700 mb-4">Still til HS 26/27</h1>

<p className="text-gray-600 mb-6">Vil du bidra i echo i 2026/2027?</p>

<img
src="/still-til-valg-qrcode.png"
alt="Still til styret"
className="max-h-[380px] object-contain"
/>
</div>

{/* Nominer */}
<div className="flex flex-col items-center">
<h1 className="text-4xl font-semibold text-gray-700 mb-4">Nominer noen til HS 26/27</h1>

<p className="text-gray-600 mb-6">Kjenner du noen som passer i styret?</p>

<img
src="/nominer.png"
alt="Nominer noen til styret"
className="max-h-[380px] object-contain"
/>
</div>
</div>
<p className="text-5xl font-bold my-6">Husk valg 16-18.mars!</p>
</div>
</div>
);
};