-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to state/local calculator (#154)
## Description This makes the default embed.rewiringamerica.org homepage be the new "state" calculator, to guide new developers toward the latest and greatest. Steps taken: - make index.html be ira-calculator.html - make state-calculator.html be index.html - redirect state-calculator.html to index.html These are separate commits to hopefully make the diffs clearer. ## Test Plan - [x] ensure the test build homepage is the state calculator - [x] ensure that visiting /state-calculator.html redirects to the homepage - [x] ensure that ira-calculator.html still works for now - [x] ensure that calculator.js is still built and is not different from main - [x] ensure that state-calculator.js is still built and is not different from main
- Loading branch information
Showing
8 changed files
with
156 additions
and
147 deletions.
There are no files selected for viewing
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta | ||
name="description" | ||
content="Demo Rewiring America calculator widget." | ||
/> | ||
<meta name="robots" content="noindex" /> | ||
<title>Rewiring America Calculator Widget</title> | ||
<script type="module" src="./calculator.tsx"></script> | ||
<link rel="stylesheet" type="text/css" href="./rewiring-fonts.css" /> | ||
<style> | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
background: white; | ||
color: #222; | ||
box-sizing: border-box; | ||
} | ||
|
||
main { | ||
font-smoothing: antialiased; | ||
-webkit-font-smoothing: antialiased; | ||
font-family: 'GT America', system-ui, -apple-system, BlinkMacSystemFont, | ||
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', | ||
'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', | ||
'Segoe UI Symbol', 'Noto Color Emoji'; | ||
font-size: 16px; | ||
line-height: 28px; | ||
font-weight: 400; | ||
margin: 32px auto; | ||
max-width: 1024px; | ||
padding: 32px; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
p { | ||
padding: 0; | ||
} | ||
|
||
/* Extra small devices */ | ||
@media only screen and (max-width: 600px) { | ||
main { | ||
padding: 0; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
p { | ||
padding: 32px; | ||
} | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<h1>Rewiring America Embeddable IRA Calculator</h1> | ||
<p> | ||
This page is a demonstration of our embeddable calculator, intended for | ||
website owners to add to their own page to help their visitors | ||
understand the electrification incentives offered as part of the | ||
Inflation Reduction Act (IRA). If you’re looking to evaluate the impact | ||
of IRA electrification incentives for your own home, please use | ||
<a href="https://www.rewiringamerica.org/app/ira-calculator" | ||
>our official IRA Calculator</a | ||
>. | ||
</p> | ||
<p> | ||
<a href="https://www.rewiringamerica.org/api" | ||
>Register for an API key</a | ||
> | ||
• | ||
<a href="https://api.rewiringamerica.org/docs" | ||
>View full documentation</a | ||
> | ||
• | ||
<a href="https://rewiring-america-calculator-widget.glitch.me" | ||
>View examples</a | ||
> | ||
</p> | ||
<h2>Example</h2> | ||
<rewiring-america-calculator | ||
api-key="{{ apiKey }}" | ||
zip="80212" | ||
household-income="80000" | ||
household-size="1" | ||
tax-filing="single" | ||
owner-status="homeowner" | ||
></rewiring-america-calculator> | ||
</main> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"redirects": [ | ||
{ | ||
"source": "/state-calculator.html", | ||
"destination": "/", | ||
"permanent": true | ||
} | ||
] | ||
} |