add ssg for resources

This commit is contained in:
Brandon Egger
2023-03-16 19:22:23 -05:00
parent 13e9c45f4d
commit 3e9cd90f5f
4 changed files with 85 additions and 19 deletions

View File

@ -30,7 +30,7 @@ const ResourceEntry = ({resource}: {resource: AuditoryResource}) => {
return (
<div className="p-4 space-x-4 flex flex-row">
<div className="h-full my-auto">
<Link href="https://google.com">
<Link href={`resources/${resource.id}`}>
<div className="w-20 sm:w-28 flex space-y-2 flex-col justify-center">
<Image className="w-full rounded-xl drop-shadow-lg border border-neutral-400" src={resource.icon} alt={`${resource.name} logo`} width={512} height={512}/>
<span
@ -130,8 +130,8 @@ const ResourceTable = ({resources}: {resources?: AuditoryResource[]}) => {
}) ?? [];
return(
<div className="sm:px-4 w-full">
<div className="mx-auto max-w-6xl rounded-xl overflow-hidden border border-neutral-400">
<div className="w-full">
<div className="mx-auto rounded-xl overflow-hidden border border-neutral-400">
<table className="w-full table-fixed bg-neutral-200 drop-shadow-md">
<thead className="bg-gradient-to-t from-neutral-900 to-neutral-700 rounded-xl overflow-hidden">
<tr>