diff --git a/.commitlintrc.json b/.commitlintrc.json
deleted file mode 100644
index 19aaa38bb..000000000
--- a/.commitlintrc.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "extends": ["@commitlint/config-conventional"],
- "rules": {
- "type-enum": [
- 2,
- "always",
- [
- "add",
- "change",
- "deprecate",
- "doc",
- "fix",
- "finish",
- "refactor",
- "release",
- "remove",
- "revert",
- "test",
- "upgrade"
- ]
- ]
- }
-}
diff --git a/.husky/commit-msg b/.husky/commit-msg
deleted file mode 100755
index a78cc751d..000000000
--- a/.husky/commit-msg
+++ /dev/null
@@ -1 +0,0 @@
-npx commitlint --edit $1
diff --git a/lib/components/Card/Card.stories.tsx b/lib/components/Card/Card.stories.tsx
index 5271d9e2a..804b7c34a 100644
--- a/lib/components/Card/Card.stories.tsx
+++ b/lib/components/Card/Card.stories.tsx
@@ -29,15 +29,10 @@ export const Primary: Story = {
render: (args) => (
-
+
-
-
- More info
-
-
),
@@ -53,15 +48,10 @@ export const NewsCard: Story = {
-
+
-
-
- Read more
-
-
))}
@@ -93,7 +83,7 @@ export const EventCard: Story = {
-
+
-
-
- More info
-
-
),
)}
@@ -127,15 +112,10 @@ export const FeaturedCards: Story = {
-
+
-
-
- Get informed
-
-
))}
@@ -151,15 +131,10 @@ export const IconCard: Story = {
{IconData.slice(0, 2).map(({ id, link, title, icon }) => (
-
+
-
-
- More info
-
-
))}
@@ -174,15 +149,10 @@ export const PageCard: Story = {
{NewsData.slice(0, 2).map(({ id, link, title, date }) => (
-
+
-
-
- Read more
-
-
))}
@@ -200,17 +170,12 @@ export const PeopleCard: Story = {
-
+
{email}
-
-
- More info
-
-
))}
@@ -228,7 +193,7 @@ export const HoursCard: Story = {
-
+
@@ -236,11 +201,6 @@ export const HoursCard: Story = {
-
-
- Read more
-
-
))}
{NewsData.slice(1, 2).map(({ id, link, title, image, alt }) => (
@@ -248,7 +208,7 @@ export const HoursCard: Story = {
-
+
@@ -256,11 +216,6 @@ export const HoursCard: Story = {
-
-
- Read more
-
-
))}
{NewsData.slice(1, 2).map(({ id, link, title, image, alt }) => (
@@ -268,7 +223,7 @@ export const HoursCard: Story = {
-
+
@@ -276,11 +231,6 @@ export const HoursCard: Story = {
-
-
- Read more
-
-
))}
diff --git a/lib/components/Card/Examples.stories.tsx b/lib/components/Card/Examples.stories.tsx
index c15681dac..0263e85a6 100644
--- a/lib/components/Card/Examples.stories.tsx
+++ b/lib/components/Card/Examples.stories.tsx
@@ -64,15 +64,10 @@ export const LayoutExamples: Story = {
-
+
-
-
- Read more
-
-
))}
@@ -103,7 +98,7 @@ export const LayoutExamples: Story = {
-
+
-
-
- More info
-
-
),
)}
@@ -143,7 +133,7 @@ export const LayoutExamples: Story = {
-
+
-
-
- More info
-
-
),
)}
@@ -180,7 +165,7 @@ export const LayoutExamples: Story = {
}) => (
-
+
-
-
- More info
-
-
),
)}
@@ -210,15 +190,10 @@ export const LayoutExamples: Story = {
-
+
-
-
- Get informed
-
-
))}
@@ -228,15 +203,10 @@ export const LayoutExamples: Story = {
{IconData.slice(0, 4).map(({ id, link, title, icon }) => (
-
+
-
-
- More info
-
-
))}
@@ -255,15 +225,10 @@ export const LayoutExamples: Story = {
{NewsData.slice(0, 3).map(({ id, link, title, date }) => (
-
+
-
-
- Read more
-
-
))}
@@ -275,17 +240,12 @@ export const LayoutExamples: Story = {
-
+
{email}
-
-
- More info
-
-
))}
diff --git a/lib/components/Listing/Listing.stories.tsx b/lib/components/Listing/Listing.stories.tsx
index fae6b66a6..3a1962954 100644
--- a/lib/components/Listing/Listing.stories.tsx
+++ b/lib/components/Listing/Listing.stories.tsx
@@ -30,13 +30,8 @@ export const Default: Story = {
-
+
-
-
- More info
-
-
@@ -54,13 +49,8 @@ export const SingleNewsListing: Story = {
-
+
-
-
- Read more
-
-
))}
@@ -80,13 +70,8 @@ export const MultipleNewsListings: Story = {
-
+
-
-
- Read more
-
-
))}
@@ -115,7 +100,7 @@ export const SingleEventListing: Story = {
-
+
-
-
- Event details
-
-
),
@@ -158,7 +138,7 @@ export const MultipleEventListings: Story = {
-
+
-
-
- Event details
-
-
),
@@ -190,13 +165,8 @@ export const SingleIconListing: Story = {
-
+
-
-
- Get informed
-
-
))}
@@ -214,13 +184,8 @@ export const MultipleIconListing: Story = {
-
+
-
-
- Get informed
-
-
))}
@@ -237,13 +202,8 @@ export const SinglePageListing: Story = {
{NewsData.slice(0, 1).map(({ id, link, title, date }) => (
-
+
-
-
- Read more
-
-
))}
@@ -260,13 +220,8 @@ export const MultiplePageListing: Story = {
{NewsData.slice(1, 5).map(({ id, link, title, date }) => (
-
+
-
-
- Read more
-
-
))}
@@ -286,15 +241,10 @@ export const SinglePeopleListing: Story = {
-
+
{email}
-
-
- View profile
-
-
))}
@@ -314,15 +264,10 @@ export const MultiplePeopleListing: Story = {
-
+
{email}
-
-
- View profile
-
-
))}
diff --git a/lib/components/Listing/ListingExcerpt.tsx b/lib/components/Listing/ListingExcerpt.tsx
index 47eb8f7c2..28c586b36 100644
--- a/lib/components/Listing/ListingExcerpt.tsx
+++ b/lib/components/Listing/ListingExcerpt.tsx
@@ -6,7 +6,7 @@ export interface ListingExcerptProps {
export const ListingExcerpt = ({ text, hasMore }: ListingExcerptProps) => {
return (
- {text && text.length > 200 ? `${text.substring(0, 200)}...` : text}
+ {text && text.length > 300 ? `${text.substring(0, 300)}...` : text}
{hasMore && More}
)
diff --git a/lib/components/Listing/ListingHeader.tsx b/lib/components/Listing/ListingHeader.tsx
index 684bd720d..a3744c3d3 100644
--- a/lib/components/Listing/ListingHeader.tsx
+++ b/lib/components/Listing/ListingHeader.tsx
@@ -1,5 +1,8 @@
+import { useLinkContext } from '../LinkProvider/useLinkContext'
+
export interface ListingHeaderProps {
title: string
+ link?: string
as?: 'h2' | 'h3'
date?: string | Date
datePrefix?: string
@@ -9,12 +12,14 @@ export interface ListingHeaderProps {
export const ListingHeader = ({
title = 'No title available',
+ link,
as = 'h2',
date,
datePrefix,
readTime,
datePosition = 'top',
}: ListingHeaderProps) => {
+ const LinkComponent = useLinkContext()
const HeaderComponent = as
const formattedDate = date
? new Date(date).toLocaleString('en-US', {
@@ -41,7 +46,7 @@ export const ListingHeader = ({
)}
- {title}
+ {link ? {title} : title}
{date && datePosition === 'bottom' && (
diff --git a/lib/components/Listing/styles.css b/lib/components/Listing/styles.css
index 6209daeb1..a859dea05 100644
--- a/lib/components/Listing/styles.css
+++ b/lib/components/Listing/styles.css
@@ -63,6 +63,11 @@
@apply inline-flex;
}
+.cu-listing header h2 a,
+.cu-listing header h3 a {
+ @apply block hover:text-cu-red-700;
+}
+
.cu-listing img:not(.cu-icon-thumb) {
@apply object-cover w-full h-full rounded-md;
}
diff --git a/lib/components/Pagination/Examples.stories.tsx b/lib/components/Pagination/Examples.stories.tsx
index b4891e5bc..42547b1ab 100644
--- a/lib/components/Pagination/Examples.stories.tsx
+++ b/lib/components/Pagination/Examples.stories.tsx
@@ -60,12 +60,7 @@ export const LayoutExamples: Story = {
-
-
-
- Read more
-
-
+
))}
@@ -79,12 +74,7 @@ export const LayoutExamples: Story = {
{NewsData.slice(0, 6).map(({ id, link, title, date }) => (
-
-
-
- Read more
-
-
+
))}
@@ -98,12 +88,7 @@ export const LayoutExamples: Story = {
{NewsData.slice(0, 8).map(({ id, link, title, date }) => (
-
-
-
- Read more
-
-
+
))}
diff --git a/lib/components/Splash/Splash.stories.tsx b/lib/components/Splash/Splash.stories.tsx
index 7c86694d9..a020e84bb 100644
--- a/lib/components/Splash/Splash.stories.tsx
+++ b/lib/components/Splash/Splash.stories.tsx
@@ -58,11 +58,6 @@ export const ImageWithCards: Story = {
truncateOnMobile
/>
-
-
- Visit Go Ravens
-
-
@@ -72,11 +67,6 @@ export const ImageWithCards: Story = {
truncateOnMobile
/>
-
-
- View Programs
-
-
@@ -86,11 +76,6 @@ export const ImageWithCards: Story = {
truncateOnMobile
/>
-
-
- Campus Facilities
-
-
@@ -140,11 +125,6 @@ export const WithVideoAndCards: Story = {
truncateOnMobile
/>
-
-
- Visit Go Ravens
-
-
@@ -154,11 +134,6 @@ export const WithVideoAndCards: Story = {
truncateOnMobile
/>
-
-
- View Programs
-
-
@@ -168,11 +143,6 @@ export const WithVideoAndCards: Story = {
truncateOnMobile
/>
-
-
- Campus Facilities
-
-
diff --git a/lib/examples/projects/cutheme/Homepage.stories.tsx b/lib/examples/projects/cutheme/Homepage.stories.tsx
index 6b5471378..8bffbdc5a 100644
--- a/lib/examples/projects/cutheme/Homepage.stories.tsx
+++ b/lib/examples/projects/cutheme/Homepage.stories.tsx
@@ -84,15 +84,10 @@ export const Homepage: Story = {
-
+
-
-
- Read more
-
-
))}
@@ -133,15 +128,10 @@ export const Homepage: Story = {
-
+
-
-
- Read more
-
-
))}
@@ -224,7 +214,7 @@ export const Homepage: Story = {
-
+
-
-
- More info
-
-
),
)}
diff --git a/lib/examples/projects/event-calendar/Homepage.stories.tsx b/lib/examples/projects/event-calendar/Homepage.stories.tsx
index a6ce9b692..a3ed1d15c 100644
--- a/lib/examples/projects/event-calendar/Homepage.stories.tsx
+++ b/lib/examples/projects/event-calendar/Homepage.stories.tsx
@@ -84,7 +84,7 @@ export const Homepage: Story = {
-
+
-
-
- More info
-
-
),
)}
diff --git a/lib/examples/projects/futurefunder/BrowseProjects.stories.tsx b/lib/examples/projects/futurefunder/BrowseProjects.stories.tsx
index bfa50bcd9..6bb1d3361 100644
--- a/lib/examples/projects/futurefunder/BrowseProjects.stories.tsx
+++ b/lib/examples/projects/futurefunder/BrowseProjects.stories.tsx
@@ -62,15 +62,10 @@ export const BrowseProjects: Story = {
-
+
-
-
- Read more
-
-
))}
diff --git a/lib/layouts/ImageCover/ImageCover.stories.tsx b/lib/layouts/ImageCover/ImageCover.stories.tsx
index 1cbfcd3db..995a59b4c 100644
--- a/lib/layouts/ImageCover/ImageCover.stories.tsx
+++ b/lib/layouts/ImageCover/ImageCover.stories.tsx
@@ -78,24 +78,19 @@ export const WithChildren: Story = {
-
+
{PromoData.slice(0, 4).map(({ id, link, title, image, alt }) => (
-
-
-
- More info
-
-
+
))}
diff --git a/package.json b/package.json
index 7d0fa35ac..6d3e11a9b 100644
--- a/package.json
+++ b/package.json
@@ -71,8 +71,6 @@
"yup": "1.7.1"
},
"devDependencies": {
- "@commitlint/cli": "20.4.1",
- "@commitlint/config-conventional": "20.4.1",
"@cypress/react": "9.0.1",
"@size-limit/preset-big-lib": "12.0.0",
"@storybook/addon-a11y": "10.2.10",