Skip to content

Commit

Permalink
Merge pull request #576 from jay-hodgson/PORTALS-2852
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson authored Nov 15, 2023
2 parents 263faa1 + a793faa commit 5158859
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import dayjs from 'dayjs'
import React from 'react'
import { formatDate } from '../../utils/functions/DateFormatter'
import ShowMore from '../ShowMore'

export type FeaturedToolCardProps = {
id: string
Expand All @@ -17,9 +18,7 @@ export const FeaturedToolCard: React.FunctionComponent<
return (
<div
{...domProps}
className={`cardContainer FeaturedToolCard bootstrap-4-backport ${
domProps.className ?? ''
}`}
className={`cardContainer FeaturedToolCard ${domProps.className ?? ''}`}
>
<div className="FeaturedToolCard__Type">
<span className="SRC-tag">{type}</span>
Expand All @@ -28,15 +27,12 @@ export const FeaturedToolCard: React.FunctionComponent<
{formatDate(dayjs(parseInt(date)), 'MMMM YYYY')}
</div>
<div className="FeaturedToolCard__Name">{name}</div>
<div className="FeaturedToolCard__Description">{description}</div>
<div>
<a
className="FeaturedToolCard__Link"
href={`${toolDetailPageURL}${id}`}
>
View Tool
</a>
<div className="FeaturedToolCard__Description">
<ShowMore summary={description} />
</div>
<a className="FeaturedToolCard__Link" href={`${toolDetailPageURL}${id}`}>
View Tool
</a>
</div>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

.FeaturedToolCard {
word-wrap: break-word;
height: 250px;
width: 350px;
padding: 23px 34px;
margin: 10px;
Expand All @@ -36,6 +35,7 @@
grid-row: 4/4;
}
&__Link {
margin-top: 10px;
grid-row: 5/5;
}
}

0 comments on commit 5158859

Please sign in to comment.