Skip to content

Commit

Permalink
Improved the GitHub Sample Button (not as massive)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeCodesDotNET committed Dec 30, 2024
1 parent a6b89ee commit 10615f1
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions src/components/GitHubSampleLink.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
import React from 'react';
import Link from '@docusaurus/Link';
import { ArrowRightFilled } from '@fluentui/react-icons';
import clsx from 'clsx';
import { ChevronRight, GitHub } from 'react-feather';

export default function GitHubSampleLink({title, link}) {
return (
<Link
to={link}
style={{
borderWidth: '1px',
}}
className="github-sample-card bg-slate-400"
>
<div className="p-6 !pb-0">
<h3 className="mb-1 flex items-center gap-3 font-outfit group-hover:text-white">
<img
src="/static/resources/github-white.svg"
width="30"
height="30"
/>
<div>
{title} - Sample on GitHub
</div>
</h3>
<div className="flex items-center gap-2.5">
{link && (
<Link
to={link}
className="flex items-center gap-1 rounded-lg py-1 px-3 text-white bg-primary hover:text-white transition-colors"
>
<GitHub className="h-4 w-4" />
<span className="font-semibold">Clone the {title} sample</span>
</Link>
)}
</div>

</Link>
);
}


}

0 comments on commit 10615f1

Please sign in to comment.