-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
$ Kastro: remove name$ keys from ObjectExpressions
- Loading branch information
1 parent
1698df6
commit c2ece6b
Showing
4 changed files
with
63 additions
and
9 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,5 @@ | ||
/** @export */ | ||
#Button {} | ||
|
||
/** @export */ | ||
#Text {} |
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,26 @@ | ||
import dom from "@kimlikdao/util/dom"; | ||
import { LangCode } from "@kimlikdao/util/i18n"; | ||
import ArrowSvg from "./arrow.svg"; | ||
import Css from "./LandingPage.css"; | ||
|
||
/** | ||
* @param {{ Lang: LangCode }} props | ||
*/ | ||
const LandingPage = ({ Lang }) => { | ||
/** @const {!HTMLButtonElement} */ | ||
const Button = dom.button(Css.ButtonId); | ||
/** @const {!HTMLSpanElement} */ | ||
const Text = dom.span(Css.TextId); | ||
|
||
return ( | ||
<html lang={Lang}> | ||
<Css /> | ||
<Button onClick={() => Text.innerText = "Clicked!"}> | ||
<ArrowSvg />Click here! | ||
</Button> | ||
<Text>Hello World!</Text> | ||
</html> | ||
); | ||
}; | ||
|
||
export default LandingPage; |
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