Skip to content

Commit

Permalink
DS-1060: Ensure all links go to dev Netlify sites. (#468)
Browse files Browse the repository at this point in the history
* DS-1060: Ensure all links go to dev Netlify sites.
  • Loading branch information
sherakama authored Jan 11, 2025
1 parent 19b119f commit 2eaefa7
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
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
5 changes: 4 additions & 1 deletion src/pages/citizenship.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CenteredContainer from '../components/partials/centeredContainer';
import SbLink from '../components/partials/sbLink';

const ForeignSourceReporting = ({ data }) => {
const isProduction = process.env.CONTEXT === 'production';
const oodLocalHeader = {
...data?.header,
content: JSON.parse(data?.header.content),
Expand Down Expand Up @@ -56,7 +57,9 @@ const ForeignSourceReporting = ({ data }) => {
<SbLink
linkType="url"
link={{
url: 'https://giving.stanford.edu/gift-policies/',
url: isProduction
? 'https://giving.stanford.edu/gift-policies/'
: 'https://dev--adapt-giving.netlify.app/gift-policies/',
}}
>
Stanford’s Gift Policy
Expand Down

0 comments on commit 2eaefa7

Please sign in to comment.