Skip to content

Commit

Permalink
chore: update Migration guide, update website img assets (#9337)
Browse files Browse the repository at this point in the history
* chore: update Migration guide, update website img assets

* chore: update
  • Loading branch information
ilhan007 authored Jun 29, 2024
1 parent 472e9fc commit d42bf96
Show file tree
Hide file tree
Showing 26 changed files with 1,467 additions and 307 deletions.
1,639 changes: 1,434 additions & 205 deletions docs/Migrating to version 2.0 guide.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const config: Config = {
title: 'UI5 Web Components',
logo: {
alt: 'UI5 Web Components Logo',
src: 'img/LogoWater.svg',
srcDark: 'img/LogoFire.svg',
src: 'img/logos/LogoWater.svg',
srcDark: 'img/logos/LogoFire.svg',
},
items: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
}

.demo-apps__link {
color: #3584BE;
text-align: center;
font-size: 0.875rem;
display: inline-block;
Expand Down
22 changes: 16 additions & 6 deletions packages/website/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import BuildingsDark from "@site/static/img/features/dark/Buildings.svg";
import FrameDark from "@site/static/img/features/dark/Frame.svg";
import HandDark from "@site/static/img/features/dark/Hand.svg";


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

type FeatureItem = {
Expand All @@ -18,26 +17,34 @@ type FeatureItem = {
SVGDark?: React.ComponentType<React.SVGProps<SVGSVGElement> & {
title?: string;
}>;
description: JSX.Element;
src?: string,
srcDark?: string,
description: JSX.Element,
cssClass?: string,
};

const FeatureList: FeatureItem[] = [
{
title: 'Easy to Use',
SVG: Frame,
SVGDark: FrameDark,
src: null,
srcDark: null,
description: (
<>
Based on web standards - just HTML!
Future-proof.
Easy to add to your project.
</>
),
cssClass: "feature__image_frame"
},
{
title: 'Lightweight',
SVG: Hand,
SVGDark: HandDark,
src: null,
srcDark: null,
description: (
<>
Tiny - come with a minimal footprint.
Expand All @@ -50,6 +57,8 @@ const FeatureList: FeatureItem[] = [
title: 'Enterprise Ready',
SVG: Buildings,
SVGDark: BuildingsDark,
src: require('@site/static/img/features/light/Buildings_Water.png').default,
srcDark: require('@site/static/img/features/dark/Buildings_Fire.png').default,
description: (
<>
Implements latest SAP Design language.
Expand All @@ -60,14 +69,15 @@ const FeatureList: FeatureItem[] = [
},
];

function Feature({ title, SVG, SVGDark, description }: FeatureItem) {
function Feature({ title, SVG, SVGDark, src, srcDark, description, cssClass }: FeatureItem) {
const { colorMode } = useColorMode();
const light = colorMode === "light";

return (
<div className="feature">
{colorMode === "light" ? <SVG className='feature__image'/> : <SVGDark className='feature__image'/>}
<h2 className="feature__title">{title}</h2>
<p className="feature__desc">{description}</p>
{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}`}/>}
<h2 className="feature__title">{title}</h2>
<p className="feature__desc">{description}</p>
</div>
);
}
Expand Down
11 changes: 8 additions & 3 deletions packages/website/src/components/HomepageFeatures/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
width: 10rem;
}

.feature__image.feature__image_frame {
width: 14rem;
}

.feature {
display: flex;
flex-direction: column;
Expand All @@ -37,18 +41,19 @@

.feature__title {
font-weight: 700;
font-size: var(--ifm-h3-font-size);
font-style: normal;
text-align: center;
margin-top: 1rem;
margin-bottom: 1rem;
text-wrap: wrap;
}

.feature__desc {
font-size: 1rem;
margin-bottom: 4rem;
font-style: normal;
font-weight: 300;
text-wrap: wrap;
text-align: center;
max-width: 26rem;
}

@media (max-width: 900px) {
Expand Down
5 changes: 5 additions & 0 deletions packages/website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ code {
font-weight: bold;
}

.button--getting-started {
border-radius: 1.215rem;
padding: 0.5rem 1.24rem 0.5rem 1.24rem;
}

@media (max-width: 996px) {
.navbar__title {
font-size: 0.875rem;
Expand Down
5 changes: 2 additions & 3 deletions packages/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
import HomepageDemoApps from '@site/src/components/HomepageDemoApps';
import HomepageTestimonials from '@site/src/components/HomepageTestimonials';
import Heading from '@theme/Heading';
import LogoWater from "@site/static/img/compatibility-frameworks/LogoWater.svg";
import LogoFire from "@site/static/img/compatibility-frameworks/LogoFire.svg";
import LogoWater from "@site/static/img/logos/LogoWater.svg";
import LogoFire from "@site/static/img/logos/LogoFire.svg";

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

Expand Down Expand Up @@ -72,7 +72,6 @@ export default function Home(): JSX.Element {
<HomepageHeader />
<main>
<HomepageFeatures />
{/* <HomepageCompatibility /> */}
<HomepageDemoApps />
<HomepageTestimonials />
</main>
Expand Down
Binary file removed packages/website/static/img/buildings.png
Binary file not shown.
29 changes: 0 additions & 29 deletions packages/website/static/img/compatibility-frameworks/LogoFire.svg

This file was deleted.

29 changes: 0 additions & 29 deletions packages/website/static/img/compatibility-frameworks/LogoWater.svg

This file was deleted.

29 changes: 0 additions & 29 deletions packages/website/static/img/compatibility-frameworks/UI5_new.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/website/static/img/features/Frame.png
Binary file not shown.
Binary file removed packages/website/static/img/features/buildings.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/website/static/img/features/hand.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed packages/website/static/img/logo.png
Binary file not shown.
File renamed without changes
File renamed without changes

0 comments on commit d42bf96

Please sign in to comment.