Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
am5815 committed Dec 13, 2023
1 parent 8c20127 commit c0013c2
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions src/components/ResourceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ const ResourceCard = ({
color,
}: ResourceCardProps) => {
return (
<IonCard color="tertiary" >
<div style={{height: 120}}>
<img src={image} alt="CYCM Circle" className="mx-auto mt-6" width={250} />
<IonCard color="tertiary">
<div style={{ height: 120 }}>
<img
src={image}
alt="CYCM Circle"
className="mx-auto mt-6"
width={250}
/>
</div>
<IonCardHeader className="text-center">
<IonCardTitle className="text-2xl">{title}</IonCardTitle>
Expand All @@ -33,8 +38,18 @@ const ResourceCard = ({
<p className="text-md font-sans h-12">{description}</p>
</div>
</IonCardContent>
<div className="relative" style={{ width: '100%', textAlign: 'center', height: 100}}>
<div style={{ position: 'absolute', bottom: 20, left: '50%', transform: 'translateX(-50%)' }}>
<div
className="relative"
style={{ width: "100%", textAlign: "center", height: 100 }}
>
<div
style={{
position: "absolute",
bottom: 20,
left: "50%",
transform: "translateX(-50%)",
}}
>
<button
type="button"
className="text-gray-900 hover:text-white bg-gray-200 hover:bg-gray-800 focus:ring-4 focus:outline-none focus:ring-gray-300 font-medium rounded-md text-md px-5 py-2 text-center my-2"
Expand Down

0 comments on commit c0013c2

Please sign in to comment.