diff --git a/src/components/Page/Page.tsx b/src/components/Page/Page.tsx index a079111..a0c01f6 100644 --- a/src/components/Page/Page.tsx +++ b/src/components/Page/Page.tsx @@ -6,6 +6,7 @@ import { ExpressionSetListView, } from "../../views"; import { AddExpressionView } from "../../views/AddExpressionView"; +import { HomeView } from "../../views/HomeView"; export function Page() { const { route } = useContext(AppRouting); @@ -13,7 +14,7 @@ export function Page() { switch (route.path) { case AppPath.Home: - return

TODO home

; + return ; case AppPath.ExpressionSets: return ; case AppPath.ExpressionSetsDetails: diff --git a/src/styles/components.css b/src/styles/components.css index 4fd85aa..a03c5c2 100644 --- a/src/styles/components.css +++ b/src/styles/components.css @@ -207,6 +207,12 @@ i { margin-top: var(--gap-medium); } +.content-text { + display: flex; + flex-direction: column; + height: 100%; +} + .content-query { display: flex; flex-direction: column; diff --git a/src/views/HomeView/HomeView.tsx b/src/views/HomeView/HomeView.tsx new file mode 100644 index 0000000..47f08b4 --- /dev/null +++ b/src/views/HomeView/HomeView.tsx @@ -0,0 +1,98 @@ +export function HomeView() { + return ( +
+

Flash Card App

+

+ A handy tool for helping build vocabulary. Go to{" "} + settings -> create card to start adding words for practicing. + Once you have a few go to practice and start from your daily words. +

+

Privacy

+

+ HTTPS requests are made to Wiktionary during the card creation process. + Their privacy policy can be found{" "} + + on this link + + . +

+

+ The cards that you save are locally stored and never transmitted + anywhere else. +

+

Licenses

+

+ Human-readable summary: You are free to use the app for any purposes. + You are free to modify and redistribute the app{" "} + + as long as you grant your users access to reused or modified + source-code, content and assets under the same terms listed below + + . As long as you follow those rules, you don't need to contact the + author(s) about it. +

+

+ The user-interface icons are licensed under the{" "} + + MIT license + + . +

+

+ The content for the flash cards generated is dual-licensed under{" "} + + Creative Commons Attribution-ShareAlike 3.0 Unported License + {" "} + and the{" "} + + GNU Free Documentation License + + . +

+ +

+ The rest of the application and its assets are licensed under the{" "} + + GNU Affero General Public License version 3 + + . +

+

Support the app

+

+ This app would not exist if it was not for Wiktionary and the Wikimedia + foundation. If you want to support anyone, consider donating to the{" "} + + Wikimedia Foundation + + . This app or its author is in no way affiliated with the Wikimedia + Foundation, it just makes use of its data. +

+

TODO contact info

+
+ ); +} diff --git a/src/views/HomeView/index.ts b/src/views/HomeView/index.ts new file mode 100644 index 0000000..fdb4e69 --- /dev/null +++ b/src/views/HomeView/index.ts @@ -0,0 +1 @@ +export * from "./HomeView";