Skip to content

Commit c07425d

Browse files
committed
Added favicon and logo
1 parent 0319f75 commit c07425d

6 files changed

Lines changed: 88 additions & 25 deletions

File tree

weather/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/png" href="/src/assets/weatherify.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>weather</title>
7+
<title>Weatherify: Clean Forecasts</title>
88
</head>
99
<body>
1010
<div id="root"></div>
33.7 KB
Loading
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"fill" : {
3+
"automatic-gradient" : "extended-srgb:0.00000,0.53333,1.00000,1.00000"
4+
},
5+
"groups" : [
6+
{
7+
"layers" : [
8+
{
9+
"image-name" : "cloud.sun.fill@3x.png",
10+
"name" : "cloud.sun.fill@3x",
11+
"position" : {
12+
"scale" : 0.8,
13+
"translation-in-points" : [
14+
0,
15+
-1.1368683772161603e-13
16+
]
17+
}
18+
},
19+
{
20+
"image-name" : "cloud.sun.fill@3x.png",
21+
"name" : "cloud.sun.fill@3x",
22+
"position" : {
23+
"scale" : 0.8,
24+
"translation-in-points" : [
25+
0,
26+
0
27+
]
28+
}
29+
},
30+
{
31+
"image-name" : "cloud.sun.fill@3x.png",
32+
"name" : "cloud.sun.fill@3x",
33+
"position" : {
34+
"scale" : 0.8,
35+
"translation-in-points" : [
36+
0,
37+
0
38+
]
39+
}
40+
}
41+
],
42+
"shadow" : {
43+
"kind" : "neutral",
44+
"opacity" : 0.5
45+
},
46+
"translucency" : {
47+
"enabled" : true,
48+
"value" : 0.5
49+
}
50+
}
51+
],
52+
"supported-platforms" : {
53+
"circles" : [
54+
"watchOS"
55+
],
56+
"squares" : "shared"
57+
}
58+
}

weather/src/assets/weatherify.png

1.26 MB
Loading
Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { ResolvedTheme, ThemePreference } from "../types/weather";
2+
import weatherifyLogo from "../assets/weatherify.png";
23

34
type TopActionsBarProps = {
45
resolvedTheme: ResolvedTheme;
@@ -8,28 +9,32 @@ type TopActionsBarProps = {
89

910
export const TopActionsBar = ({ resolvedTheme, themePreference, onToggleTheme }: TopActionsBarProps) => {
1011
return (
11-
<div className="flex flex-wrap items-center justify-end gap-2">
12-
<a
13-
href="https://www.tekbyte.net"
14-
target="_blank"
15-
rel="noreferrer"
16-
className="rounded-xl border border-[#7ba2c65c] px-3 py-2 text-sm font-semibold text-weather-ink transition hover:bg-[#ffffff94] dark:border-[#3f61808a] dark:hover:bg-[#1b344a9c]"
17-
>
18-
Blog
19-
</a>
20-
<button
21-
type="button"
22-
onClick={onToggleTheme}
23-
className="rounded-xl bg-weather-accent px-3 py-2 text-sm font-semibold text-white transition hover:brightness-110"
24-
aria-label="Toggle light and dark theme"
25-
title={
26-
themePreference === "auto"
27-
? `Auto mode (${resolvedTheme})`
28-
: `${themePreference === "dark" ? "Dark" : "Light"} mode`
29-
}
30-
>
31-
{resolvedTheme === "dark" ? "Light Theme" : "Dark Theme"}
32-
</button>
12+
<div className="flex items-center justify-between gap-3">
13+
<img src={weatherifyLogo} alt="Weatherify logo" width={32} height={32} className="h-8 w-8 rounded-md object-cover" />
14+
15+
<div className="ml-auto flex flex-wrap items-center justify-end gap-2">
16+
<a
17+
href="https://www.tekbyte.net"
18+
target="_blank"
19+
rel="noreferrer"
20+
className="rounded-xl border border-[#7ba2c65c] px-3 py-2 text-sm font-semibold text-weather-ink transition hover:bg-[#ffffff94] dark:border-[#3f61808a] dark:hover:bg-[#1b344a9c]"
21+
>
22+
Blog
23+
</a>
24+
<button
25+
type="button"
26+
onClick={onToggleTheme}
27+
className="rounded-xl bg-weather-accent px-3 py-2 text-sm font-semibold text-white transition hover:brightness-110"
28+
aria-label="Toggle light and dark theme"
29+
title={
30+
themePreference === "auto"
31+
? `Auto mode (${resolvedTheme})`
32+
: `${themePreference === "dark" ? "Dark" : "Light"} mode`
33+
}
34+
>
35+
{resolvedTheme === "dark" ? "Light Theme" : "Dark Theme"}
36+
</button>
37+
</div>
3338
</div>
3439
);
3540
};

weather/src/utils/rateLimit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { LookupWindow } from "../types/weather";
22

3-
const LOOKUP_LIMIT = 1000;
3+
const LOOKUP_LIMIT = 500;
44
const LIMIT_WINDOW_MS = 60 * 60 * 1000;
55
const LOOKUP_STORAGE_KEY = "weatherify.lookup-window.v2";
66

0 commit comments

Comments
 (0)