Skip to content

Commit a0331b7

Browse files
committed
add badge container
1 parent c02a655 commit a0331b7

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

app/projects/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default function ProjectsLayout({
66
children: React.ReactNode;
77
}) {
88
return (
9-
<section className="flex items-start justify-center gap-4">
10-
<div className="inline-block max-w-full justify-items-center text-left justify-center space-y-4">
9+
<section className="flex items-start gap-4">
10+
<div className="inline-block max-w-full text-left justify-center space-y-4">
1111
{children}
1212
</div>
1313
</section>

app/projects/mage/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/author_list'
2-
import { GithubBadge, ArxivBadge } from '@/components/badges'
2+
import { BadgeContainer, GithubBadge, ArxivBadge } from '@/components/badges'
33

44
# Explaining Graph Neural Networks via Structure-aware Interaction Index
55

@@ -12,8 +12,10 @@ import { GithubBadge, ArxivBadge } from '@/components/badges'
1212
]}
1313
/>
1414

15+
<BadgeContainer>
1516
<GithubBadge link="https://github.com/ngocbh/MAGE" />
1617
<ArxivBadge link="https://arxiv.org/abs/2405.14352" />
18+
</BadgeContainer>
1719

1820
In this project, we aim to explore graph-theoretic-based attribution scores for explaining graph neural networks (GNNs). Prior work (GStarX, SubgraphX, SAME) has successfully applied solutions such as Shapley values and HN values to explain GNNs. However, several limitations remain:
1921

components/badges.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type BadgeProps = {
1010

1111
export function Badge({ link, icon, label }: BadgeProps) {
1212
return (
13+
<div className='items-center'>
1314
<a href={link}>
1415
<Chip
1516
startContent={icon}
@@ -21,6 +22,7 @@ export function Badge({ link, icon, label }: BadgeProps) {
2122
{label}
2223
</Chip>
2324
</a>
25+
</div>
2426
);
2527
}
2628

@@ -29,5 +31,15 @@ export function GithubBadge({ link }: { link: string }) {
2931
}
3032

3133
export function ArxivBadge({ link }: { link: string }) {
32-
return <Badge link={link} icon={<ArxivIcon />} label="arXiv" />;
34+
return <Badge link={link} icon={<ArxivIcon />} label="ArXiv" />;
3335
}
36+
37+
import { ReactNode } from 'react';
38+
39+
export const BadgeContainer = ({ children }: { children: ReactNode }) => {
40+
return (
41+
<div className="flex flex-wrap gap-2 justify-center">
42+
{children}
43+
</div>
44+
);
45+
}

0 commit comments

Comments
 (0)