Skip to content

Commit

Permalink
Merge branch 'main' into dcm-content-r2403
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaenis committed Feb 15, 2024
2 parents 01c5b07 + 0184f06 commit 142921a
Show file tree
Hide file tree
Showing 56 changed files with 2,411 additions and 232 deletions.
2 changes: 1 addition & 1 deletion docs/kit-process/processes/create_KIT_page.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Each folder/KIT's content is structured in at least four pages/subfolders:
type: 'dropdown',
label: 'KITs',
position: 'left',
to: '/developer',
to: '/Kits',
items: [
{
to: '/docs-kits/kits/Business%20Partner%20Kit/Adoption%20View',
Expand Down
8 changes: 2 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const config = {
type: 'dropdown',
label: 'KITs',
position: 'left',
to: '/developer',
to: '/Kits',
items: [
{
to: '/docs-kits/kits/knowledge-agents/adoption-view/intro',
Expand Down Expand Up @@ -568,11 +568,7 @@ const config = {
{
label: "Icons used from svgrepo with CC0 License",
href: "https://www.svgrepo.com/",
},
{
to: '/docs/kits/Behaviour%20Twin%20RuL%20Kit/Adoption%20View%20Remaining%20Useful%20Life%20Kit',
label: 'Behaviour Twin RuL',
},
}
],
},
{
Expand Down
72 changes: 37 additions & 35 deletions src/components/AboutUsCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,40 @@
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import React from "react";
import Link from "@docusaurus/Link";
import AboutUsTeaser from "@site/static/img/about-us-card-minified.png";

import styles from "./styles.module.css";

export default function AboutUsCard() {
return (
<section className={styles.about_us}>
<div className={styles.maincontainer}>
<div className={styles.headercontainer}>
<h2 className={styles.title}>Welcome to the community</h2>
<p className={styles.subtitle}>
The magic behind Eclipse Tractus-X
</p>
</div>
<div className={styles.container}>
<div className={styles.img_container}>
<img className={styles.img} src={AboutUsTeaser} />
</div>
<div className={styles.information_container}>
<p className={styles.description}>
<span className={styles.descriptionhighlight}> The Eclipse Tractus-X™ project</span> is the official open-source project in the Catena-X ecosystem under the umbrella of the Eclipse Foundation. The Eclipse Foundation is a not-for-profit corporation that is supported by over 320 members, and represents the worlds largest sponsored collection of Open Source projects and developers.
</p>
<div>
<Link className={styles.outlinedbutton} to="/aboutus">
About Us
</Link>
</div>
</div>
</div>
</div>
</section>
);
}
import React from "react";
import Link from "@docusaurus/Link";
import AboutUsTeaser from "@site/static/img/about-us-card-minified.png";

import styles from "./styles.module.css";

export default function AboutUsCard({ title, highlightText, description, descriptionhighlight, buttonText, link}) {
return (
<section className={styles.about_us}>
<div className={styles.maincontainer}>
<div className={styles.headercontainer}>
<h2 className={styles.title}>{highlightText}</h2>
<p className={styles.subtitle}>
{title}
</p>
</div>
<div className={styles.container}>
<div className={styles.img_container}>
<img className={styles.img} src={AboutUsTeaser} />
</div>
<div className={styles.information_container}>
<p className={styles.description}>
<span className={styles.descriptionhighlight}> {descriptionhighlight}</span>{description}
</p>
<div>
<Link className={styles.outlinedbutton} to={link}>
{buttonText}
</Link>
</div>
</div>
</div>
</div>
</section>
);
}


9 changes: 8 additions & 1 deletion src/components/AboutUsContent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import React from "react";
import TractusXBG from "@site/static/img/tractus-x_bg-updated.svg";
import LicensesImg from "@site/static/img/licenses-minified.png";

import IFrameComponent from "../../components/IFrameComponent";
import styles from "./styles.module.css";

export default function AboutUsContent() {
Expand Down Expand Up @@ -73,6 +73,13 @@ export default function AboutUsContent() {
<div className={styles.img_container}>
<img className={styles.licenses} src={LicensesImg} />
</div>

<IFrameComponent
link={'https://www.youtube.com/embed/iIaH71z7ENg'}
description={''}
title={''}
headerDescription={''}
/>

</div>
</section>
Expand Down
120 changes: 120 additions & 0 deletions src/components/CarouselSuccessStories/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*********************************************************************************
* Copyright (c) 2023 BMW Group AG
* Copyright (c) 2023 Mercedes Benz AG
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

import React, { useState } from "react";
import Link from "@docusaurus/Link";
import Slider from "react-slick";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

import { successStories } from "@site/utils/successStories";

import ArrowCircleRightOutlinedIcon from '@mui/icons-material/ArrowCircleRightOutlined';
import ArrowCircleLeftOutlinedIcon from '@mui/icons-material/ArrowCircleLeftOutlined';

import styles from "./styles.module.css";

export default function CarouselSuccessStories() {
let [progress, setProgress] = useState((100 / successStories.length))
let [slideToShow, setSlideToShow] = useState(1.1)

const PrevArrow = () => {
return (
<ArrowCircleLeftOutlinedIcon sx={{fontSize: '2rem'}} className={styles.btn_slider_left} onClick={() => slider?.current?.slickPrev()}/>
);
};

const NextArrow = () => {
return (
<ArrowCircleRightOutlinedIcon sx={{fontSize: '2rem'}}className={styles.btn_slider_right} onClick={() => slider?.current?.slickNext()}/>
);
};

let settings = {
dots: false,
infinite: false,
speed: 450,
slidesToShow: 1.1,
slidesToScroll: 1,
arrows: true,
prevArrow: <PrevArrow />,
nextArrow: <NextArrow />,
afterChange: current => {
setProgress(100/ (successStories.length - slideToShow + 1) * (current + 1));
}
};

const slider = React.useRef(null);

const SuccessStoryCard = ({id, img, title, description, pageRoute, buttonName}) => {
return (
<div className={styles.slider_item}>
<div className={styles.slider_img_container}>
<img src={img} className={styles.slider_img}/>
</div>
<div className={styles.slider_info_container}>
<div className={styles.slider_info_box}>
<div>
<h3 className="subtitle-h3">{title}</h3>
</div>
<div>
<p className="description-p">{description}</p>
</div>
<Link className="button" to={pageRoute}>
{buttonName}
</Link>
</div>
</div>
</div>
)
}

return (
<section className={styles.carousel}>
<div className={styles.container}>
<div className={styles.title_container}>
<h2 className="title-h2">Success Stories</h2>
<div className={styles.subtitle_container}>
<p className="subtitle-h3">
Solutions / apps that already used one of the KITs and are sharing their experience with it on how they used the KIT for a use case.
</p>
</div>
</div>

<div className={styles.slider_container}>
<Slider ref={slider} {...settings} className={styles.slider}>
{
successStories.map((story, index)=> {
return (
<SuccessStoryCard key={index} {...story}/>
)
})
}
</Slider>

<div className={styles.progress_bar_container}>
<div className={styles.progress_bar} style={{width: `${progress}%`}}></div>
</div>
</div>
</div>
</section>
);
}
Loading

0 comments on commit 142921a

Please sign in to comment.