mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Fix resource link.
This commit is contained in:
@@ -188,18 +188,20 @@ export default function ResourcePage() {
|
|||||||
<p className={"px-3 mt-2"}>
|
<p className={"px-3 mt-2"}>
|
||||||
{resource.links.map((l) => {
|
{resource.links.map((l) => {
|
||||||
return (
|
return (
|
||||||
<span
|
<a href={l.url} target={"_blank"}>
|
||||||
className={
|
<span
|
||||||
"py-1 px-3 inline-flex items-center m-1 border border-base-300 rounded-2xl hover:bg-base-200 transition-colors cursor-pointer select-none"
|
className={
|
||||||
}
|
"py-1 px-3 inline-flex items-center m-1 border border-base-300 rounded-2xl hover:bg-base-200 transition-colors cursor-pointer select-none"
|
||||||
>
|
}
|
||||||
{l.url.includes("steampowered.com") ? (
|
>
|
||||||
<BiLogoSteam size={20} />
|
{l.url.includes("steampowered.com") ? (
|
||||||
) : (
|
<BiLogoSteam size={20} />
|
||||||
<MdOutlineLink size={20} />
|
) : (
|
||||||
)}
|
<MdOutlineLink size={20} />
|
||||||
<span className={"ml-2 text-sm"}>{l.label}</span>
|
)}
|
||||||
</span>
|
<span className={"ml-2 text-sm"}>{l.label}</span>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user