Skip to content

Commit f4a291e

Browse files
committed
add more badges
1 parent 4a36894 commit f4a291e

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

app/projects/hybrid/page.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AuthorList } from '@/components/utils'
2-
import { BadgeContainer, GithubBadge, ArxivBadge } from '@/components/badges'
2+
import { BadgeContainer, GithubBadge, ArxivBadge, PdfBadge, VenueBadge } from '@/components/badges'
33

44
# Learning High-Order Relationships of Brain Regions
55

@@ -15,8 +15,10 @@ import { BadgeContainer, GithubBadge, ArxivBadge } from '@/components/badges'
1515
/>
1616

1717
<BadgeContainer>
18+
<VenueBadge venue="ICML 2024" />
1819
<GithubBadge link="https://github.com/Graph-and-Geometric-Learning/HyBRiD" />
1920
<ArxivBadge link="https://arxiv.org/abs/2312.02203" />
21+
<PdfBadge link="https://arxiv.org/pdf/2312.02203" />
2022
</BadgeContainer>
2123

2224
## Introduction

components/badges.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Chip } from '@nextui-org/chip';
2-
import { GithubIcon, ArxivIcon } from './icons';
2+
import { GithubIcon, ArxivIcon, PaperIcon } from './icons';
33

44

55
type BadgeProps = {
@@ -34,6 +34,15 @@ export function ArxivBadge({ link }: { link: string }) {
3434
return <Badge link={link} icon={<ArxivIcon />} label="ArXiv" />;
3535
}
3636

37+
export function PdfBadge({ link }: { link: string }) {
38+
return <Badge link={link} icon={<PaperIcon />} label="Paper" />;
39+
}
40+
41+
// The VenueBadge component is used to display the venue of a paper.
42+
export function VenueBadge ({ venue }: { venue: string }) {
43+
return <Badge link="#" icon={null} label={venue} />;
44+
}
45+
3746
import { ReactNode } from 'react';
3847

3948
export const BadgeContainer = ({ children }: { children: ReactNode }) => {

components/icons.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,28 @@ export const ArxivIcon: React.FC<IconSvgProps> = ({
115115
);
116116
}
117117

118+
119+
export const PaperIcon: React.FC<IconSvgProps> = ({
120+
size = 22,
121+
width,
122+
height,
123+
...props
124+
}) => {
125+
return (
126+
<svg
127+
height={size || height}
128+
viewBox="0 0 98.63 122.88"
129+
width={size || width}
130+
{...props}
131+
>
132+
<path
133+
d="M98.63,35.57A8.37,8.37,0,0,0,96,32.12L64.39,1.32A3.53,3.53,0,0,0,61.63,0H6.43A6.42,6.42,0,0,0,0,6.43v110a6.42,6.42,0,0,0,6.43,6.43H92.21a6.42,6.42,0,0,0,6.4-6.43V63.37h0V35.57Zm-33.43-23L86.68,32.69H65.2V12.57ZM49.75,115.7H7.18V7.15H58V36.26a3.61,3.61,0,0,0,3.61,3.61H91.45v23.5h0V115.7ZM20.47,53a2.58,2.58,0,0,1,1.87-.88H64.53a2.55,2.55,0,0,1,1.91.87,3,3,0,0,1,.76,2,3.08,3.08,0,0,1-.77,2,2.57,2.57,0,0,1-1.9.88H22.37a2.56,2.56,0,0,1-1.91-.87,3.1,3.1,0,0,1,0-4.08Zm0,40.77a2.53,2.53,0,0,1,1.9-.88H76.25a2.55,2.55,0,0,1,1.91.88,3.1,3.1,0,0,1,0,4.08,2.59,2.59,0,0,1-1.92.86H22.37a2.59,2.59,0,0,1-1.91-.86,3.1,3.1,0,0,1,0-4.08ZM76.25,72.52a2.59,2.59,0,0,1,1.91.88,3.1,3.1,0,0,1,0,4.08,2.57,2.57,0,0,1-1.92.87H22.37a2.56,2.56,0,0,1-1.91-.87,3.1,3.1,0,0,1,0-4.08,2.57,2.57,0,0,1,1.9-.88ZM20.47,32.63a2.57,2.57,0,0,1,1.9-.88H41.86a2.56,2.56,0,0,1,1.91.87,3,3,0,0,1,.76,2,3.07,3.07,0,0,1-.75,2l0,0a2.58,2.58,0,0,1-1.9.88H22.37a2.56,2.56,0,0,2-0.91.13,3.1,3.1,0,0,1,0-4.08Z"
134+
fill="currentColor"
135+
/>
136+
</svg>
137+
);
138+
}
139+
118140
export const MoonFilledIcon = ({
119141
size = 24,
120142
width,

0 commit comments

Comments
 (0)