@@ -7,7 +7,7 @@ import SingleColumn from "../../components/SingleColumn";
77import Section from "../../components/Section";
88import ob from "urbit-ob";
99import Markdown from "../../components/Markdown";
10−import Sigil from "../../components/Sigil";
10+import ResourceCard from "../../components/ResourceCard";
1111import GatewayHeader from "../../components/gateway/GatewayHeader";
1212import Gateway404 from "../../components/gateway/Gateway404";
1313import MetadataBlock from "../../components/gateway/MetadataBlock";
@@ -33,12 +33,6 @@ const IdPage = ({ data, markdown, applications, groups, network, params }) => {
3333 // Galaxies shouldn't show parents, so store it as boolean here for reference.
3434 const isGalaxy = ob.clan(id) === "galaxy";
3535
36− const sigil = (
37− <div className="rounded-xl overflow-hidden">
38− <Sigil patp={id} size={100} />
39− </div>
40− );
41−
4236 return (
4337 <Container>
4438 <Head>
@@ -66,7 +60,7 @@ const IdPage = ({ data, markdown, applications, groups, network, params }) => {
6660 <GatewayHeader
6761 title={id}
6862 image={data?.image || false}
69− sigil={sigil}
63+ patp={id}
7064 item="Urbit ID"
7165 />
7266 <div className="flex flex-wrap md:flex-nowrap justify-between">
@@ -98,15 +92,10 @@ const IdPage = ({ data, markdown, applications, groups, network, params }) => {
9892 <Creations
9993 title="Applications"
10094 id={id}
101− parentSlug="application"
95+ type="application"
10296 data={applications}
10397 />
104− <Creations
105− title="Hosted Groups"
106− id={id}
107− parentSlug="group"
108− data={groups}
109− />
98+ <Creations title="Hosted Groups" id={id} type="group" data={groups} />
11099 <Description
111100 description={data.description}
112101 fallback="An Urbit ID."
@@ -169,26 +158,19 @@ const IdPage = ({ data, markdown, applications, groups, network, params }) => {
169158 );
170159};
171160
172−const Creations = ({ id, title, data, parentSlug }) => {
161+const Creations = ({ id, title, data, type }) => {
173162 return (
174163 data?.length > 0 && (
175164 <div className="flex space-y-2 flex-col">
176165 <p className="text-wall-400 font-semibold">{title}</p>
177166 <div className="flex flex-wrap space-x-4">
178167 {data.map((each) => (
179− <Link href={`/${parentSlug}/${id}/${each.slug}`}>
180− <div className="cursor-pointer rounded-xl bg-wall-100 p-4 flex items-center space-x-4">
181− <img
182− className="overflow-hidden rounded-xl"
183− style={{ width: 50, height: 50 }}
184− src={
185− each?.image ||
186− "https://media.urbit.org/logo/urbit-logo-card.png"
187− }
188− />
189− <a className="font-semibold">{each.title}</a>
190− </div>
191− </Link>
168+ <ResourceCard
169+ type={type}
170+ shortcode={`${id}/${each.slug}`}
171+ title={each.title}
172+ image={each.image}
173+ />
192174 ))}
193175 </div>
194176 </div>