-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2219 from PolicyEngine/PavelMakarchuk/issue2218
Add SALT/AMT calculator
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Header from "../layout/Header"; | ||
import { Helmet } from "react-helmet"; | ||
import style from "../style"; | ||
import { useWindowHeight } from "../hooks/useWindow"; | ||
|
||
export default function SaltAMTCalculator() { | ||
const windowHeight = useWindowHeight(); | ||
|
||
return ( | ||
<> | ||
<Helmet> | ||
<title>SALT-AMT Calculator | PolicyEngine</title> | ||
</Helmet> | ||
<Header /> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
height: windowHeight - style.spacing.HEADER_HEIGHT, | ||
width: "100vw", | ||
}} | ||
> | ||
<iframe | ||
src="https://policyengine-salt-amt-calculator.streamlit.app/?embedded=true" | ||
title="SALT-AMT Policy Reform Calculator" | ||
height={`calc(100vh - ${style.spacing.HEADER_HEIGHT})`} | ||
width="100%" | ||
style={{ overflow: "hidden" }} | ||
/> | ||
</div> | ||
</> | ||
); | ||
} |