Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Prefix the change with one of these keywords:

## [0.26.6]

### Change

- changed the type of text on cards excerpt to accommodate bold and italic

### Added

- New video for full banner
Expand Down
4 changes: 2 additions & 2 deletions lib/components/Card/CardExcerpt.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface CardExcerptProps {
text?: string
text?: React.ReactNode | string
hasMore?: boolean
truncateOnMobile?: boolean
}
Expand All @@ -9,7 +9,7 @@ export const CardExcerpt = ({ text, hasMore, truncateOnMobile }: CardExcerptProp
<p
className={`text-base text-cu-black-700 dark:text-white ${truncateOnMobile ? 'line-clamp-1 md:line-clamp-none' : ''}`}
>
{text && text.length > 170 ? `${text.substring(0, 150)}...` : text}
{typeof text === 'string' && text.length > 170 ? `${text.substring(0, 150)}...` : text}
{hasMore && <span className="font-semibold"> More</span>}
</p>
)
Expand Down
6 changes: 5 additions & 1 deletion lib/utils/json-lists.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export const videoBanner = [
{ title: 'Discover Carleton', name: 'discover', description: 'Discover Carleton and the beautiful city of Ottawa' },
{ title: 'Aerial View of Carleton', name: 'aerial-view', description: 'Aerial view of the beautiful Carleton University campus' },
{
title: 'Aerial View of Carleton',
name: 'aerial-view',
description: 'Aerial view of the beautiful Carleton University campus',
},
{
title: '2025 Carleton University Campus',
name: 'campus-2025',
Expand Down
5 changes: 5 additions & 0 deletions public/assets/json/videoBanner.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"name": "discover",
"description": "Discover Carleton and the beautiful city of Ottawa"
},
{
"title": "Aerial View of Carleton",
"name": "aerial-view",
"description": "Aerial view of the beautiful Carleton University campus"
},
{
"title": "2025 Carleton University Campus",
"name": "campus-2025",
Expand Down
Loading