Skip to content

Commit d42bf96

Browse files
authored
chore: update Migration guide, update website img assets (SAP#9337)
* chore: update Migration guide, update website img assets * chore: update
1 parent 472e9fc commit d42bf96

26 files changed

+1467
-307
lines changed

docs/Migrating to version 2.0 guide.md

Lines changed: 1434 additions & 205 deletions
Large diffs are not rendered by default.

packages/website/docusaurus.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ const config: Config = {
8888
title: 'UI5 Web Components',
8989
logo: {
9090
alt: 'UI5 Web Components Logo',
91-
src: 'img/LogoWater.svg',
92-
srcDark: 'img/LogoFire.svg',
91+
src: 'img/logos/LogoWater.svg',
92+
srcDark: 'img/logos/LogoFire.svg',
9393
},
9494
items: [
9595
{

packages/website/src/components/HomepageDemoApps/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
}
6464

6565
.demo-apps__link {
66-
color: #3584BE;
6766
text-align: center;
6867
font-size: 0.875rem;
6968
display: inline-block;

packages/website/src/components/HomepageFeatures/index.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import BuildingsDark from "@site/static/img/features/dark/Buildings.svg";
77
import FrameDark from "@site/static/img/features/dark/Frame.svg";
88
import HandDark from "@site/static/img/features/dark/Hand.svg";
99

10-
1110
import { useColorMode } from '@docusaurus/theme-common';
1211

1312
type FeatureItem = {
@@ -18,26 +17,34 @@ type FeatureItem = {
1817
SVGDark?: React.ComponentType<React.SVGProps<SVGSVGElement> & {
1918
title?: string;
2019
}>;
21-
description: JSX.Element;
20+
src?: string,
21+
srcDark?: string,
22+
description: JSX.Element,
23+
cssClass?: string,
2224
};
2325

2426
const FeatureList: FeatureItem[] = [
2527
{
2628
title: 'Easy to Use',
2729
SVG: Frame,
2830
SVGDark: FrameDark,
31+
src: null,
32+
srcDark: null,
2933
description: (
3034
<>
3135
Based on web standards - just HTML!
3236
Future-proof.
3337
Easy to add to your project.
3438
</>
3539
),
40+
cssClass: "feature__image_frame"
3641
},
3742
{
3843
title: 'Lightweight',
3944
SVG: Hand,
4045
SVGDark: HandDark,
46+
src: null,
47+
srcDark: null,
4148
description: (
4249
<>
4350
Tiny - come with a minimal footprint.
@@ -50,6 +57,8 @@ const FeatureList: FeatureItem[] = [
5057
title: 'Enterprise Ready',
5158
SVG: Buildings,
5259
SVGDark: BuildingsDark,
60+
src: require('@site/static/img/features/light/Buildings_Water.png').default,
61+
srcDark: require('@site/static/img/features/dark/Buildings_Fire.png').default,
5362
description: (
5463
<>
5564
Implements latest SAP Design language.
@@ -60,14 +69,15 @@ const FeatureList: FeatureItem[] = [
6069
},
6170
];
6271

63-
function Feature({ title, SVG, SVGDark, description }: FeatureItem) {
72+
function Feature({ title, SVG, SVGDark, src, srcDark, description, cssClass }: FeatureItem) {
6473
const { colorMode } = useColorMode();
74+
const light = colorMode === "light";
6575

6676
return (
6777
<div className="feature">
68-
{colorMode === "light" ? <SVG className='feature__image'/> : <SVGDark className='feature__image'/>}
69-
<h2 className="feature__title">{title}</h2>
70-
<p className="feature__desc">{description}</p>
78+
{src ? light ? <img className='feature__image' src={src} /> : <img className='feature__image' src={srcDark} /> : light ? <SVG className={`feature__image ${cssClass}`}/> : <SVGDark className={`feature__image ${cssClass}`}/>}
79+
<h2 className="feature__title">{title}</h2>
80+
<p className="feature__desc">{description}</p>
7181
</div>
7282
);
7383
}

packages/website/src/components/HomepageFeatures/styles.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
width: 10rem;
2323
}
2424

25+
.feature__image.feature__image_frame {
26+
width: 14rem;
27+
}
28+
2529
.feature {
2630
display: flex;
2731
flex-direction: column;
@@ -37,18 +41,19 @@
3741

3842
.feature__title {
3943
font-weight: 700;
40-
font-size: var(--ifm-h3-font-size);
44+
font-style: normal;
4145
text-align: center;
4246
margin-top: 1rem;
4347
margin-bottom: 1rem;
4448
text-wrap: wrap;
4549
}
4650

4751
.feature__desc {
48-
font-size: 1rem;
49-
margin-bottom: 4rem;
52+
font-style: normal;
53+
font-weight: 300;
5054
text-wrap: wrap;
5155
text-align: center;
56+
max-width: 26rem;
5257
}
5358

5459
@media (max-width: 900px) {

packages/website/src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ code {
188188
font-weight: bold;
189189
}
190190

191+
.button--getting-started {
192+
border-radius: 1.215rem;
193+
padding: 0.5rem 1.24rem 0.5rem 1.24rem;
194+
}
195+
191196
@media (max-width: 996px) {
192197
.navbar__title {
193198
font-size: 0.875rem;

packages/website/src/pages/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
77
import HomepageDemoApps from '@site/src/components/HomepageDemoApps';
88
import HomepageTestimonials from '@site/src/components/HomepageTestimonials';
99
import Heading from '@theme/Heading';
10-
import LogoWater from "@site/static/img/compatibility-frameworks/LogoWater.svg";
11-
import LogoFire from "@site/static/img/compatibility-frameworks/LogoFire.svg";
10+
import LogoWater from "@site/static/img/logos/LogoWater.svg";
11+
import LogoFire from "@site/static/img/logos/LogoFire.svg";
1212

1313
import styles from './index.module.css';
1414

@@ -72,7 +72,6 @@ export default function Home(): JSX.Element {
7272
<HomepageHeader />
7373
<main>
7474
<HomepageFeatures />
75-
{/* <HomepageCompatibility /> */}
7675
<HomepageDemoApps />
7776
<HomepageTestimonials />
7877
</main>
-6.27 KB
Binary file not shown.

packages/website/static/img/compatibility-frameworks/LogoFire.svg

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/website/static/img/compatibility-frameworks/LogoWater.svg

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/website/static/img/compatibility-frameworks/UI5_new.svg

Lines changed: 0 additions & 29 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-28.3 KB
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
-15.6 KB
Binary file not shown.
Loading
Loading
Loading

packages/website/static/img/logo.png

-27.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)