Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit e669a96

Browse files
committed
declaring css victory
1 parent 9401d65 commit e669a96

35 files changed

+1215
-1382
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"eslint-plugin-solid": "0.13.1",
3131
"postcss": "^8.4.35",
3232
"prettier": "^3.0.3",
33-
"prettier-plugin-tailwindcss": "^0.5.6",
33+
"prettier-plugin-tailwindcss": "^0.5.12",
3434
"tailwindcss": "^3.4.1",
3535
"typescript": "^5.3.3",
3636
"vite": "^5.1.1",

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ErrorDisplay.tsx

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import { onMount } from "solid-js";
55
import { ExternalLink } from "~/components";
66
import {
77
Button,
8-
DefaultMain,
98
LargeHeader,
109
NiceP,
11-
SafeArea,
12-
SmallHeader
10+
SmallHeader,
11+
VStack
1312
} from "~/components/layout";
1413
import { useI18n } from "~/i18n/context";
1514

@@ -28,37 +27,32 @@ export function ErrorDisplay(props: { error: Error }) {
2827
console.error(props.error);
2928
});
3029
return (
31-
<SafeArea>
30+
<VStack>
3231
<Title>{i18n.t("error.general.oh_no")}</Title>
33-
<DefaultMain>
34-
<LargeHeader>{i18n.t("error.title")}</LargeHeader>
35-
<SmallHeader>
36-
{i18n.t("error.general.never_should_happen")}
37-
</SmallHeader>
38-
<SimpleErrorDisplay error={props.error} />
39-
<NiceP>
40-
{i18n.t("error.general.try_reloading")}{" "}
41-
<ExternalLink href="https://matrix.to/#/#mutiny-community:lightninghackers.com">
42-
{i18n.t("error.general.support_link")}
43-
</ExternalLink>
44-
</NiceP>
45-
<Button onClick={() => window.location.reload()}>
46-
{i18n.t("error.reload")}
47-
</Button>
48-
<NiceP>
49-
{i18n.t("error.general.getting_desperate")}{" "}
50-
<A href="/settings/emergencykit">
51-
{i18n.t("error.emergency_link")}
52-
</A>
53-
</NiceP>
54-
<div class="h-full" />
55-
<Button
56-
onClick={() => (window.location.href = "/")}
57-
intent="red"
58-
>
59-
{i18n.t("common.dangit")}
60-
</Button>
61-
</DefaultMain>
62-
</SafeArea>
32+
<LargeHeader>{i18n.t("error.title")}</LargeHeader>
33+
<SmallHeader>
34+
{i18n.t("error.general.never_should_happen")}
35+
</SmallHeader>
36+
<SimpleErrorDisplay error={props.error} />
37+
<NiceP>
38+
{i18n.t("error.general.try_reloading")}{" "}
39+
<ExternalLink href="https://matrix.to/#/#mutiny-community:lightninghackers.com">
40+
{i18n.t("error.general.support_link")}
41+
</ExternalLink>
42+
</NiceP>
43+
<Button onClick={() => window.location.reload()}>
44+
{i18n.t("error.reload")}
45+
</Button>
46+
<NiceP>
47+
{i18n.t("error.general.getting_desperate")}{" "}
48+
<A href="/settings/emergencykit">
49+
{i18n.t("error.emergency_link")}
50+
</A>
51+
</NiceP>
52+
<div class="h-full" />
53+
<Button onClick={() => (window.location.href = "/")} intent="red">
54+
{i18n.t("common.dangit")}
55+
</Button>
56+
</VStack>
6357
);
6458
}

src/components/HomeBalance.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Zap } from "lucide-solid";
21
import { Match, Switch } from "solid-js";
32

43
import { AmountFiat, AmountSats } from "~/components/Amount";
@@ -10,7 +9,8 @@ export function HomeBalance() {
109
const lightningPlusFedi = () =>
1110
(state.balance?.federation || 0n) + (state.balance?.lightning || 0n);
1211

13-
const fullyReady = () => state.load_stage === "done" && state.price !== 0;
12+
// TODO: do some sort of status indicator
13+
// const fullyReady = () => state.load_stage === "done" && state.price !== 0;
1414

1515
return (
1616
<button

src/components/HomeSubnav.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ export function HomeSubnav() {
116116
</Suspense>
117117
</Show>
118118
{/* spacer just so we can always scroll above the fab */}
119-
<div class="h-[6rem]" />
120-
<div class="flex-1" />
119+
<div class="h-[4rem]" />
121120
</>
122121
);
123122
}

0 commit comments

Comments
 (0)