Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
strong category title
Browse files Browse the repository at this point in the history
  • Loading branch information
khylpe committed May 13, 2024
1 parent 221dc5a commit dcfcf97
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Category } from "@/types/category";
import { useState } from "react";
import axios from 'axios';
import Link from "next/link";
const { Paragraph } = Typography;
const { Paragraph, Text } = Typography;

export default function CategoryCard({ category }: { category: Category }) {
const [resources, setResources] = useState<any[]>([]);
Expand All @@ -25,14 +25,16 @@ export default function CategoryCard({ category }: { category: Category }) {

]}
>
<div style={{ display: 'flex', alignItems: 'center' }}>
<Icon icon={category.icon} style={{ fontSize: '24px', marginRight: '8px' }} />
<span>{category.title}</span>
<div className="flex gap-5 flex-col">
<div style={{ display: 'flex', alignItems: 'center' }}>
<Icon icon={category.icon} style={{ fontSize: '24px', marginRight: '8px' }} />
<Text strong>{category.title}</Text>
</div>
<Paragraph
ellipsis={{ rows: 2, expandable: "collapsible", symbol: ((expanded: boolean) => expanded ? "Moins" : "Plus") }}>
{category.description}
</Paragraph>
</div>
<Paragraph
ellipsis={{ rows: 2, expandable: "collapsible", symbol: ((expanded: boolean) => expanded ? "Moins" : "Plus") }}>
{category.description}
</Paragraph>
</Card>
</>
);
Expand Down

0 comments on commit dcfcf97

Please sign in to comment.