File tree Expand file tree Collapse file tree
apps/site/components/Common
packages/ui-components/src/Icons/PartnerLogos Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ const getPartners = async (
3333
3434const renderSmallPartner = ( partner : Partner ) => {
3535 const Logo = PartnerLogos [ partner . id ] ;
36+ const PartnerIcon = 'Favicon' in Logo ? Logo . Favicon : null ;
37+
38+ if ( ! PartnerIcon ) {
39+ return null ;
40+ }
3641
3742 return (
3843 < PartnerButton
@@ -42,7 +47,7 @@ const renderSmallPartner = (partner: Partner) => {
4247 href = { partner . href }
4348 data-tooltip = { partner . name }
4449 >
45- < Logo . Favicon />
50+ < PartnerIcon />
4651 </ PartnerButton >
4752 ) ;
4853} ;
Original file line number Diff line number Diff line change 5959 justify-end
6060 lg:ml-8;
6161}
62+
63+ .oramaLogo {
64+ @apply h-3
65+ w-auto
66+ text-neutral-900
67+ dark:text-neutral-100;
68+ }
Original file line number Diff line number Diff line change @@ -5,17 +5,13 @@ import {
55 ArrowDownIcon ,
66 ArrowUpIcon ,
77} from '@heroicons/react/24/solid' ;
8- import Image from 'next/image ' ;
8+ import OramaLogo from '@node-core/ui-components/Icons/PartnerLogos/Orama/Logo ' ;
99import { useTranslations } from 'next-intl' ;
10- import { useTheme } from 'next-themes' ;
1110
1211import styles from './index.module.css' ;
1312
1413export const Footer = ( ) => {
1514 const t = useTranslations ( ) ;
16- const { resolvedTheme } = useTheme ( ) ;
17-
18- const oramaLogo = `https://website-assets.oramasearch.com/orama-when-${ resolvedTheme } .svg` ;
1915
2016 return (
2117 < div className = { styles . footer } >
@@ -54,12 +50,7 @@ export const Footer = () => {
5450 className = { styles . poweredByLink }
5551 >
5652 < small > { t ( 'components.search.poweredBy' ) } </ small >
57- < Image
58- src = { oramaLogo }
59- alt = { t ( 'components.search.poweredBy' ) }
60- width = "62"
61- height = "12"
62- />
53+ < OramaLogo className = { styles . oramaLogo } />
6354 </ a >
6455 </ div >
6556 </ div >
Original file line number Diff line number Diff line change 1+ import classNames from 'classnames' ;
2+
3+ import type { FC , SVGProps } from 'react' ;
4+
5+ const Orama : FC < SVGProps < SVGSVGElement > > = ( { className, ...props } ) => (
6+ < svg
7+ xmlns = "http://www.w3.org/2000/svg"
8+ viewBox = "1580 680 2900 460"
9+ fill = "none"
10+ aria-hidden = "true"
11+ { ...props }
12+ className = { classNames ( 'h-3 w-auto' , className ) }
13+ >
14+ < path
15+ fill = "currentColor"
16+ d = "M4188.21 1128.75c73.6 0 142.18-30.11 153.05-76.94 3.35 30.11 20.07 52.69 44.33 64.39 21.74 10.88 48.51 12.55 74.43 2.51v-75.27c-10.87 2.51-22.58 3.35-31.78-4.18s-15.89-24.25-15.89-55.196V836.032c0-91.161-68.58-148.032-188.17-148.032-103.71 0-182.33 42.653-192.36 107.051l80.29 23.418c6.69-32.617 45.99-55.199 107.05-55.199 58.54 0 104.54 19.236 104.54 51.017 0 30.108-41.82 44.326-145.52 51.853-98.69 7.527-158.91 55.198-158.91 132.141 0 76.109 59.38 130.469 168.94 130.469m0-74.43c-49.34 0-79.45-20.91-79.45-55.202 0-32.618 28.44-55.199 74.43-58.544 77.78-5.018 125.46-14.218 141.35-32.617 0 88.652-56.88 146.363-136.33 146.363M3766.14 690.79c-64.86 0-123.48 30.584-152.39 77.637-22.67-49.405-74.25-76.853-129.74-77.637-55.48 0-102.37 28.232-127.38 72.932v-61.169h-84.41v415.327h85.97V890.764c0-72.147 43.77-119.2 106.29-119.2 59.39 0 96.9 43.916 96.9 116.848v229.468h85.97V889.196c0-71.363 42.99-117.632 105.51-117.632 58.61 0 96.12 40.779 96.12 115.279v231.037h85.97V872.727c0-55.679-15.63-100.379-46.89-132.532-30.48-32.937-71.12-49.405-121.92-49.405M1828.97 1128.75c133.82 0 224.14-90.32 224.14-223.302 0-132.142-88.65-216.612-224.14-216.612-135.48 0-224.97 85.307-224.97 216.612 0 132.982 92 223.302 224.97 223.302m0-80.29c-80.28 0-135.48-59.378-135.48-143.012 0-82.798 53.52-136.323 135.48-136.323 82.8 0 134.66 53.525 134.66 136.323 0 84.47-54.37 143.012-134.66 143.012M2448.54 688c-69.41 0-128.79 28.435-165.59 76.107v-70.253h-127.12v72.762h125.45c-25.09 33.453-39.31 76.106-39.31 125.45v153.054h-83.63v72.76h282.68v-72.76h-108.73V889.557c0-66.907 51.02-117.087 116.25-117.087 52.69 0 86.98 34.29 97.02 76.943l81.96-29.272C2609.96 740.689 2543.05 688 2448.54 688M2892.85 1128.75c73.6 0 142.18-30.11 153.05-76.94 3.34 30.11 20.07 52.69 44.32 64.39 21.75 10.88 48.51 12.55 74.44 2.51v-75.27c-10.87 2.51-22.58 3.35-31.78-4.18s-15.89-24.25-15.89-55.196V836.032c0-91.161-68.58-148.032-188.18-148.032-103.7 0-182.32 42.653-192.36 107.051l80.29 23.418c6.69-32.617 46-55.199 107.05-55.199 58.55 0 104.55 19.236 104.55 51.017 0 30.108-41.82 44.326-145.53 51.853-98.69 7.527-158.9 55.198-158.9 132.141 0 76.109 59.38 130.469 168.94 130.469m0-74.43c-49.35 0-79.45-20.91-79.45-55.202 0-32.618 28.43-55.199 74.43-58.544 77.78-5.018 125.45-14.218 141.34-32.617 0 88.652-56.87 146.363-136.32 146.363"
17+ />
18+ </ svg >
19+ ) ;
20+
21+ export default Orama ;
Original file line number Diff line number Diff line change 1+ import Logo from './Logo' ;
2+
3+ export { Logo } ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import * as MACSTADIUM from './MacStadium';
1111import * as MICROSOFT from './Microsoft' ;
1212import * as NODESOURCE from './NodeSource' ;
1313import * as OPENSSF from './OpenSSF' ;
14+ import * as ORAMA from './Orama' ;
1415import * as RACKSPACE from './Rackspace' ;
1516import * as SCALEWAY from './Scaleway' ;
1617import * as SENTRY from './Sentry' ;
@@ -31,6 +32,7 @@ export {
3132 MICROSOFT ,
3233 NODESOURCE ,
3334 OPENSSF ,
35+ ORAMA ,
3436 RACKSPACE ,
3537 SCALEWAY ,
3638 SENTRY ,
You can’t perform that action at this time.
0 commit comments