Skip to content

Commit 5dbf0e3

Browse files
committed
create info component
1 parent 1c656b2 commit 5dbf0e3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/components/Info.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Show } from "solid-js";
2+
3+
export default function Info(props: {
4+
showTitle: CallableFunction;
5+
showExplanation: CallableFunction;
6+
}) {
7+
return (
8+
<>
9+
<Show when={props.showTitle()}>
10+
<h1 class="flex flex-col items-center text-3xl font-semibold sm:text-4xl">
11+
<img src="icon.png" alt="" class="h-16 w-16" />
12+
<p>
13+
QuickIME – An Input Method Editor that <span class="text-primary">doesn't suck</span>
14+
</p>
15+
</h1>
16+
</Show>
17+
18+
<Show when={props.showExplanation()}>
19+
<p class="text-muted-foreground mx-auto mt-4 max-w-xl text-base sm:text-lg">
20+
Tired of clunky setups, invasive tracking, and unreliable input methods? QuickIME is
21+
fast, private, and a simple web-based alternative to other IME's that just works.
22+
</p>
23+
</Show>
24+
</>
25+
);
26+
}

0 commit comments

Comments
 (0)