Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions src/components/querypie-logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
import React from 'react';

/**
* QueryPie 2019 Logo SVG Component
*/
export function QueryPie2019({ width = 284, height = 60, ...props }: React.SVGProps<SVGSVGElement> & { width?: number; height?: number }) {
return (
<svg width={width} height={height} viewBox="0 0 284 60" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
<path d="M43.8116 12.0779L24.3775 0.779227C23.3597 0.194811 22.0997 0.194811 21.0819 0.779227L1.64778 12.0779C0.630035 12.6623 0 13.7338 0 14.9026V37.5C0 38.6688 0.630035 39.7403 1.64778 40.3734L21.0819 51.6721C21.5666 51.9643 22.1481 52.1104 22.7297 52.1104C23.3113 52.1104 23.8444 51.9643 24.3775 51.6721L43.8116 40.3734C44.8293 39.789 45.4594 38.7175 45.4594 37.5V14.9026C45.4594 13.7338 44.8293 12.6623 43.8116 12.0779ZM21.615 28.539C20.8396 28.9773 20.5973 29.9513 21.0334 30.7305L25.3952 38.2792C25.8799 39.1558 25.5891 40.2273 24.7167 40.763L23.4082 41.4935C23.0205 41.737 22.4874 41.737 22.0997 41.4935L9.88669 34.3831C9.49897 34.1396 9.20819 33.7013 9.20819 33.263V19.0909C9.20819 18.6039 9.45051 18.1656 9.88669 17.9708L22.0997 10.8604C22.2935 10.763 22.5358 10.6656 22.7782 10.6656C23.0205 10.6656 23.2143 10.7143 23.4567 10.8604L35.6696 17.9708C36.0573 18.2143 36.3481 18.6526 36.3481 19.0909V33.263C36.3481 33.75 36.1058 34.1883 35.6696 34.3831L34.3611 35.1136C33.4887 35.6007 32.4225 35.3084 31.8894 34.4318L27.5276 26.8831C27.3338 26.4935 26.9945 26.25 26.5584 26.1526C26.1707 26.0552 25.7345 26.1039 25.3468 26.2987L21.615 28.539Z" fill="currentColor"/>
<path d="M53.1167 13.539H62.9065V31.9481C62.9065 33.75 63.3427 35.211 64.215 36.2338C65.0874 37.2565 66.3959 37.7922 68.1406 37.7922C69.1584 37.7922 70.0307 37.5974 70.8061 37.2078C71.5816 36.8182 72.2116 36.3312 72.7932 35.6494C73.3263 35.0162 73.7625 34.2857 74.0048 33.4091C74.2956 32.5325 74.3925 31.6559 74.3925 30.7305V13.4903H84.0853V45.487H74.7317L74.441 42.0779C73.4232 43.2955 72.0178 44.3182 70.3215 45.0974C68.6253 45.8766 66.8321 46.3149 64.9904 46.3149C61.3072 46.3149 58.4478 45.2435 56.3154 43.052C54.1829 40.8604 53.1167 37.6461 53.1167 33.3604V13.539Z" fill="currentColor"/>
<path d="M122.42 42.0292C122.081 42.2727 121.5 42.6137 120.773 43.1494C120.046 43.6851 119.125 44.1721 117.962 44.7078C116.799 45.1948 115.442 45.6331 113.842 46.0227C112.243 46.4123 110.45 46.6071 108.414 46.6071C105.7 46.6071 103.277 46.1688 101.096 45.3409C98.9154 44.513 97.0737 43.3442 95.5713 41.8344C94.0689 40.3247 92.9058 38.5227 92.1304 36.4286C91.355 34.3344 90.9188 31.9968 90.9188 29.4156C90.9188 27.1753 91.3065 25.0325 92.0334 22.987C92.7604 20.9416 93.8751 19.0909 95.2805 17.5812C96.686 16.0227 98.3823 14.8052 100.418 13.8799C102.453 12.9545 104.78 12.4675 107.348 12.4675C109.917 12.4675 112.195 12.9059 114.133 13.8312C116.072 14.7565 117.719 16.0227 119.076 17.6299C120.433 19.237 121.403 21.1851 122.081 23.4253C122.76 25.6656 123.099 28.1493 123.099 30.8279V32.4838H100.418C100.466 34.1883 101.242 35.7468 102.696 37.013C104.149 38.3279 106.185 38.961 108.754 38.961C111.274 38.961 113.358 38.5714 114.909 37.8409C116.508 37.1104 117.623 36.4286 118.349 35.8929L122.42 42.0292ZM113.891 26.1526C113.891 25.4708 113.745 24.789 113.503 24.0585C113.212 23.3766 112.825 22.6948 112.291 22.1104C111.758 21.526 111.08 21.039 110.256 20.6494C109.432 20.2598 108.463 20.0649 107.348 20.0649C106.233 20.0649 105.216 20.2598 104.343 20.6494C103.471 21.039 102.792 21.526 102.211 22.1104C101.629 22.6948 101.193 23.3279 100.902 24.0585C100.612 24.7403 100.466 25.4708 100.466 26.1526H113.891Z" fill="currentColor"/>
<path d="M196.28 0H212.758C215.569 0 217.943 0.38961 219.93 1.21753C221.917 2.04545 223.565 3.11689 224.874 4.48053C226.182 5.84416 227.103 7.40259 227.733 9.15584C228.363 10.9091 228.654 12.7598 228.654 14.6591C228.654 17.0942 228.218 19.2857 227.394 21.0877C226.57 22.9383 225.407 24.448 224.001 25.7143C222.596 26.9318 220.948 27.8571 219.058 28.4903C217.216 29.1234 215.278 29.4643 213.242 29.4643H206.263V45.487H196.28V0ZM212.225 21.1851C214.115 21.1851 215.617 20.6007 216.732 19.4318C217.846 18.263 218.38 16.7533 218.38 14.9026C218.38 13.0033 217.798 11.4448 216.683 10.2273C215.569 9.00974 214.018 8.42532 212.128 8.42532H206.215V21.1851H212.225Z" fill="currentColor"/>
<path d="M234.954 14.8052H244.744V45.5357H234.954V14.8052Z" fill="currentColor"/>
<path d="M283.321 42.0292C282.982 42.2727 282.401 42.6137 281.674 43.1494C280.947 43.6851 280.026 44.1721 278.863 44.7078C277.7 45.1948 276.343 45.6331 274.743 46.0227C273.144 46.4123 271.351 46.6071 269.315 46.6071C266.601 46.6071 264.178 46.1688 261.997 45.3409C259.816 44.513 257.975 43.3442 256.472 41.8344C254.97 40.3247 253.807 38.5227 253.031 36.4286C252.256 34.3344 251.82 31.9968 251.82 29.4156C251.82 27.1753 252.208 25.0325 252.934 22.987C253.661 20.9416 254.776 19.0909 256.182 17.5812C257.587 16.0227 259.283 14.8052 261.319 13.8799C263.354 12.9545 265.681 12.4675 268.249 12.4675C270.818 12.4675 273.096 12.9059 275.034 13.8312C276.973 14.7565 278.62 16.0227 279.977 17.6299C281.334 19.237 282.304 21.1851 282.982 23.4253C283.661 25.6656 284 28.1493 284 30.8279V32.4838H261.319C261.367 34.1883 262.143 35.7468 263.597 37.013C265.051 38.3279 267.086 38.961 269.655 38.961C272.175 38.961 274.259 38.5714 275.81 37.8409C277.409 37.1104 278.524 36.4286 279.251 35.8929L283.321 42.0292ZM274.743 26.1526C274.743 25.4708 274.598 24.789 274.356 24.0585C274.065 23.3766 273.677 22.6948 273.144 22.1104C272.611 21.526 271.932 21.039 271.109 20.6494C270.285 20.2598 269.315 20.0649 268.201 20.0649C267.086 20.0649 266.068 20.2598 265.196 20.6494C264.324 21.039 263.645 21.526 263.063 22.1104C262.482 22.6948 262.046 23.3279 261.755 24.0585C261.464 24.7403 261.319 25.4708 261.319 26.1526H274.743Z" fill="currentColor"/>
<path d="M180.481 13.539L173.259 34.3344L165.311 13.539H155.812L168.461 45.7792L168.704 46.4123L163.857 60C163.809 60 163.809 60 163.76 60H163.857H173.356L184.164 29.6591L189.931 13.539H180.481Z" fill="currentColor"/>
<path d="M150.481 13.0519C149.851 12.9545 149.124 12.9058 148.252 12.9058C145.974 12.9058 144.132 13.3929 142.727 14.4156C141.322 15.4383 140.158 16.461 139.383 17.5325L139.044 13.4903H129.69V45.487H139.48V30C139.48 29.513 139.528 29.0747 139.577 28.6364C139.625 28.3441 139.625 28.052 139.722 27.8085C139.722 27.8085 139.722 27.8084 139.722 27.7597C139.771 27.4188 139.868 27.1266 140.013 26.7857C140.061 26.6883 140.11 26.5909 140.11 26.4935C140.207 26.2013 140.352 25.9091 140.498 25.6656C141.855 22.987 144.666 21.1364 147.913 21.1364C148.3 21.1364 148.64 21.1851 148.979 21.2338C149.657 21.3312 150.336 21.4773 150.917 21.7208C151.402 21.9156 151.887 22.1591 152.323 22.4513V13.539C151.693 13.2954 151.111 13.1493 150.481 13.0519Z" fill="currentColor"/>
<path d="M239.849 10.5195C242.74 10.5195 245.083 8.16461 245.083 5.25973C245.083 2.35486 242.74 0 239.849 0C236.958 0 234.615 2.35486 234.615 5.25973C234.615 8.16461 236.958 10.5195 239.849 10.5195Z" fill="currentColor"/>
</svg>
);
}

/**
* QueryPieLogo HTML structure as string
* Used for DOM manipulation scenarios (e.g., Redoc logo replacement)
Expand All @@ -26,13 +45,9 @@ export const QUERYPIE_LOGO_HTML = `
*/
export function QueryPieLogo() {
return (
<div>
<div style={{ display: 'flex', alignItems: 'center', gap: '7px' }}>
<img src="/icon-32.png" alt="QueryPie Logo" width={18} height={18} />
<div>
<b>QueryPie</b> <span style={{ opacity: '60%' }}>ACP</span>
</div>
</div>
<div style={{ display: 'flex', alignItems: 'center', gap: '7px' }}>
<QueryPie2019 width={85} height={18} style={{ position: 'relative', top: '2px' }} />
<span style={{ opacity: '60%' }}>ACP</span>
</div>
);
}
Expand Down