Skip to content

Commit

Permalink
Merge pull request #1238 from milvus-io/preview
Browse files Browse the repository at this point in the history
Preview
  • Loading branch information
shanghaikid authored Nov 1, 2023
2 parents 6ea0017 + 644377d commit f365277
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 37 deletions.
3 changes: 1 addition & 2 deletions src/components/footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import clsx from 'clsx';
import { Link } from 'gatsby-plugin-react-i18next';
import {
faGithub,
faTwitter,
faYoutube,
faDiscord,
faXTwitter
faXTwitter,
} from '@fortawesome/free-brands-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import * as styles from './index.module.less';
Expand Down
33 changes: 33 additions & 0 deletions src/images/community/lunch-learn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions src/pages/community/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Layout from '../../components/layout';
import SEO from '../../components/seo';
import Seo from '../../components/seo';
import * as classes from './index.module.less';
import { graphql } from 'gatsby';
import { useI18next } from 'gatsby-plugin-react-i18next';
Expand All @@ -21,8 +21,7 @@ import videoIcon from '../../images/community/icons/video.svg';
import CustomLink from '../../components/customLink';
import { DISCORD_INVITE_URL } from '../../consts';

const OFFICE_HOUR_REGISTER_LINK =
'https://us02web.zoom.us/meeting/register/tZ0pcO6vrzsuEtVAuGTpNdb6lGnsPBzGfQ1T#/registration';
const OFFICE_HOUR_REGISTER_LINK = 'https://discord.gg/RjNbk8RR4f';

const CalendarIcon = () => (
<svg
Expand Down Expand Up @@ -134,7 +133,7 @@ export default function CommunityPage({ data, pageContext }) {

return (
<Layout darkMode={false} t={t} version={version}>
<SEO
<Seo
title="Milvus Community"
lang={language}
description="Milvus Community · Vector Database built for scalable similarity search"
Expand All @@ -158,20 +157,20 @@ export default function CommunityPage({ data, pageContext }) {
<div className={classes.bgWrapper}></div>
</div>
<div className={classes.rightPart}>
<h2>Milvus Community Office Hours</h2>
<h2>Milvus Community Lunch and Learn</h2>
<p className={classes.desc}>
Share your latest Milvus project with the community, hosted by
the Zilliz team.
</p>
<p className={classes.date}>
<CalendarIcon />
Every Tuesday 1:30 Pacific Time
Every Tuesday from 12-12:30 PM PST
</p>
<CustomLink
className={classes.registerBtn}
href={OFFICE_HOUR_REGISTER_LINK}
>
Register now
Join now
<ArrowRightAltIcon />
</CustomLink>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/community/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

.officeHourWrapper {
display: flex;
background-color: #030c34;
background: linear-gradient(258.69deg, #654dff -7.73%, #010025 102.81%);
border-radius: 12px;

@media @tablet, @phone {
Expand All @@ -93,7 +93,7 @@
}

.bgWrapper {
background-image: url(../../images/community/office-hours.svg);
background-image: url(../../images/community/lunch-learn.svg);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
Expand Down
45 changes: 21 additions & 24 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ import shein from '../images/brands/shein.png';
import regeneron from '../images/brands/regeneron.png';
import newRelic from '../images/brands/new-relic.png';

import CustomIconLink from '../components/customIconLink';
import Seo from '../components/seo';
import SvgIcon from '@mui/material/SvgIcon';
import { findLatestVersion } from '../utils';
import './index.less';
import { SLACK_INVITE_URL } from '../consts';
// local css module
import * as styles from './index.module.less';

Expand Down Expand Up @@ -200,27 +197,27 @@ const IndexPage = ({ data, pageContext }) => {
});
};

const communityLinks = [
{ name: 'Slack', to: SLACK_INVITE_URL },
{ name: 'Github', to: 'https://github.com/milvus-io/milvus' },
];
// const communityLinks = [
// { name: 'Slack', to: SLACK_INVITE_URL },
// { name: 'Github', to: 'https://github.com/milvus-io/milvus' },
// ];

const ExternalLinkIcon = props => {
return (
<SvgIcon
viewBox="0 0 12 12"
style={{ width: '15px', height: '15px' }}
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M9.84623 1.30028H1.15384L1.15384 0.300279L11.0533 0.300279L11.5533 0.30028L11.5533 0.800279L11.5533 10.6998L10.5533 10.6998L10.5533 2.00738L0.80029 11.7604L0.0931833 11.0533L9.84623 1.30028Z"
fill="white"
/>
</SvgIcon>
);
};
// const ExternalLinkIcon = props => {
// return (
// <SvgIcon
// viewBox="0 0 12 12"
// style={{ width: '15px', height: '15px' }}
// {...props}
// >
// <path
// fillRule="evenodd"
// clipRule="evenodd"
// d="M9.84623 1.30028H1.15384L1.15384 0.300279L11.0533 0.300279L11.5533 0.30028L11.5533 0.800279L11.5533 10.6998L10.5533 10.6998L10.5533 2.00738L0.80029 11.7604L0.0931833 11.0533L9.84623 1.30028Z"
// fill="white"
// />
// </SvgIcon>
// );
// };

const version = findLatestVersion(allVersion.nodes);

Expand Down Expand Up @@ -256,7 +253,7 @@ const IndexPage = ({ data, pageContext }) => {
<HomeFeatures t={t} />
<HomeCode t={t} version={version} />
<Attu t={t} />
{/*
{/*
<section className={`${styles.community} col-4 col-8 col-12`}>
<p className={styles.communityTitle}>
{t('v3trans.main.communitytitle')}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/milvus-demos/reverse-image-search.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect, useCallback, useRef } from 'react';
import React, { useState, useCallback, useRef } from 'react';
import Header from '../../components/header';
import Seo from '../../components/seo';
import {
Expand All @@ -7,7 +7,6 @@ import {
} from '../../utils/demo-helper';
import Masonry from '../../components/demoComponents/masonry';
import { search } from '../../http/imageSearch';
import DemoImg from '../../images/demos/demo.jpg';
import UploaderHeader from '../../components/demoComponents/uploader';
import * as styles from './demo.module.less';
import { Link, useI18next } from 'gatsby-plugin-react-i18next';
Expand Down

0 comments on commit f365277

Please sign in to comment.