Skip to content

Commit 257511c

Browse files
committed
docs: fix images for project templates
1 parent 9bfc3ce commit 257511c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.storybook/components/ProjectTemplate.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import TsLogo from '@sb/images/logo-ts.png';
12
import {
23
Avatar,
34
Card,
@@ -42,7 +43,7 @@ export function ProjectTemplate(props: ProjectTemplatePropTypes) {
4243
action={
4344
isTypeScript && (
4445
<img
45-
src={'/ts-logo-128.png'}
46+
src={TsLogo}
4647
height={24}
4748
width={24}
4849
alt={'TypeScript Logo'}
File renamed without changes.

docs/ProjectTemplates.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { Footer, ProjectTemplate, TableOfContent } from '@sb/components';
22
import { Meta } from '@storybook/blocks';
33
import { Label } from '@ui5/webcomponents-react';
4+
import NextLogo from '@sb/images/logo-nextjs.svg';
5+
import ViteLogo from '@sb/images/logo-vitejs.svg';
6+
import CraLogo from '@sb/images/logo-cra.svg';
47

58
<Meta title="Project Templates" />
69

@@ -17,7 +20,7 @@ A curated list of project templates to get started using UI5 Web Components for
1720
<ProjectTemplate
1821
title={'Next.js'}
1922
subtitle={'App Router'}
20-
logo="/logo-nextjs.svg"
23+
logo={NextLogo}
2124
logoAttribution={'Next.js Logo. Original Source: https://vercel.com/design/brands#next-js'}
2225
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-app'}
2326
isTypeScript
@@ -35,7 +38,7 @@ A curated list of project templates to get started using UI5 Web Components for
3538
<ProjectTemplate
3639
title={'Next.js'}
3740
subtitle={'Pages Router'}
38-
logo="/logo-nextjs.svg"
41+
logo={NextLogo}
3942
logoAttribution={'Next.js Logo. Original Source: https://vercel.com/design/brands#next-js'}
4043
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/nextjs-pages'}
4144
isTypeScript
@@ -52,7 +55,7 @@ A curated list of project templates to get started using UI5 Web Components for
5255

5356
<ProjectTemplate
5457
title={'Vite.js'}
55-
logo="/logo-vitejs.svg"
58+
logo={ViteLogo}
5659
logoAttribution={'Vite.js Logo. Original Source: https://github.com/vitejs/vite/blob/main/docs/public/logo.svg '}
5760
href={'https://github.com/SAP/ui5-webcomponents-react/tree/main/examples/vite-ts'}
5861
isTypeScript
@@ -71,7 +74,7 @@ A curated list of project templates to get started using UI5 Web Components for
7174
<ProjectTemplate
7275
title={'Create React App'}
7376
subtitle={'Basic Template'}
74-
logo="/logo-cra.svg"
77+
logo={CraLogo}
7578
logoAttribution={
7679
'Create React App Logo. Original Source: https://github.com/facebook/create-react-app/blob/main/docusaurus/website/static/img/logo.svg'
7780
}
@@ -88,7 +91,7 @@ A curated list of project templates to get started using UI5 Web Components for
8891
<ProjectTemplate
8992
title={'Create React App'}
9093
subtitle={'Advanced Template'}
91-
logo="/logo-cra.svg"
94+
logo={CraLogo}
9295
logoAttribution={
9396
'Create React App Logo. Original Source: https://github.com/facebook/create-react-app/blob/main/docusaurus/website/static/img/logo.svg '
9497
}

0 commit comments

Comments
 (0)