Skip to content

Commit 8ec5ed6

Browse files
committed
adjust ResourceCard and ResourcePage css for responsiveness
1 parent 2765927 commit 8ec5ed6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/Resources/ResourceCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Entry } from "./types";
22

33
const ResourceCard = ({ entry }: { entry: Entry }) => {
44
return (
5-
<div className="min-h-24 min-w-56 rounded-md bg-slate-400 text-center shadow-lg shadow-gray-600 hover:shadow-2xl hover:shadow-gray-600">
5+
<div className="min-h-24 w-96 rounded-md bg-slate-400 text-center shadow-lg shadow-gray-600 hover:shadow-2xl hover:shadow-gray-600">
66
<a
77
href={entry.url}
88
target="_blank"

src/routes/Resources/ResourcePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ResourcePage = () => {
3737
{data.pageName}
3838
</h3>
3939
<div className="flex w-full justify-center">
40-
<div className="mx-4 grid grid-cols-3 gap-x-4 sm:w-5/6 xl:w-3/4">
40+
<div className="mx-4 flex flex-wrap justify-center gap-6 sm:w-5/6 xl:w-3/4">
4141
{data.entries.map((e) => (
4242
<ResourceCard entry={e} key={e.title} />
4343
))}

0 commit comments

Comments
 (0)