diff --git a/heat-stack/app/components/ui/heat/CaseSummaryComponents/HomeInformation.tsx b/heat-stack/app/components/ui/heat/CaseSummaryComponents/HomeInformation.tsx index 4ec97b8f..94db267f 100644 --- a/heat-stack/app/components/ui/heat/CaseSummaryComponents/HomeInformation.tsx +++ b/heat-stack/app/components/ui/heat/CaseSummaryComponents/HomeInformation.tsx @@ -1,64 +1,81 @@ import { Form } from '@remix-run/react' -import { Input } from '../../input.tsx' -import { Label } from '../../label.tsx' +import { Input } from '#/app/components/ui/input.tsx' +import { Label } from '#/app/components/ui/label.tsx' +import { Button } from '#/app/components/ui/button.tsx' + + export function HomeInformation() { - const name = 'Pietro Schirano' - const street = '567 Pine Avenue Apt 21' - const city = 'Rivertown' - const state = 'MA' - const zip = '02856' - const country = 'United States of America' - const livingArea = '3,000' - const designTemperature = '63' - const designTemperatureOverride = '65' return ( -
- Home Information -
-
-
-
- Resident / Client -
-
{name}

- Address -
{street}
-
- {city}, {state}, {zip} +
+

Home Information

+ +
+ +
+
Resident/Client
+ +
+
+ + +
+
+ +
-
{country}

- Living Area (sf) -
{livingArea}
+
-
-
- Design Temperature (°F)
-
{designTemperature}

- true} - > -
- - + +
+
Address
+ +
+
+ + + + +
+
+ + +
+
+ + +
+
+ + +
- +
-
+ + +
+
+ +
+ +
+
+ +

The home's above-grade, conditioned space

+
+
+
+ +
+ +
+
) } diff --git a/heat-stack/app/routes/_heat+/Inputs1.tsx b/heat-stack/app/routes/_heat+/inputs1.tsx similarity index 99% rename from heat-stack/app/routes/_heat+/Inputs1.tsx rename to heat-stack/app/routes/_heat+/inputs1.tsx index ee5c26c7..76bdb05f 100644 --- a/heat-stack/app/routes/_heat+/Inputs1.tsx +++ b/heat-stack/app/routes/_heat+/inputs1.tsx @@ -1,4 +1,5 @@ import { HomeInformation } from '../../components/ui/heat/CaseSummaryComponents/HomeInformation.tsx' + export default function Inputs1() { return (
diff --git a/heat-stack/app/routes/homes.tsx b/heat-stack/app/routes/homes.tsx new file mode 100644 index 00000000..a6f5739a --- /dev/null +++ b/heat-stack/app/routes/homes.tsx @@ -0,0 +1,15 @@ +import type { + ActionFunctionArgs, +} from "@remix-run/node"; +import { redirect } from "@remix-run/node" + +export async function action({ + request +}: ActionFunctionArgs) { + const formData = await request.formData() + + formData.forEach(d => console.log(d)) + + return redirect("/inputs1") +} + diff --git a/heat-stack/tsconfig.json b/heat-stack/tsconfig.json index d152e34a..08ffe214 100644 --- a/heat-stack/tsconfig.json +++ b/heat-stack/tsconfig.json @@ -13,6 +13,7 @@ "noImplicitAny": true, "allowJs": true, "forceConsistentCasingInFileNames": true, + "baseUrl": ".", "paths": { "#*": ["./*"], "@/icon-name": [