From 62d1cb490b20675b49cd4811059ee016eb9362b2 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Tue, 5 Dec 2023 20:58:53 +0100 Subject: [PATCH] add: custom icon font --- .../sharkey-icons/custom-sharkey-icons.svg | Bin 0 -> 936 bytes .../sharkey-icons/custom-sharkey-icons.ttf | Bin 0 -> 1644 bytes .../sharkey-icons/custom-sharkey-icons.woff | Bin 0 -> 1088 bytes .../assets/fonts/sharkey-icons/style.css | 27 ++++++++++++++++++ .../backend/src/server/web/views/base.pug | 1 + .../src/components/MkVisitorDashboard.vue | 2 +- packages/frontend/src/ui/_common_/common.ts | 1 + 7 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.svg create mode 100644 packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.ttf create mode 100644 packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.woff create mode 100644 packages/backend/assets/fonts/sharkey-icons/style.css diff --git a/packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.svg b/packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.svg new file mode 100644 index 0000000000000000000000000000000000000000..c5f79a98615e2d27db8a6b6a4a5efad6c67264a0 GIT binary patch literal 936 zcmZ{i+iuh_5QgvfDF!2PH*1gW#0ex@iMCWo94b*jT!tjwjmTjYhiNH`BOOe(CD<&=&GZvnrbQ z+H=)4=b>v#QUCPIG@##A^N;q3T|JFnz;2qmJFJ=;ye&mSIy4F;cwN;kJnV+9KmO0) z=h!VC_w9`BaPI(>uiJ4ch0Pdh(>|QgXd%NGo%h|i#chAw@BZ!&tXUQJ$ry302L2)O z-U7H?JvDrO@jQ30*uE6+ZJGl)>J?gpR)eb1C{UOx$T3Sn6D9_=Ln0R!7qU7<(wL;k z=`6%P)`9|SAi4w-U=vahTpT2XCIzBAF2MzY3n#eVv54ax3}})RtgDH@fHshWu|R3B zL#)Yy<@>Uaau_adAvYM#j?WIX%8_!z3gpH{hm_5@OBjl*LP`?QNrF13xH=w&ELtR1 zF#}A)oK(QcX41*Yc*&cbV-eI9EK9cVgE-cE<(v7lfYOsEf)0j&Px_fS9&I=hQ6Lx$(JDP(-PMR@j`)i2Z#@UZ{@ literal 0 HcmV?d00001 diff --git a/packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.ttf b/packages/backend/assets/fonts/sharkey-icons/custom-sharkey-icons.ttf new file mode 100644 index 0000000000000000000000000000000000000000..f4d6d406b8eefd56f73d876a0fa6e4f348948480 GIT binary patch literal 1644 zcmc&!O-~b16g{ug4qr78r3HkTkKN6w(czIe!l)&WlJ7V%zB_i})%h!cI88p8$XE+_txS;owZ${UZ5a~sJ!Q<=h&3K-;% z$Q$PEgoQ~WD1N?bGuF}qj^GgO`^dGdl}UEyk1x^w6!7d>u=9oVrORu8Z-e$IWNz#q zZoPeevHsvX>O2&HwVUT&ejN=Mq9}^w)hL^tIgS!33&e7z&CTm5UJS}?*`%Xzv>{2^ zga_gVe5e-3#0>eUJFcSz*W?6WjpOI|enkXhGb7U&f(1*gmR1oF#gdH9ji3^u9ND>7 zP6RTFHrHpEiu7)S7xF)-9EB61#lIt)GnVdE*5u;c_DYHjyqu5Y>b@$*&D!7M@=pEj ztpDLJ&z!=&EuW07=)!)WE6~y2qxPtV=xuvP;ezLAg^$k9x#V~YzmmWGB z;#)T!7y*M%E8A|bzhUBxfBr~=xOA(w#=rQgwY5zTu<6bQ`ElF*fdY-tUF_k_KIdYE z_u++$y=WBOF7}~LjJsH+eqEj(Zw(cBcFNd;?KtdW1ye}7Se~zsF7_cP4!BrFNL)k$ zi^!t@8yT2HDW2&Z=8(iPd75?`S?WkE<_mVl%%`l}Tyoh=C+sZM-%R+yGwv)@fE;s} zvd2L@gc&6We2fq~HgC@KZSGBZX0hP%7Cx&g&}fP6VH z)@0!F57svVisb922cu3*0koHy2gnDxS%JZm!8R{3Hx($R1LS`N znqi_+>|0TgUt9tV7Zsow$PRgnNR_Di-H@s*MUUdF&216JN`+uMc zP&k526$4@>AdeXc85vl>JRkwmo060;=fHte2M)eCJmc7b0}uF??lI9*{6++o=!KtdpR!7a+wQ%9CSy55DW@Qy-&D!<9?<2Rj zhsLgH9v)rY`ugW zHZLnG{4^zQ!nA1@g;<$%+1MC#ugV64!!03!;Zc9^`|u;5Z`Y(gNK0a91c!ZQE?e%g z)ji>jF??(rOc-L1b6#Q|OaiS2uWT;)!F zmaII}TiIiim=>pDap}S%%LgvjW-Q;P%=xnJ%lnl}gJou4laJYayQQ|WDD+|W%6gVM zi|KpseJfAU-mj{D@zAu^SNof5c0a#l^mMLPsO^fz^|zPu-@f$BGfVv2_D0q7vD0?j zoSkY>{C#SV { os.pageWindow('/about-sharkey'); }, diff --git a/packages/frontend/src/ui/_common_/common.ts b/packages/frontend/src/ui/_common_/common.ts index 9baf5861d7..7a3f643561 100644 --- a/packages/frontend/src/ui/_common_/common.ts +++ b/packages/frontend/src/ui/_common_/common.ts @@ -112,6 +112,7 @@ export function openInstanceMenu(ev: MouseEvent) { } : undefined, { type: 'link', text: i18n.ts.aboutMisskey, + icon: 'sk-icons sk-shark ph-bold', to: '/about-sharkey', }], ev.currentTarget ?? ev.target, { align: 'left',