txtdot/packages/server/templates/big_badge.ejs
Artemy Egorov 572531a02d
Dev (#207)
* feat: big badge configuration

* fix: remove google fonts

* fix(plugins, server): remove cdn

* ci: fix format ignore

* feat(server): json configuration

* feat: add search route for adding in browser

* fix: add arm arch

* fix: docker action

* fix: engines fallback

* doc: change logo

* doc: fix logo margin

* doc: update version

* doc: change layout

* dev: add dependabot groups

* dev: fix dependabot and format
2024-07-24 07:45:59 +00:00

53 lines
4.3 KiB
Plaintext

<%
const version = config.package.version;
const engines_count = config.plugin.engines.length;
const middlewares_count = config.plugin.middlewares.length;
const search = !!config.env.third_party.searx_url ? 'enabled' : 'disabled'
%>
<svg width="550" height="240" viewBox="0 0 550 240" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect width="550" height="240" rx="45" fill="#9D9D9D"/>
<rect x="116" y="11" width="423" height="66" rx="33" fill="#606060"/>
<rect x="11" y="87" width="528" height="66" rx="33" fill="#606060"/>
<rect x="18" y="92" width="110" height="56" rx="28" fill="#0B79D5"/>
<rect x="11" y="163" width="528" height="66" rx="33" fill="#606060"/>
<g clip-path="url(#clip0_2_2)">
<mask id="mask0_2_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="11" y="11" width="181" height="66">
<path d="M158.877 11H44.123C25.8297 11 11 25.7746 11 44C11 62.2254 25.8297 77 44.123 77H158.877C177.17 77 192 62.2254 192 44C192 25.7746 177.17 11 158.877 11Z" fill="white"/>
</mask>
<g mask="url(#mask0_2_2)">
<path d="M158.877 11H44.123C25.8297 11 11 25.7746 11 44C11 62.2254 25.8297 77 44.123 77H158.877C177.17 77 192 62.2254 192 44C192 25.7746 177.17 11 158.877 11Z" fill="#222222"/>
<path d="M60.2479 60.6991C61.5873 60.6991 62.8731 60.5923 64.1054 60.3788C65.3376 60.1119 66.5699 59.765 67.8021 59.338V68.2252C66.5163 68.8124 64.909 69.2928 62.9803 69.6664C61.1051 70.0401 59.0425 70.2269 56.7923 70.2269C54.167 70.2269 51.8097 69.7999 49.7202 68.9458C47.6843 68.0918 46.0503 66.6239 44.818 64.5422C43.6394 62.4605 43.05 59.5248 43.05 55.735V34.6778H37.3442V29.6336L43.934 25.6304L47.3897 16.4228H55.0243V25.7104H67.32V34.6778H55.0243V55.735C55.0243 57.3897 55.5064 58.6441 56.4708 59.4981C57.4352 60.2988 58.6942 60.6991 60.2479 60.6991ZM85.6104 47.0879L71.4663 25.7104H85.0478L93.5664 39.6418L102.165 25.7104H115.747L101.442 47.0879L116.39 69.4262H102.808L93.5664 54.454L84.3245 69.4262H70.743L85.6104 47.0879ZM141.554 60.6991C142.893 60.6991 144.179 60.5923 145.411 60.3788C146.643 60.1119 147.876 59.765 149.108 59.338V68.2252C147.822 68.8124 146.215 69.2928 144.286 69.6664C142.411 70.0401 140.348 70.2269 138.098 70.2269C135.473 70.2269 133.115 69.7999 131.026 68.9458C128.99 68.0918 127.356 66.6239 126.124 64.5422C124.945 62.4605 124.356 59.5248 124.356 55.735V34.6778H118.65V29.6336L125.24 25.6304L128.695 16.4228H136.33V25.7104H148.626V34.6778H136.33V55.735C136.33 57.3897 136.812 58.6441 137.777 59.4981C138.741 60.2988 140 60.6991 141.554 60.6991Z" fill="#EEEEEE"/>
<path d="M156.228 63.8216C156.228 61.3663 156.897 59.6582 158.237 58.6974C159.576 57.6833 161.21 57.1762 163.139 57.1762C165.014 57.1762 166.621 57.6833 167.961 58.6974C169.3 59.6582 169.97 61.3663 169.97 63.8216C169.97 66.1702 169.3 67.8783 167.961 68.9458C166.621 69.96 165.014 70.4671 163.139 70.4671C161.21 70.4671 159.576 69.96 158.237 68.9458C156.897 67.8783 156.228 66.1702 156.228 63.8216Z" fill="#33A3FF"/>
</g>
</g>
<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="25" font-weight="900" letter-spacing="0em">
<tspan x="203" y="53.0909"><%= base_url %></tspan>
</text>
<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="25" font-weight="900" letter-spacing="0em">
<tspan x="222" y="129.091">Search - <%= search %></tspan>
</text>
<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="25" font-weight="900" letter-spacing="0em">
<tspan x="35" y="129.091">v<%= version %></tspan>
</text>
<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="25" font-weight="900" letter-spacing="0em">
<tspan x="81" y="205.091">Engines: <%= engines_count %></tspan>
</text>
<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="25" font-weight="900" letter-spacing="0em">
<tspan x="277" y="205.091">Middlewares: <%= middlewares_count %></tspan>
</text>
<defs>
<clipPath id="clip0_2_2">
<rect width="181" height="66" fill="white" transform="translate(11 11)"/>
<style>
@font-face {
font-family: Inter;
src: url(static/third-party/fonts/Inter-Bold.woff2);
}
</style>
</clipPath>
</defs>
</svg>