mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-27 03:04:24 +01:00
change: vote btn in projectCardMini to static text
This commit is contained in:
@@ -36,7 +36,11 @@ export default function ProjectCardMini({ project, onClick }: Props) {
|
||||
<p className="text-body5 text-gray-600 font-light my-[5px]">{project.category.title}</p>
|
||||
{/* <span className="chip-small bg-warning-50 text-yellow-700 font-light text-body5 py-[3px] px-10"> <MdLocalFireDepartment className='inline-block text-fire transform text-body4 align-middle' /> {numberFormatter(project.votes_count)} </span> */}
|
||||
</div>
|
||||
<VoteButton votes={project.votes_count} direction='vertical' dense onVote={vote}></VoteButton>
|
||||
{/* <VoteButton votes={project.votes_count} direction='vertical' dense onVote={vote}></VoteButton> */}
|
||||
<div className="flex flex-col text-gray-500 items-center">
|
||||
<MdLocalFireDepartment className="text-gray-400" />
|
||||
<span>{numberFormatter(project.votes_count)}</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ const responsive = {
|
||||
// }
|
||||
|
||||
function calcNumItems() {
|
||||
const items = (((window.innerWidth - 2 * 32) / (300 + 20)));
|
||||
const items = (((window.innerWidth - 2 * 32) / (296 + 20)));
|
||||
return items;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ export default function ProjectsRow({ title, link, projects }: Props) {
|
||||
}
|
||||
>
|
||||
{projects.map((project, idx) =>
|
||||
<div key={project.id} className='max-w-[300px]' >
|
||||
<div key={project.id} className='max-w-[296px]' >
|
||||
<ProjectCardMini project={project} onClick={handleClick} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user