Skip to content

Commit

Permalink
πŸ’„ Hide badge on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
bradystroud committed Apr 19, 2024
1 parent 65441cd commit 71875d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export default function HomePage(
});
const bestParmi = props.topParmi.node;
const bestParmiReview = bestParmi.id.split(".")[0];
// remove content from the urlβœ…βœ…
const bestParmiReviewUrl = bestParmiReview.replace("content", "");
return (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
<Layout data={data.global as any}>
Expand All @@ -26,7 +28,7 @@ export default function HomePage(
</Head>
<Blocks {...data.page} />
<section className="m-auto">
<Link href={bestParmiReview}>
<Link href={bestParmiReviewUrl} className="hidden sm:block">
<div className="badge">
<svg width="300" height="50" className="best">
{" "}
Expand Down

0 comments on commit 71875d7

Please sign in to comment.