Skip to content

Commit

Permalink
FE things
Browse files Browse the repository at this point in the history
  • Loading branch information
chadmmills committed Aug 6, 2023
1 parent a3fa92f commit 6b8f78b
Show file tree
Hide file tree
Showing 9 changed files with 4,082 additions and 771 deletions.
6 changes: 6 additions & 0 deletions packages/scripts/dev.all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ process.on("SIGINT", () => {
process.exit()
})

process.on("SIGTERM", () => {
console.info("SIGTERM signal received... quitting all processes")
procs.forEach(proc => proc.kill())
process.exit()
})

13 changes: 13 additions & 0 deletions packages/web/app/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {TextField, Label, Input as RAInput} from 'react-aria-components';

export default function InputComponent({label, name, type, value, onChange}: InputProps) {
return (
<TextField>
<Label>Email</Label>
<RAInput type='email'
className="px-2 py-1 border border-gray-200 rounded-md"
/>
</TextField>
)
}

2 changes: 2 additions & 0 deletions packages/web/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import {
Scripts,
ScrollRestoration,
} from "@remix-run/react";
import styles from "./tailwind.css";

export const links: LinksFunction = () => [
...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
{ rel: "stylesheet", href: styles },
];

export default function App() {
Expand Down
14 changes: 14 additions & 0 deletions packages/web/app/routes/login.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Form } from "@remix-run/react";
import Input from "~/components/Input";

export default function Login() {
return (
<div className="h-full flex">
<div className="m-auto">
<Form method="post">
<Input />
</Form>
</div>
</div>
)
}
3 changes: 3 additions & 0 deletions packages/web/app/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
Loading

0 comments on commit 6b8f78b

Please sign in to comment.