-
Notifications
You must be signed in to change notification settings - Fork 109
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 #2194 from PolicyEngine/MaxGhenis/issue2193
Add current law CTC calculator
- Loading branch information
Showing
2 changed files
with
38 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 CTCCalculator() { | ||
const windowHeight = useWindowHeight(); | ||
|
||
return ( | ||
<> | ||
<Helmet> | ||
<title>Child Tax Credit Calculator | PolicyEngine</title> | ||
</Helmet> | ||
<Header /> | ||
<div | ||
style={{ | ||
display: "flex", | ||
justifyContent: "center", | ||
height: windowHeight - style.spacing.HEADER_HEIGHT, | ||
width: "100vw", | ||
}} | ||
> | ||
<iframe | ||
src="https://ctc-calculator.streamlit.app?embedded=true" | ||
title="Child Tax Credit Calculator" | ||
height={`calc(100vh - ${style.spacing.HEADER_HEIGHT})`} | ||
width="100%" | ||
style={{ overflow: "hidden" }} | ||
/> | ||
</div> | ||
</> | ||
); | ||
} |