Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zilliz logo to milvus page #1866

Merged
merged 4 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions public/images/layout/lf-ai-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/images/layout/milvus-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions public/images/layout/zilliz-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 17 additions & 8 deletions src/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import SocialMedias from '../socialMedias';
import { LanguageEnum } from '@/types/localization';
import SubscribeNewsletter from '../subscribe';
import { useGlobalLocale } from '@/hooks/use-global-locale';
import { Divider } from '@mui/material';

type Props = {
classes?: {
Expand Down Expand Up @@ -126,15 +127,23 @@ const Footer = (props: Props) => {
>
<div className="flex flex-col items-center max-phone:items-start sm:items-start lg:items-start flex-shrink-0 flex-grow-0 flex-[390px]">
<img
alt="Milvus logo"
height="30"
width="131"
src="/images/milvus_logo.svg"
style={{
aspectRatio: '120/40',
objectFit: 'cover',
}}
src="/images/layout/lf-ai-logo.svg"
alt="LF_AI"
className="h-[16px] w-[auto] mb-[10px]"
/>
<div className="flex items-center gap-[8px] ">
<img
alt="Milvus"
className="h-[40px] w-[auto] max-phone:h-[30px]"
src="/images/layout/milvus-logo.svg"
/>
<span className="h-[40px] w-[1px] bg-black3"></span>
<img
src="/images/layout/zilliz-logo.svg"
alt="Zilliz"
className="h-[50px] w-[auto] max-phone:h-[40px]"
/>
</div>
<div className="flex items-center gap-[8px] mt-[12px] text-[14px] font-[400] leading-[1.5] text-black2 whitespace-nowrap flex-wrap">
<Trans
t={t}
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/DescktopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function DesktopHeader(props: Props) {
)}
>
<div className="flex items-center gap-[40px] max-[1240px]:gap-[10px]">
<LogoSection lightMode={true} />
<LogoSection />

<ul className="flex items-center list-none gap-[16px] max-[1080px]:gap-[10px]">
{menuConfigs.map(config => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@ import GitHubButton from '../githubButton';
import { useState, useEffect } from 'react';
import { getGithubStatics } from '@/http/milvus';
import { useGlobalLocale } from '@/hooks/use-global-locale';
import { ZILLIZ_OFFICIAL_WEBSITE } from '@/consts/externalLinks';

export const LogoSection = props => {
const foundationLogo = '/images/lf_logo.png';
export const LogoSection = (props: { equipment?: 'desktop' | 'tablet' }) => {
const { equipment = 'desktop' } = props;
const { getLocalePath } = useGlobalLocale();
return (
<div className={classes.logoSection}>
<Link href={getLocalePath('/')} className="inline-flex items-center">
<img src="/images/milvus_logo.svg" height={24} alt="milvus-logo" />
<img src="/images/layout/milvus-logo.svg" height={24} alt="Milvus" />
</Link>
<div className="w-[1px] h-[20px] bg-black3 mx-[8px]" />
<span className="inline-flex items-center justify-center">
<img src={foundationLogo} height={20} alt="LFAI" />
</span>
<a
href={ZILLIZ_OFFICIAL_WEBSITE}
target="_blank"
rel="noreferrer noopener"
>
<img src="/images/layout/zilliz-logo.svg" alt="Zilliz" height={30} />
</a>
</div>
);
};
Expand Down
5 changes: 5 additions & 0 deletions src/components/header/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@
margin-bottom: 24px;
}
}

.zillizLogo {
height: 24px;
width: auto;
}
7 changes: 7 additions & 0 deletions src/components/header/mobileHeader.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@

.menuIconBtn {
cursor: pointer;
padding: 0;
margin: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
}

Expand Down
Loading