Skip to content

Commit

Permalink
fix: add github in website
Browse files Browse the repository at this point in the history
  • Loading branch information
ymzuiku committed Aug 26, 2023
1 parent 70606d6 commit 3aa4c20
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/public/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 19 additions & 2 deletions app/routers/welcome/+page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
RiUserUserSettingsLine,
} from "solid-icons/ri";
import { Component, For, Show } from "solid-js";
import { createMediaQuerySm } from "solid-ux/createMediaQuerySm";
import { UxButton } from "solid-ux/UxButton";
import { UxI18nPick } from "solid-ux/UxI18nPick";
import { UxSolidIcon } from "solid-ux/UxSolidIcon";
import { UxSvg } from "solid-ux/UxSvg";
import { UxWaveLine } from "solid-ux/UxWaveLine";
import { createMediaQuerySm } from "solid-ux/createMediaQuerySm";
import { routers } from "..";
import { i18n } from "../../i18n";
import { css } from "../css";
Expand Down Expand Up @@ -121,9 +121,26 @@ const Welcome: Component<{ stackShow: boolean }> = (p) => {
gap: "2.5em",
}}
>
<div
style={{
background: "transparent",
cursor: "pointer",
display: "flex",
"flex-direction": "row",
"align-items": "center",
"justify-content": "center",
}}
onclick={() => {
if (typeof window !== "undefined") {
window.open("https://github.com/ymzuiku/testflowy");
}
}}
>
<img style={{ width: "2em", height: "2em" }} src="/github.svg" />
</div>
<UxI18nPick
style={{
"font-size": "var(--ux-text-lg)",
"font-size": sm() ? "var(--ux-text-lg)" : "var(--ux-text-sm)",
}}
/>
<a
Expand Down

0 comments on commit 3aa4c20

Please sign in to comment.