Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/guides/api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 13 additions & 10 deletions src/components/DocsPageSections/Guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,28 @@ interface guideProps {
}

/**
* A component to render a card that shows a guide. Clicking on the guide takes you to a Google Doc. All info for guides is currently in TechGuides.tsx
* A component to render a card that shows a guide. Clicking on the guide takes you to a Google Doc.
* @param props Should follow the interface above, guideProps
* @returns A Guide React component
*/
const Guide = (props: guideProps) => (
<Link
className="relative mb-10 block text-gray-900 transition-all duration-200 ease-in-out hover:translate-y-[-7px] focus:translate-y-[-7px]"
className="group relative mb-10 block transform-gpu text-gray-900 transition-transform duration-200 ease-in-out hover:translate-y-[-7px] focus:translate-y-[-7px]"
href={props.link}
target="_blank"
>
<div className="flex h-[270px] flex-col items-center rounded bg-[#f8f8f8] p-5 transition-all duration-200 ease-in-out hover:shadow-lg focus:shadow-lg dark:bg-[rgb(36,37,37)]">
<div className="relative flex h-[270px] flex-col items-center rounded bg-[#f8f8f8] p-5 transition-shadow duration-200 ease-in-out group-hover:shadow-[0_0_45px_0_rgba(255,255,255,0.35)] group-focus-visible:shadow-[0_0_45px_0_rgba(255,255,255,0.35)] dark:bg-[rgb(36,37,37)]">
<header className="py-2.5 text-xl text-white">{props.guideName}</header>
<Image
alt=""
className="h-[100px] w-[200px] rounded shadow-md"
height={100}
src={props.image}
width={200}
/>
<div className="flex h-[100px] w-[200px] items-center justify-center">
<Image
alt=""
className="block h-[100px] w-[200px] rounded object-contain shadow-md"
height={100}
src={props.image}
style={{ objectPosition: "center" }}
width={200}
/>
</div>
<p className="my-4 w-[250px] text-sm text-docs-page-black opacity-100 dark:text-white">
{props.description}
</p>
Expand Down