Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Create home page #25

Merged
merged 2 commits into from
Oct 24, 2024
Merged
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
47 changes: 46 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
import { Box, Button, Container, Paper } from "@mui/material";
import Link from "next/link";

import LoginForm from "@/components/LoginForm";
import Logo from "@/components/Logo";

export default function Home() {
return <p>Home page</p>;
return (
<div>
{/* Header with Logo and Title */}
<header
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
position: "relative",
}}
>
<Box
sx={{
position: "absolute",
left: 0,
top: 0,
p: 0, // Material UI spacing
}}
>
<Logo width={100} height={100} alt="SCF Logo" />
</Box>
<h1>St. Christopher Truckers Relief Fund</h1>
</header>

{/* Login Form with Black Border */}
<Container maxWidth="sm" sx={{ mt: 5 }}>
<Paper sx={{ p: 3, border: "2px solid black" }}>
<LoginForm />
</Paper>
</Container>
{/* Enrollment Form Button */}
<Box sx={{ mt: 2, textAlign: "center" }}>
<Link href="/enrollment-form" passHref>
<Button variant="contained" color="primary">
Fill out enrollment form
</Button>
</Link>
</Box>
</div>
);
}