Skip to content

Commit

Permalink
Merge pull request #1629 from milvus-io/preview
Browse files Browse the repository at this point in the history
Preview
  • Loading branch information
shanghaikid authored Sep 14, 2024
2 parents 6b9c12f + 543deb7 commit c7deb72
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 161 deletions.
2 changes: 1 addition & 1 deletion src/blogs
Submodule blogs updated 2 files
+1 −1 package.json
+9 −9 yarn.lock
2 changes: 1 addition & 1 deletion src/components/card/solutionCard/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
width: 100%;
height: 100%;
border: 1px solid var(--color-card-border);
border-radius: 4px;
border-radius: 12px;
text-decoration: none;
color: var(--color-doc-primary);
padding: 16px 19px;
Expand Down
20 changes: 20 additions & 0 deletions src/components/icons/ArrowRightAltIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export const ArrowRightAltIcon = (props: { size?: number; color?: string }) => {
const { size = 14, color = '#00131A' } = props;
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 14 14"
fill="none"
>
<path
d="M2 7L12.7244 7M12.7244 7L7.57669 12.1477M12.7244 7L7.5767 1.85228"
stroke="#00131A"
stroke-width="1.3"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
);
};
2 changes: 1 addition & 1 deletion src/docs
Submodule docs updated 292 files
153 changes: 78 additions & 75 deletions src/pages/community.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from 'next/link';
import Layout from '@/components/layout/commonLayout';
import { useTranslation } from 'react-i18next';
import { DISCORD_INVITE_URL } from '@/consts';
import ArrowRightAltIcon from '@mui/icons-material/ArrowRightAlt';
import { ArrowRightAltIcon } from '@/components/icons/ArrowRightAltIcon';
import MailOutlineIcon from '@mui/icons-material/MailOutline';
import classes from '@/styles/community.module.less';
import pageClasses from '@/styles/responsive.module.less';
Expand Down Expand Up @@ -111,91 +111,94 @@ export default function Community() {
/>
</Head>

<section className={clsx(pageClasses.container, classes.headSection)}>
<h1 className="">{t('title')}</h1>
<div className={classes.communityPageContainer}>
<section className={clsx(pageClasses.container, classes.headSection)}>
<h1 className="">{t('title')}</h1>

<ul className={classes.mediaWrapper}>
{socialMediaList.map(v => (
<li key={v.label}>
<img src={v.imgUrl} alt={v.label} />
<p className="">{v.label}</p>
<Link href={v.href}>Join now</Link>
</li>
))}
</ul>
<ul className={classes.mediaWrapper}>
{socialMediaList.map(v => (
<li key={v.label}>
<img src={v.imgUrl} alt={v.label} />
<p className="">{v.label}</p>
<CustomButton variant="outlined" href={v.href}>
Join now
</CustomButton>
</li>
))}
</ul>

<div className={classes.officeHoursContainer}>
<div className={classes.imgWrapper}>
<img src="/images/community/event-discord.png" alt="Discord" />
</div>
<div className={classes.contentWrapper}>
<h2 className={classes.title}>{t('officeHours.title')}</h2>
<p className={classes.desc}>{t('officeHours.content')}</p>
<div className={classes.officeHoursContainer}>
<div className={classes.imgWrapper}>
<img src="/images/community/event-discord.png" alt="Discord" />
</div>
<div className={classes.contentWrapper}>
<h2 className={classes.title}>{t('officeHours.title')}</h2>
<p className={classes.desc}>{t('officeHours.content')}</p>

<CustomButton
variant="contained"
className={classes.linkBtn}
href={OFFICE_HOUR_REGISTER_LINK}
target="_blank"
>
{t('officeHours.button')}
</CustomButton>
<CustomButton
variant="contained"
className={classes.linkBtn}
href={OFFICE_HOUR_REGISTER_LINK}
target="_blank"
>
{t('officeHours.button')}
</CustomButton>
</div>
</div>
</div>
</section>

<section
className={clsx(pageClasses.container, classes.contentSection)}
>
<h2>{t('community.title')}</h2>
<h3 className={classes.sectionDesc}>{t('community.content')}</h3>
</section>

<ul className={classes.featureWrapper}>
{featureList.map(v => (
<li key={v.label}>
<img src={v.icon} alt={v.label} />
<p className={classes.label}>{v.label}</p>
<p className={classes.desc}>{v.desc}</p>
</li>
))}
</ul>
</section>
<section
className={clsx(pageClasses.container, classes.contentSection)}
>
<h2>{t('community.title')}</h2>
<h3 className={classes.sectionDesc}>{t('community.content')}</h3>

<section className={classes.resourceSection}>
<div className={clsx(pageClasses.container, classes.innerSection)}>
<h2>{t('resource')}</h2>
<ul className={classes.resourceList}>
{resourceList.map(v => (
<ul className={classes.featureWrapper}>
{featureList.map(v => (
<li key={v.label}>
<div className={classes.topContent}>
<img src={v.icon} alt={v.label} />
<p className={classes.label}>{v.label}</p>
<p className={classes.desc}>{v.desc}</p>
</div>

<Link href={v.href} className={classes.linkBtn}>
{v.btnLabel}
<ArrowRightAltIcon />
</Link>
<img src={v.icon} alt={v.label} />
<p className={classes.label}>{v.label}</p>
<p className={classes.desc}>{v.desc}</p>
</li>
))}
</ul>
</div>
</section>
</section>

<section className={classes.resourceSection}>
<div className={clsx(pageClasses.container, classes.innerSection)}>
<h2>{t('resource')}</h2>
<ul className={classes.resourceList}>
{resourceList.map(v => (
<li key={v.label}>
<div className={classes.topContent}>
<img src={v.icon} alt={v.label} />
<p className={classes.label}>{v.label}</p>
<p className={classes.desc}>{v.desc}</p>
</div>

<CustomButton variant="outlined" href={v.href}>
{v.btnLabel} <ArrowRightAltIcon />
</CustomButton>
</li>
))}
</ul>
</div>
</section>

<section
className={clsx(pageClasses.container, classes.mailListSection)}
>
<h2>{t('mail.title')}</h2>
<div className={classes.mailListWrapper}>
{mailList.map(v => (
<Link className={classes.linkBtn} href={v.href}>
<MailOutlineIcon />
<span>{v.label}</span>
</Link>
))}
</div>
</section>
<section
className={clsx(pageClasses.container, classes.mailListSection)}
>
<h2>{t('mail.title')}</h2>
<div className={classes.mailListWrapper}>
{mailList.map(v => (
<Link className={classes.linkBtn} href={v.href}>
<MailOutlineIcon fontSize="14" />
<span>{v.label}</span>
</Link>
))}
</div>
</section>
</div>
</Layout>
</main>
);
Expand Down
22 changes: 5 additions & 17 deletions src/parts/useCase/useCaseCard/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,11 @@
margin-bottom: 10px;
}

.linkButton {
display: block;
padding: 10px 20px;
margin: 0;
outline: none;
border: 1px solid #00a1ea;
color: #00a1ea;
text-align: center;
font-family: 'Roboto Mono';
font-size: 14px;
.startLinkButton {
padding: 8px 28px;
width: 100%;
.paragraph4();
font-weight: 500;
line-height: 18px;
border-radius: 19px;

&:hover {
border-color: #1493cc;
color: #1493cc;
}
justify-content: center;
}
}
11 changes: 7 additions & 4 deletions src/parts/useCase/useCaseCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import styles from './index.module.less';
import CustomButton from '@/components/customButton';

export default function UseCaseCard({ useCase }) {
const { name, logo, description, link, cta_label } = useCase;
Expand All @@ -8,14 +9,16 @@ export default function UseCaseCard({ useCase }) {
<img src={logo} alt={name} />
<p className={styles.desc}>{description}</p>
{link && (
<a
<CustomButton
href={link}
target="_blank"
rel="noreferrer"
className={styles.linkButton}
variant="outlined"
classes={{
root: styles.startLinkButton,
}}
>
{cta_label}
</a>
</CustomButton>
)}
</div>
);
Expand Down
Loading

0 comments on commit c7deb72

Please sign in to comment.