-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: stackedlist props and styles
- Loading branch information
1 parent
1618551
commit 63fff94
Showing
6 changed files
with
177 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
import React from 'react' | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
import { Section } from '../../layouts/Section/Section' | ||
import { Main } from '../../layouts/Main/Main' | ||
import { FooterStandard } from '../../components/Footer/FooterStandard/FooterStandard' | ||
import { StackedList } from '../../layouts/StackedList/StackedList' | ||
import { Nav } from '../../components/Nav/Nav' | ||
import { Listing } from '../../components/Listing/Listing' | ||
import { NewsData } from '../../data/NewsData' | ||
import { TextImage } from '../../components/TextImage/TextImage' | ||
import { NavDataSingle, NavAsideData } from '../../data/NavData' | ||
|
||
const meta: Meta = { | ||
title: 'Examples/Blocks', | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj | ||
|
||
export const ListingSidebars: Story = { | ||
render: () => ( | ||
<> | ||
<Nav> | ||
<Nav.Primary> | ||
<Nav.Logo title="Web Services" link="https://carleton.ca/webservices" /> | ||
<Nav.Menu menu={NavDataSingle} /> | ||
<Nav.Aside menu={NavAsideData} /> | ||
</Nav.Primary> | ||
</Nav> | ||
|
||
<Main> | ||
<Section hasProse> | ||
<TextImage hasBorder> | ||
<TextImage.Content headerType="h1" title="News Listing"> | ||
<p> | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores | ||
accusamus in. Praesent quis ligula quis nulla malesuada tempor. | ||
</p> | ||
</TextImage.Content> | ||
</TextImage> | ||
|
||
<p> | ||
Aliquam luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. Etiam quis interdum nisi, et malesuada lectus. Aliquam | ||
luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
</p> | ||
|
||
<StackedList header="Recent News" as="ul" cols="1" offset="right"> | ||
{NewsData.slice(0, 3).map(({ id, title, link, excerpt, date, image, alt }) => ( | ||
<Listing key={id}> | ||
<Listing.Figure> | ||
<img src={image} alt={alt} width="400" height="266" /> | ||
</Listing.Figure> | ||
<Listing.Body> | ||
<Listing.Header date={date}>{title}</Listing.Header> | ||
<Listing.Excerpt text={excerpt} /> | ||
<Listing.Footer> | ||
<a href={link} className="cu-button cu-button--red"> | ||
Read more | ||
</a> | ||
</Listing.Footer> | ||
</Listing.Body> | ||
</Listing> | ||
))} | ||
</StackedList> | ||
|
||
<p> | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. | ||
</p> | ||
<p> | ||
Aliquam luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. Etiam quis interdum nisi, et malesuada lectus. Aliquam | ||
luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
</p> | ||
<p> | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. | ||
</p> | ||
<p> | ||
Aliquam luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. Etiam quis interdum nisi, et malesuada lectus. Aliquam | ||
luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
</p> | ||
<p> | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. | ||
</p> | ||
<p> | ||
Aliquam luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. Etiam quis interdum nisi, et malesuada lectus. Aliquam | ||
luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
</p> | ||
<p> | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. Nobis voluptatem dolorum et eum doloremque cupiditate | ||
velit. Praesentium architecto a distinctio aut reprehenderit ducimus. | ||
</p> | ||
<p> | ||
Aliquam luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
Nobis voluptatem dolorum et eum doloremque cupiditate velit. Praesentium architecto a distinctio aut | ||
reprehenderit ducimus. Perferendis excepturi delectus nihil voluptatem non. Molestiae quas dolores accusamus | ||
in. Praesent quis ligula quis nulla malesuada tempor. Etiam quis interdum nisi, et malesuada lectus. Aliquam | ||
luctus, velit eget suscipit tincidunt, sem ex tempus turpis, quis pulvinar metus sapien in urna. | ||
</p> | ||
</Section> | ||
</Main> | ||
|
||
<FooterStandard /> | ||
</> | ||
), | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters