Skip to content

Commit

Permalink
fix: fix deepsource
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 9, 2024
1 parent 3e08656 commit 9605fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/tailwind/app/_components/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ interface CardProps {
text: string;
}

/** Card component */
export default function Card({ href, title, text }: CardProps) {
return (
<a
Expand All @@ -12,7 +13,7 @@ export default function Card({ href, title, text }: CardProps) {
target="_blank"
rel="noopener noreferrer">
<h2 className={"mb-3 text-2xl font-semibold"}>
{title + " "}
{`${title} `}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand Down
2 changes: 2 additions & 0 deletions examples/tailwind/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import { StarMe } from "@mayank1513/fork-me";
import { Switch } from "nextjs-darkmode/switch";
import Card from "./_components/card";

// Home page
export default function Home() {
return (
// skipcq: JS-0415
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
Expand Down

0 comments on commit 9605fe4

Please sign in to comment.