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

[CFD-194] Invite New User Page #527

Merged
merged 7 commits into from
Feb 6, 2025
Merged
Changes from 3 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
197 changes: 197 additions & 0 deletions apps/nextjs/src/pages/inviteuser.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
import React from "react";
import { SignInButton, useAuth, UserButton } from "@clerk/nextjs";

export default function InviteUser() {
const { isSignedIn } = useAuth();
return (
<div
className="flex"
style={{
display: "flex",
position: "absolute",
width: "100%",
top: "0px",
bottom: "0px",
}}
>
<div
elsiezhu marked this conversation as resolved.
Show resolved Hide resolved
className="m-10 flex"
style={{
flexDirection: "column",
background: "#EFF2FB",
margin: "0",
padding: "16px 40px",
maxWidth: "40%",
justifyContent: "space-between",
position: "sticky",
top: 0,
}}
>
{isSignedIn ? "" : <SignInButton />}
<UserButton afterSignOutUrl="/" showName />
<nav style={{ display: "flex", flexDirection: "column" }}>
<button
style={{
borderWidth: "1px",
borderColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "8px",
backgroundColor: "#2E4D90",
color: "#FFFFFF",
}}
>
<a href="/posts/">Forum</a>
</button>
<button
style={{
borderWidth: "1px",
borderColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "8px",
}}
>
<a href="/announcements/">Announcements</a>
</button>
<button
style={{
borderWidth: "1px",
borderColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "8px",
}}
>
<a href="/absences/">Absentees</a>
</button>
<button
style={{
borderWidth: "1px",
borderColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "8px",
}}
>
<a href="/activities/">Calendar</a>
</button>
<button
style={{
borderWidth: "1px",
borderColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "8px",
}}
>
<a href="/inviteuser/">Invite New User</a>
</button>
</nav>
<button
style={{
borderWidth: "1px",
borderColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "8px",
}}
>
<a href="/">Create New</a>
</button>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
width: "-webkit-fill-available",
justifyContent: "center",
}}
>
<div
style={{
fontSize: "32px",
textAlign: "center",
paddingBottom: "36px",
}}
>
Invite new user
</div>
<form
onSubmit={(e) => e.preventDefault()}
style={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
paddingBottom: "16px",
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
width: "50%",
justifyContent: "center",
margin: "0 auto",
paddingBottom: "24px",
}}
>
<label
htmlFor="email"
style={{ color: "#000000", fontSize: "16px" }}
>
Email
</label>
<input
type="text"
id="email"
style={{
padding: "8px",
backgroundColor: "#EFF2FB",
borderRadius: "10px",
}}
/>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
width: "50%",
justifyContent: "center",
margin: "0 auto",
paddingBottom: "36px",
}}
>
<label
htmlFor="password"
style={{ color: "#000000", fontSize: "16px" }}
>
Temporary Password
</label>
<input
type="password"
id="password"
style={{
padding: "8px",
backgroundColor: "#EFF2FB",
borderRadius: "10px",
}}
/>
</div>
<button
style={{
width: "50%",
elsiezhu marked this conversation as resolved.
Show resolved Hide resolved
backgroundColor: "#2E4D90",
borderRadius: "24px",
padding: "8px",
margin: "0 auto",
color: "#FFFFFF",
}}
>
Invite
</button>
</form>
</div>
</div>
);
}
Loading