Skip to content

Commit f838ec7

Browse files
committed
feat(frontend): improve icon
1 parent e29d6c1 commit f838ec7

File tree

2 files changed

+50
-11
lines changed

2 files changed

+50
-11
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import type { SVGProps } from "react";
2+
3+
const FIDOPasskeyMarkA = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
xmlSpace="preserve"
7+
style={{
8+
background: "new 0 0 216 216",
9+
}}
10+
viewBox="0 0 216 216"
11+
{...props}
12+
>
13+
<title>FIDO Passkey Mark A</title>
14+
<style>{".st2{fill-rule:evenodd;clip-rule:evenodd}"}</style>
15+
<g id="Isolation_Mode">
16+
<path
17+
d="M0 0h216v216H0z"
18+
style={{
19+
fill: "none",
20+
}}
21+
/>
22+
<path
23+
d="M172.32 96.79c0 13.78-8.48 25.5-20.29 29.78l7.14 11.83-10.57 13 10.57 12.71-17.04 22.87-12.01-12.82V125.7c-10.68-4.85-18.15-15.97-18.15-28.91 0-17.4 13.51-31.51 30.18-31.51 16.66 0 30.17 14.11 30.17 31.51zm-30.18 4.82c4.02 0 7.28-3.4 7.28-7.6 0-4.2-3.26-7.61-7.28-7.61s-7.28 3.4-7.28 7.61c-.01 4.2 3.26 7.6 7.28 7.6z"
24+
style={{
25+
fillRule: "evenodd",
26+
clipRule: "evenodd",
27+
fill: "#353535",
28+
}}
29+
/>
30+
<path
31+
d="M172.41 96.88c0 13.62-8.25 25.23-19.83 29.67l6.58 11.84-9.73 13 9.73 12.71-17.03 23.05v-85.54c4.02 0 7.28-3.41 7.28-7.6 0-4.2-3.26-7.61-7.28-7.61V65.28c16.73 0 30.28 14.15 30.28 31.6zM120.24 131.43c-9.75-8-16.3-20.3-17.2-34.27H50.8c-10.96 0-19.84 9.01-19.84 20.13v25.17c0 5.56 4.44 10.07 9.92 10.07h69.44c5.48 0 9.92-4.51 9.92-10.07v-11.03z"
32+
className="st2"
33+
/>
34+
<path
35+
d="M73.16 91.13c-2.42-.46-4.82-.89-7.11-1.86-8.65-3.63-13.69-10.32-15.32-19.77-1.12-6.47-.59-12.87 2.03-18.92 3.72-8.6 10.39-13.26 19.15-14.84 5.24-.94 10.46-.73 15.5 1.15 7.59 2.82 12.68 8.26 15.03 16.24 2.38 8.05 2.03 16.1-1.56 23.72-3.72 7.96-10.21 12.23-18.42 13.9-.68.14-1.37.27-2.05.41-2.41-.03-4.83-.03-7.25-.03z"
36+
style={{
37+
fill: "#141313",
38+
}}
39+
/>
40+
</g>
41+
</svg>
42+
);
43+
export default FIDOPasskeyMarkA;

packages/frontend/src/utilities/meta.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,19 @@ import {
2020
// FileCode2Icon,
2121
FileCodeIcon,
2222
FileIcon,
23+
FileJson2Icon,
2324
FileJsonIcon,
2425
FileTextIcon,
2526
HashIcon,
27+
Heading5Icon,
2628
KeyIcon,
2729
LinkIcon,
2830
RadarIcon,
2931
RotateCcwKeyIcon,
3032
} from "lucide-react";
3133
import { lazy } from "react";
3234
import type { RouteComponentProps } from "wouter";
35+
import FIDOPasskeyMarkA from "@/assets/fido-passkey-mark-a";
3336
import Fido2Page from "./cryptography/fido/fido2";
3437
import IpPage from "./network/ip";
3538

@@ -85,13 +88,13 @@ const utilities: UtilityMeta[] = [
8588
items: [
8689
{
8790
key: "json",
88-
icon: FileJsonIcon,
91+
icon: FileJson2Icon,
8992
title: msg`JSON Format/Validate`,
9093
page: JsonFormatterPage,
9194
},
9295
{
9396
key: "html",
94-
icon: FileCodeIcon,
97+
icon: Heading5Icon,
9598
title: msg`HTML Beautify/Minify`,
9699
page: HtmlEncoderDecoderPage,
97100
},
@@ -147,16 +150,9 @@ const utilities: UtilityMeta[] = [
147150
items: [
148151
{
149152
key: "fido",
150-
icon: KeyIcon,
153+
icon: FIDOPasskeyMarkA,
151154
title: msg`FIDO Debugger`,
152-
items: [
153-
{
154-
key: "fido2",
155-
icon: KeyIcon,
156-
title: msg`FIDO2 Authenticator`,
157-
page: Fido2Page,
158-
},
159-
],
155+
page: Fido2Page,
160156
},
161157
{
162158
key: "oath",

0 commit comments

Comments
 (0)