Skip to content

Commit b189d5d

Browse files
committed
feat: add Back.webp image and update website links to reflect Enough Aashuu branding
1 parent fd5b6f6 commit b189d5d

5 files changed

Lines changed: 45 additions & 60 deletions

File tree

public/Back.webp

582 KB
Loading

src/app/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ const tools = [
4444
href: "/qr-code-generator",
4545
color: "from-cyan-600 to-blue-500",
4646
},
47-
// {
48-
// name: "IconLogo",
49-
// description: "Create icon-based logos with a full studio workflow and quick exports.",
50-
// icon: Shapes,
51-
// href: "/iconlogo",
52-
// color: "from-orange-600 to-amber-500",
53-
// },
47+
{
48+
name: "IconLogo",
49+
description: "Create icon-based logos with a full studio workflow and quick exports.",
50+
icon: Shapes,
51+
href: "/iconlogo",
52+
color: "from-orange-600 to-amber-500",
53+
},
5454
];
5555

5656
export default function LandingPage() {

src/iconlogo/features/editor/AppShell.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ export function AppShell({
6868
animate="visible"
6969
className="absolute bottom-4 right-4 z-50 flex flex-col gap-2 items-end"
7070
>
71-
<motion.div variants={itemVariants}>
71+
{/* <motion.div variants={itemVariants}>
7272
<Tooltip delay={300}>
7373
<Tooltip.Trigger>
7474
<a
75-
href="https://peerlist.io/aashuu/project/enough-aashuu"
75+
href="https://enough.aashuu.tech/"
7676
target="_blank"
7777
rel="noreferrer"
78-
data-umami-event="click enough-aashuu"
78+
data-umami-event="click enoughaashuu"
7979
>
8080
<img
8181
src="/enough.webp"
82-
alt="enough aashuu"
82+
alt="Enough Aashuu"
8383
width={40}
8484
height={40}
8585
className="rounded-xl border-2 dark:border"
@@ -90,7 +90,7 @@ export function AppShell({
9090
<p>Discover the other tools.</p>
9191
</Tooltip.Content>
9292
</Tooltip>
93-
</motion.div>
93+
</motion.div> */}
9494
<motion.div variants={itemVariants}>
9595
<ShareButton />
9696
</motion.div>

src/iconlogo/features/editor/FABs.tsx

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import { Icon } from "@iconify/react";
44
import { motion, type Variants } from "framer-motion";
55
import Image from "next/image";
66
import { useState } from "react";
7-
import { trackEvent } from "#/lib/analytics";
8-
import { useChangelogStatus } from "#/queries/changelog/use-changelog-status";
9-
import { InfoModal } from "./InfoModal";
107

118
const FEEDBACK_URL = "https://x.com/enoughaashuu";
129
const ICECREAM_URL = "https://buymeacoffee.com/aashuu";
10+
const WEBSITE_URL = "https://enough.aashuu.tech/";
1311

1412
const containerVariants: Variants = {
1513
hidden: { opacity: 0 },
@@ -29,22 +27,7 @@ const itemVariants: Variants = {
2927
};
3028

3129
export function FABs() {
32-
const [isOpen, setIsOpen] = useState(false);
33-
const [defaultTab, setDefaultTab] = useState<string | undefined>();
34-
const [highlightLatest, setHighlightLatest] = useState(false);
35-
const { hasNew, markSeen } = useChangelogStatus();
36-
37-
function openInfo() {
38-
const wasNew = hasNew;
39-
setDefaultTab(wasNew ? "changelog" : undefined);
40-
setHighlightLatest(wasNew);
41-
if (wasNew) markSeen();
42-
setIsOpen(true);
43-
trackEvent("open info", {
44-
tab: wasNew ? "changelog" : "about",
45-
has_new: wasNew,
46-
});
47-
}
30+
const [websiteHovered, setWebsiteHovered] = useState(false);
4831

4932
return (
5033
<motion.div
@@ -121,21 +104,27 @@ export function FABs() {
121104
<motion.div variants={itemVariants}>
122105
<Tooltip delay={0}>
123106
<Tooltip.Trigger>
124-
<Button
125-
aria-label="Show info"
126-
onPress={openInfo}
127-
isIconOnly
128-
variant="ghost"
129-
className="relative"
107+
<a
108+
href={WEBSITE_URL}
109+
target="_blank"
110+
rel="noreferrer"
111+
data-umami-event="click enough website"
112+
onMouseEnter={() => setWebsiteHovered(true)}
113+
onMouseLeave={() => setWebsiteHovered(false)}
130114
>
131-
<Icon icon="lucide:info" width={28} height={28} />
132-
{hasNew && (
133-
<span className="absolute top-1 right-1 h-2 w-2 rounded-full bg-red-500" />
134-
)}
135-
</Button>
115+
<Button isIconOnly variant="ghost" aria-label="Open Enough Aashuu website">
116+
<Image
117+
src="/enough.webp"
118+
alt="enough aashuu"
119+
width={28}
120+
height={28}
121+
className="h-7 w-7 rounded-full"
122+
/>
123+
</Button>
124+
</a>
136125
</Tooltip.Trigger>
137126
<Tooltip.Content placement="left">
138-
<p>About</p>
127+
<p>{websiteHovered ? "Visit enough.aashuu.tech" : "Open website"}</p>
139128
</Tooltip.Content>
140129
</Tooltip>
141130
</motion.div>
@@ -162,12 +151,6 @@ export function FABs() {
162151
</Tooltip>
163152
</motion.div>
164153

165-
<InfoModal
166-
isOpen={isOpen}
167-
onClose={() => setIsOpen(false)}
168-
defaultTab={defaultTab}
169-
highlightLatest={highlightLatest}
170-
/>
171154
</motion.div>
172155
);
173156
}

src/iconlogo/features/editor/MobileTopBar.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { Button, Dropdown, Label } from "@heroui/react";
22
import { Icon } from "@iconify/react";
3+
import Image from "next/image";
34
import { useAnimate } from "framer-motion";
4-
import { useState } from "react";
55
import { exportSvg } from "#/commands/export/export-svg";
66
import { exportPng } from "#/commands/export/export-png";
77
import { exportIco } from "#/commands/export/export-ico";
88
import { randomizeLogo } from "#/commands/logo/randomize-logo";
99
import { trackEvent } from "#/lib/analytics";
10-
import { InfoModal } from "./InfoModal";
10+
11+
const WEBSITE_URL = "https://enough.aashuu.tech/";
1112

1213
export function MobileTopBar() {
1314
const [scope, animate] = useAnimate();
14-
const [infoOpen, setInfoOpen] = useState(false);
1515

1616
const handleAction = (key: React.Key) => {
1717
if (key === "svg") void exportSvg();
@@ -34,17 +34,21 @@ export function MobileTopBar() {
3434
};
3535

3636
return (
37-
<>
3837
<div className="fixed top-0 inset-x-0 z-50 flex items-center justify-between px-4 pt-4 md:hidden">
39-
<button type="button" onClick={() => setInfoOpen(true)}>
40-
<img
41-
src="/iconlogo/logo512.png"
42-
alt="iconlogo.dev"
38+
<a
39+
href={WEBSITE_URL}
40+
target="_blank"
41+
rel="noreferrer"
42+
aria-label="Open Enough Aashuu website"
43+
>
44+
<Image
45+
src="/Back.webp"
46+
alt="enough aashuu"
4347
width={40}
4448
height={40}
4549
className="rounded-xl"
4650
/>
47-
</button>
51+
</a>
4852
<div className="flex items-center gap-2">
4953
<Button
5054
isIconOnly
@@ -77,7 +81,5 @@ export function MobileTopBar() {
7781
</Dropdown>
7882
</div>
7983
</div>
80-
<InfoModal isOpen={infoOpen} onClose={() => setInfoOpen(false)} />
81-
</>
8284
);
8385
}

0 commit comments

Comments
 (0)