-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into creating-classes-2
- Loading branch information
Showing
1 changed file
with
73 additions
and
40 deletions.
There are no files selected for viewing
113 changes: 73 additions & 40 deletions
113
heat-stack/app/components/ui/heat/CaseSummaryComponents/CurrentHeatingSystem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,84 @@ | ||
import { type Home } from '#model/Homes.tsx' | ||
import { Form } from '@remix-run/react' | ||
import React from 'react' | ||
// removed temporarily for single-page app format | ||
// import { Button } from '#/app/components/ui/button.tsx' | ||
import { Input } from '#/app/components/ui/input.tsx' | ||
import { Label } from '#/app/components/ui/label.tsx' | ||
|
||
export function CurrentHeatingSystem() { | ||
const someHome: Home = { | ||
livingArea: 0, | ||
fuelType: 'Natural Gas', | ||
designTemperatureOverride: 0, | ||
heatingSystemEfficiency: 75, | ||
thermostatSetPoint: 70, | ||
setbackTemperature: 65, | ||
setBackHoursPerDay: 7, | ||
numberOfOccupants: 0, | ||
estimatedWaterHeatingEfficiency: 0, | ||
standByLosses: 0, | ||
} | ||
|
||
const titleClassTailwind = 'text-5xl font-extrabold tracking-wide' | ||
const subTitleClassTailwind = 'text-2xl font-semibold text-zinc-950' | ||
const componentMargin = 'mt-10' | ||
return ( | ||
<div className="section-title"> | ||
Current Heating System | ||
<hr /> | ||
<div className="flex flex-row"> | ||
<div className="basis-1/2"> | ||
<div className="item-title"> | ||
Fuel Type | ||
<br /> | ||
<div className="item-big">{someHome.fuelType}</div> <br /> | ||
Heating System Efficiency (%) | ||
<br /> | ||
<div className="item-big"> | ||
{someHome.heatingSystemEfficiency} | ||
</div>{' '} | ||
<br /> | ||
<div> | ||
<h2 className={`${titleClassTailwind} ${componentMargin}`}> | ||
Existing Heating System | ||
</h2> | ||
|
||
<Form method="post" action="/current"> | ||
<div className={`${componentMargin}`}> | ||
<Label htmlFor="fuelType">Fuel Type</Label> | ||
<Input name="fuelType" id="fuelType" type="text" /> | ||
</div> | ||
|
||
<div className="mt-4 flex space-x-4"> | ||
<div> | ||
<Label htmlFor="heatingSystemEfficiency"> | ||
Heating system efficiency % | ||
</Label> | ||
<Input | ||
name="heatingSystemEfficiency" | ||
id="heatingSystemEfficiency" | ||
type="text" | ||
/> | ||
</div> | ||
|
||
<div> | ||
<Label htmlFor="designTemperatureOverride"> | ||
Design temperature override (°F) | ||
</Label> | ||
<Input | ||
name="designTemperatureOverride" | ||
id="designTemperatureOverride" | ||
type="text" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className="basis-1/2"> | ||
<div className="item-group-title">Thermostat Settings</div> | ||
<div className="item-title"> | ||
Set Point (°F) <br /> | ||
<div className="item">{someHome.setbackTemperature}</div> <br /> | ||
Setback Temperature (°F) | ||
<br /> | ||
<div className="item">{someHome.setbackTemperature}</div> <br /> | ||
Setback Time (h) | ||
<div className="item">{someHome.setBackHoursPerDay}</div> | ||
<div className="mt-9"> | ||
<h6 className={`${subTitleClassTailwind}`}>Thermostat Settings</h6> | ||
|
||
<div className="mt-4 flex space-x-4"> | ||
<div className="basis-1/3"> | ||
<Label htmlFor="setPoint">Set Point (°F) </Label> | ||
<Input | ||
name="setPointTemperature" | ||
id="setPointTemperature" | ||
type="text" | ||
/> | ||
</div> | ||
|
||
<div className="basis-1/3"> | ||
<Label htmlFor="setPoint">Setback Temperature (°F)</Label> | ||
<Input | ||
name="setBackTemperature" | ||
id="setBackTemperature" | ||
type="text" | ||
/> | ||
</div> | ||
|
||
<div className="basis-1/3"> | ||
<Label htmlFor="setPoint">Setback hours per day</Label> | ||
<Input name="setBackTime" id="setBackTime" type="text" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Form> | ||
|
||
{/* removed temporarily for single page app format */} | ||
{/* <div> | ||
<Button type="submit">Next ={'>'}</Button> | ||
</div> */} | ||
</div> | ||
) | ||
} |