Skip to content

Commit

Permalink
Merge pull request #470 from SU-SWS/release/v4.2.4
Browse files Browse the repository at this point in the history
Release/v4.2.4
  • Loading branch information
yvonnetangsu authored Jan 17, 2025
2 parents 1d69953 + e65d289 commit c310b79
Show file tree
Hide file tree
Showing 9 changed files with 258 additions and 155 deletions.
2 changes: 1 addition & 1 deletion src/components/endowed-positions/EndowedPositionsFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const EndowedPositionsFooter = () => (
<p>
This site is a comprehensive directory of endowed positions at Stanford.
It is updated six times per year, following meetings of Stanford&apos;s
Board of Trustees. Last updated November 12, 2024. For questions or
Board of Trustees. Last updated January 17, 2025. For questions or
corrections please email{' '}
<a href="mailto:[email protected]">
[email protected]
Expand Down
4 changes: 2 additions & 2 deletions src/components/media/aspectRatioImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const AspectRatioImage = (props) => {
>
<img
className={`ood-media__image
${props.classPrefix ? `${props.classPrefix}__image` : ''}
su-obj-position-h-${props.visibleHorizontal ?? 'center'}-v-${
${props.classPrefix ? `${props.classPrefix}__image` : ''}
su-obj-position-h-${props.visibleHorizontal ?? 'center'}-v-${
props.visibleVertical ?? 'top'
}`}
src={processedImg}
Expand Down
2 changes: 1 addition & 1 deletion src/components/media/fullWidthImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const FullWidthImage = (props) => {
>
<img
className={`${props.classPrefix ? `${props.classPrefix}__image` : ''}
su-obj-position-h-${props.visibleHorizontal ?? 'center'}-v-${
su-obj-position-h-${props.visibleHorizontal ?? 'center'}-v-${
props.visibleVertical ?? 'top'
}`}
{...(imgSrcset ? { srcSet: imgSrcset } : {})}
Expand Down
4 changes: 2 additions & 2 deletions src/components/partials/campaignFullWidthHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SbEditable from 'storyblok-react';
import CreateBloks from '../../utilities/createBloks';
import Heading from './heading';
import FullWidthImage from '../media/fullWidthImage';
import FlexCell from './flexCell';
import transformImage from '../../utilities/transformImage';

/* The Hero section with fullwidth image is referenced by the Campaign Page type. */

Expand Down Expand Up @@ -32,7 +32,7 @@ const CampaignFullWidthHero = (props) => {
{props.blok.logo?.filename != null && (
<img
className={'hero-logo'}
src={props.blok.logo?.filename}
src={transformImage(props.blok.logo?.filename)}
alt={props.blok.logo?.alt}
/>
)}
Expand Down
3 changes: 2 additions & 1 deletion src/components/partials/campaignHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import cx from 'classnames';
import CreateBloks from '../../utilities/createBloks';
import Heading from './heading';
import FullWidthImage from '../media/fullWidthImage';
import transformImage from '../../utilities/transformImage';

/* The Hero section with fullwidth image is referenced by the Campaign Page type. */

Expand Down Expand Up @@ -63,7 +64,7 @@ const CampaignHero = (props) => {
{blok.logo?.filename && (
<img
className={`campaign-page__hero-content-logo ${blok.logoAlignment}`}
src={blok.logo?.filename}
src={transformImage(blok.logo?.filename)}
alt={blok.logo?.alt}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/partials/campaignLeftImageHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SbEditable from 'storyblok-react';
import CreateBloks from '../../utilities/createBloks';
import Heading from './heading';
import FullWidthImage from '../media/fullWidthImage';
import FlexCell from './flexCell';
import transformImage from '../../utilities/transformImage';

/* The Hero section with image on the left is referenced by the Campaign Page type. */

Expand Down Expand Up @@ -31,7 +31,7 @@ const CampaignLeftImageHero = (props) => {
{props.blok.logo.filename && (
<img
className={'hero-logo'}
src={props.blok.logo.filename}
src={transformImage(props.blok.logo.filename)}
alt={props.blok.logo.alt}
/>
)}
Expand Down
3 changes: 2 additions & 1 deletion src/components/partials/headerFullWidthImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Heading from './heading';
import { config } from '../../utilities/config';
import FullWidthImage from '../media/fullWidthImage';
import FlexCell from './flexCell';
import transformImage from '../../utilities/transformImage';

/* The Header with Fullwidth Image component is referenced by the Interior Page type. */

Expand Down Expand Up @@ -48,7 +49,7 @@ const HeaderFullWidthImage = (props) => {
{props.blok.headerLogo.filename && (
<img
className={'header-logo'}
src={props.blok.headerLogo.filename}
src={transformImage(props.blok.headerLogo.filename)}
alt={props.blok.headerLogo.alt}
/>
)}
Expand Down
Loading

0 comments on commit c310b79

Please sign in to comment.