way nicer flow and almost ready for fetching and displaying but stay patient

This commit is contained in:
Arjun Patel
2022-01-18 17:57:58 -08:00
parent bf180f8334
commit bbe2e5a7cd
8 changed files with 315 additions and 21 deletions
+2 -5
View File
@@ -2,13 +2,14 @@ import { FaArchive, FaExternalLinkAlt, FaFilePdf } from "react-icons/fa";
import Link from "../models/link";
import Image from "next/image";
import { BsThreeDots } from "react-icons/bs";
import LinkIcon from "./LinkIcon";
export default function LinkCard(props: { link?: Link }) {
return (
<span className="flex flex-col rounded-lg">
{/* attmnt header */}
<span className="flex flex-row bg-gray-300 bg-opacity-25 py-5 px-3 items-center justify-start">
<RenderFileIcon className="text-4xl text-orange-300 mr-2" />
<LinkIcon className="text-4xl text-orange-300 mr-2" />
<span className="flex flex-col items-baseline mr-10 space-y-1">
<span className="text-md font-bold text-white">report.pdf</span>
@@ -57,7 +58,3 @@ export default function LinkCard(props: { link?: Link }) {
</span>
);
}
function RenderFileIcon(props) {
return <FaFilePdf {...props} />;
}