Skip to content

Commit a2e5b83

Browse files
committed
Manual cleanup of Tailwind/DaisyUI conversion
1 parent 9b706e3 commit a2e5b83

12 files changed

Lines changed: 19 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# SVG View [<img alt="Logo for SVG View" src="https://svg-viewer.fileformat.info/favicon.svg" height="96" align="right"/>](https://svg-viewer.fileformat.info/view.html?url=https%3A%2F%2Fsvg-viewer.fileformat.info%2Fimages%2Fbanner.svg&zoom=max)
1+
# SVG Viewer [<img alt="Logo for SVG View" src="https://svg-viewer.fileformat.info/favicon.svg" height="96" align="right"/>](https://svg-viewer.fileformat.info/view.html?url=https%3A%2F%2Fsvg-viewer.fileformat.info%2Fimages%2Fbanner.svg&zoom=max)
22

33
[![deploy](https://github.com/FileFormatInfo/svg-viewer/actions/workflows/gcr-deploy.yaml/badge.svg)](https://github.com/FileFormatInfo/svg-viewer/actions/workflows/gcr-deploy.yaml)
44

5-
[demo](https://svg-viewer.fileformat.info/view.html?url=https%3A%2F%2Fgithub.com%2FFileFormatInfo%2Fsvg-viewer%2Factions%2Fworkflows%2Fgcr-deploy.yaml%2Fbadge.svg&zoom=max&backUrl=https%3A%2F%2Fgithub.com%2FFileFormatInfo%2Fsvg-viewer&backText=Return+to+Github)
5+
[demo](https://svg-viewer.fileformat.info/view.html?url=https%3A%2F%2Fsvg-viewer.fileformat.info%2Ffavicon.svg&zoom=max&backUrl=https%3A%2F%2Fgithub.com%2FFileFormatInfo%2Fsvg-viewer&backText=Return+to+Github)
66

77
## Integration
88

app/components/LogoIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const LogoIcon = ({ boxSize = 40, className }: LogoIconProps) => {
88
return (
99
<img
1010
src="/favicon.svg"
11-
alt="SVG View logo"
11+
alt="SVG Viewer logo"
1212
className={className}
1313
style={{ width: size, height: size }}
1414
/>

app/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Navbar = () => {
99
<div className="navbar-start">
1010
<RemixLink to="/" className="flex items-center gap-3 no-underline">
1111
<LogoIcon boxSize={40} />
12-
<span className="text-xl font-bold">SVG View</span>
12+
<span className="text-xl font-bold">SVG Viewer</span>
1313
</RemixLink>
1414
</div>
1515
<div className="navbar-end">

app/components/ToolbarButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ToolbarButton({
2929
const nextSearchParams = new URLSearchParams(searchParams);
3030
nextSearchParams.set(param, value);
3131

32-
const activeColor = useColorModeValue("#a1a1a1", "#d4d4d4");
32+
const activeColor = useColorModeValue("#d4d4d4", "#818181");
3333
const bgColor = isActive ? activeColor : undefined;
3434

3535
const sizeClass = {
@@ -44,12 +44,12 @@ function ToolbarButton({
4444
return (
4545
<RemixLink
4646
to={`?${nextSearchParams.toString()}`}
47-
className={`btn btn-outline btn-square ${sizeClass} ${className || ""}`.trim()}
47+
className={`btn btn-outline btn-square hover:border-black join-item ${sizeClass} ${className || ""}`.trim()}
4848
aria-label={ariaLabel}
4949
title={ariaLabel}
5050
style={isActive ? { backgroundColor: bgColor } : undefined}
5151
>
52-
<TheIcon className="text-xl" color={bgColor} />
52+
<TheIcon className="text-xl" />
5353
</RemixLink>
5454
);
5555
}

app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function HydrateFallback() {
6161
color: "#1a202c",
6262
}}
6363
>
64-
Loading SVG View...
64+
Loading SVG Viewer...
6565
</div>
6666
</main>
6767
</MyLayout>

app/routes/_index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { t } from "~/utils/i18n";
88

99
export const meta: MetaFunction = () => {
1010
return [
11-
{ title: "SVG View" },
11+
{ title: "SVG Viewer" },
1212
{ name: "description", content: "View your SVG images in a variety of sizes and backgrounds" },
1313
];
1414
};

app/routes/open[.]html.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useRef } from "react";
66

77
export const meta: MetaFunction = () => {
88
return [
9-
{ title: "Open URL - SVG View" },
9+
{ title: "Open URL - SVG Viewer" },
1010
{ name: "description", content: "Select an SVG image URL to view" },
1111
];
1212
};

app/routes/view[.]html/DesktopToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const DesktopToolbar = ({ currentZoom }: IProps) => {
3131
<div className="flex items-center">
3232
<LogoIcon boxSize={40} />
3333
<span className="pl-3 text-xl font-bold">
34-
SVG View
34+
SVG Viewer
3535
</span>
3636
</div>
3737
</RemixLink>

app/routes/view[.]html/ExitButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function ExitButton({
1818
to={link}
1919
aria-label={text}
2020
title={text}
21-
className="btn btn-outline btn-square"
21+
className="btn btn-outline btn-square join-item"
2222
>
2323
<PiArrowSquareOutBold className="text-xl" />
2424
</RemixLink>

app/routes/view[.]html/IconList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function IconList({ display, imageCss, url }: IProps) {
4242

4343
return (
4444
<div
45-
className="absolute top-1 flex flex-col gap-4 lg:static lg:flex-row lg:gap-12"
45+
className="flex flex-col gap-4 lg:static lg:flex-row lg:gap-12 items-center"
4646
style={{ display }}
4747
>
4848
{sizes.map((size) => (

0 commit comments

Comments
 (0)