diff --git a/.storybook/stories/elements/lockup/Lockup.stories.tsx b/.storybook/stories/elements/lockup/Lockup.stories.tsx index f9901fef..892599a2 100644 --- a/.storybook/stories/elements/lockup/Lockup.stories.tsx +++ b/.storybook/stories/elements/lockup/Lockup.stories.tsx @@ -98,13 +98,6 @@ export const LockupM: Story = { suLockupOptions: "m" } } -export const LockupN: Story = { - render: LockupDisplay.render, - args: { - ...LockupDisplay.args, - suLockupOptions: "n" - } -} export const LockupO: Story = { render: LockupDisplay.render, args: { diff --git a/.storybook/stories/paragraphs/Banner.stories.tsx b/.storybook/stories/paragraphs/Banner.stories.tsx new file mode 100644 index 00000000..6e5ade45 --- /dev/null +++ b/.storybook/stories/paragraphs/Banner.stories.tsx @@ -0,0 +1,47 @@ +import type {Meta, StoryObj} from '@storybook/react'; +import {ComponentProps} from "react"; +import {ParagraphStanfordBanner, Text} from "@lib/gql/__generated__/drupal"; +import BannerParagraph from '@components/paragraphs/stanford-banner/banner-paragraph'; +import { getStoryBookImage } from '../storybook-entities'; + +type ComponentStoryProps = ComponentProps & { + text: Text["processed"] +} + +// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction +const meta: Meta = { + title: 'Design/Paragraphs/Banner', + component: BannerParagraph, + tags: ['autodocs'], + argTypes: {} +}; + +export default meta; +type Story = StoryObj; + +// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args +export const Banner: Story = { + render: ({...args}) => { + return + }, + args: { + paragraph:{ + __typename: 'ParagraphStanfordBanner', + composition: {}, + langcode: {}, + created: { + offset: "", + timestamp: Math.round(new Date().getTime() / 1000), + time: new Date().toISOString(), + timezone: "America/Los_Angeles" + }, + id: "9954cc81-919b-4498-9151-bf930831fca7", + suBannerHeader: "Nam scelerisque, urna vitae auctor efficitur, tortor nunc cursus tortor, ut blandit purus arcu quis sapien", + suBannerBody: { + processed: "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae dignissim felis. Nullam nulla leo, venenatis at feugiat sit amet, ultricies non lorem.

" + }, + suBannerImage: getStoryBookImage(), + suBannerSupHeader: "Vestibulum" + } + } +}; diff --git a/.storybook/stories/paragraphs/MediaWithCaption.stories.tsx b/.storybook/stories/paragraphs/MediaWithCaption.stories.tsx new file mode 100644 index 00000000..bde24f70 --- /dev/null +++ b/.storybook/stories/paragraphs/MediaWithCaption.stories.tsx @@ -0,0 +1,50 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import { ComponentProps } from "react"; +import StanfordMediaCaption from '@components/paragraphs/stanford-media-caption/media-caption-paragraph'; +import { getStoryBookImage } from '../storybook-entities'; + +type ComponentStoryProps = ComponentProps & { + // text: Text["processed"] +} + +// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction +const meta: Meta = { + title: 'Design/Paragraphs/MediaCaption', + component: StanfordMediaCaption, + tags: ['autodocs'], + argTypes: {} +}; + +export default meta; +type Story = StoryObj; + +// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args +export const Caption: Story = { + render: ({ ...args }) => { + return + }, + args: { + paragraph: { + id:"6fa23537-dda7-4861-930a-648445d9904c", + __typename: 'ParagraphStanfordMediaCaption', + composition: {}, + langcode: {}, + created: { + offset: "", + timestamp: Math.round(new Date().getTime() / 1000), + time: new Date().toISOString(), + timezone: "America/Los_Angeles" + }, + suMediaCaptionCaption: { + processed:"

Here is my caption.

" + }, + suMediaCaptionLink: { + title:"Link text.", + url:"/publications", + internal:true + }, + suMediaCaptionMedia: getStoryBookImage(), + } + } +}; + diff --git a/src/components/elements/button.tsx b/src/components/elements/button.tsx index 97a48aba..26e328e4 100644 --- a/src/components/elements/button.tsx +++ b/src/components/elements/button.tsx @@ -33,7 +33,7 @@ export const Button = ({ 'inline-block text-center w-fit': !centered, 'btn btn--big transition text-5xl text-white hocus:text-white bg-digital-red hocus:bg-black no-underline hocus:underline py-6 px-12 font-normal': big && !secondary, 'btn btn--secondary transition text-digital-red border-2 border-digital-red hocus:border-black no-underline hocus:underline py-4 px-8 font-normal': !big && secondary, - 'btn bg-digital-red text-white hocus:bg-black hocus:text-white py-4 px-8 no-underline hocus:underline transition': !big && !secondary, + 'btn bg-digital-red font-normal text-white hocus:bg-black hocus:text-white py-4 px-8 no-underline hocus:underline transition': !big && !secondary, } ) diff --git a/src/components/elements/lockup/lockup-a.tsx b/src/components/elements/lockup/lockup-a.tsx index b18fc006..02c12929 100644 --- a/src/components/elements/lockup/lockup-a.tsx +++ b/src/components/elements/lockup/lockup-a.tsx @@ -6,7 +6,7 @@ const LockupA = ({line1, line5, siteName, logoUrl}: FooterLockupProps) => { return (
-
+
@@ -16,7 +16,7 @@ const LockupA = ({line1, line5, siteName, logoUrl}: FooterLockupProps) => {
{line5 && -
+
{line5}
} diff --git a/src/components/elements/lockup/lockup-h.tsx b/src/components/elements/lockup/lockup-h.tsx index 575a9dd4..17740aa5 100644 --- a/src/components/elements/lockup/lockup-h.tsx +++ b/src/components/elements/lockup/lockup-h.tsx @@ -9,7 +9,7 @@ const LockupH = ({line1, line3, line4, siteName, logoUrl}: FooterLockupProps) =>
-
{line4}
+
{line4}
diff --git a/src/components/elements/lockup/lockup-i.tsx b/src/components/elements/lockup/lockup-i.tsx index 17558c6c..0bbf4211 100644 --- a/src/components/elements/lockup/lockup-i.tsx +++ b/src/components/elements/lockup/lockup-i.tsx @@ -9,7 +9,7 @@ const LockupI = ({line1, line3, line4, siteName, logoUrl}: FooterLockupProps) =>
-
{line4}
+
{line4}
diff --git a/src/components/elements/lockup/lockup-p.tsx b/src/components/elements/lockup/lockup-p.tsx index f4c5285b..5735f2ca 100644 --- a/src/components/elements/lockup/lockup-p.tsx +++ b/src/components/elements/lockup/lockup-p.tsx @@ -9,7 +9,7 @@ const LockupP = ({line1, line4, siteName, logoUrl}: FooterLockupProps) => {
-
{line4}
+
{line4}
diff --git a/src/components/elements/lockup/lockup-r.tsx b/src/components/elements/lockup/lockup-r.tsx index 6d98b098..085d7097 100644 --- a/src/components/elements/lockup/lockup-r.tsx +++ b/src/components/elements/lockup/lockup-r.tsx @@ -9,7 +9,7 @@ const LockupR = ({line5, siteName, logoUrl}: FooterLockupProps) => {
-
{line5}
+
{line5}
diff --git a/src/components/global/page-header.tsx b/src/components/global/page-header.tsx index a4df1206..0df62645 100644 --- a/src/components/global/page-header.tsx +++ b/src/components/global/page-header.tsx @@ -22,7 +22,7 @@ const PageHeader = async () => {
Stanford University diff --git a/src/components/menu/main-menu.tsx b/src/components/menu/main-menu.tsx index 45eec70f..f124ce37 100644 --- a/src/components/menu/main-menu.tsx +++ b/src/components/menu/main-menu.tsx @@ -101,7 +101,7 @@ const MenuItem = ({id, url, title, activeTrail, children, level}: MenuItemProps) const inTrail = activeTrail.includes(id) && !isCurrent; const linkStyles = clsx( - 'w-full relative inline-block text-white lg:text-cardinal-red hocus:text-white lg:hocus:text-black no-underline hocus:underline py-5 lg:pl-0 border-l-[6px]', + 'w-full relative inline-block text-white lg:text-digital-red hocus:text-white lg:hocus:text-black no-underline hocus:underline py-5 lg:pl-0 border-l-[6px]', leftPadding[level], // Top menu item styles. { @@ -150,7 +150,7 @@ const MenuItem = ({id, url, title, activeTrail, children, level}: MenuItemProps) {level === 0 &&
}