TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/paaatrrrick/personalwebsite/llms.txt
Use this file to discover all available pages before exploring further.
Card component renders a single portfolio project entry. It displays a media asset (image or video), a bold project title, a multi-line description, and one or more external links.
Props
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Project title displayed in bold before the description. |
text | string[] | Yes | Array of text paragraphs. Each entry is rendered on its own line using <br />. |
image | string | Yes | URL of the project image or video file. |
isVideo | boolean | Yes | When true, renders a <video> element with autoPlay and controls. When false, renders an <img> element. |
links | Array<{ text: string, href: string }> | Yes | External links rendered as anchor tags. Each object requires a text label and an href URL. |
Usage
The following example shows a real project entry from the portfolio — the Courser project that won HackUIowa 2023:Video example
For projects that have a recorded demo, setisVideo to true and point image at a video file URL. The Hand Gesture Remote project uses this pattern with a .mov file hosted on Cloudinary:
Link styling
Links are rendered in order. The last link in the array receives the CSS classlink. All preceding links receive link mR, which adds a right margin to separate them visually.
Single link
One link → class
linkMultiple links
First link → class
Last link → class
link mRLast link → class
linkAll links open in a new tab (
target="_blank") with rel="noreferrer" for security.CSS classes
The component uses the following CSS class names, which are defined in the site’s stylesheet:| Class | Element | Purpose |
|---|---|---|
codingChunk | Outer wrapper div | Provides card layout and spacing. |
codingChunk-content | Inner content div | Stacks media, text, and links vertically. |
codingImage | img or video | Constrains media dimensions. |
codingParagraph | p | Styles the description block. |
bold | span wrapping title | Makes the project title bold. |
card-link | div wrapping links | Lays out anchor tags horizontally. |
link | Last a tag | Base link style. |
link mR | All but last a tags | Base link style with right margin. |