forked from eclipse-tractusx/eclipse-tractusx.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kits): update home page corousel component with new data. Create…
… Kits page and relavent sub pages
- Loading branch information
1 parent
56cf886
commit 4adb0d7
Showing
31 changed files
with
1,002 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/********************************************************************************* | ||
* 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 styles from "./styles.module.css"; | ||
|
||
export default function IFrameComponent({ title, description, link, headerDescription }) { | ||
const [display, setDisplay] = useState('block'); | ||
|
||
return ( | ||
<div className={styles.title_container}> | ||
{headerDescription && ( | ||
<p className="description-p"> | ||
{headerDescription} | ||
</p> | ||
)} | ||
<h2 className="title-h2">{title}</h2> | ||
|
||
<p className="description-p"> | ||
{description} | ||
</p> | ||
|
||
<div className={styles.iframe_container}> | ||
<div | ||
className={styles.thumbnail} | ||
style={{ display: display }} | ||
onMouseOver={() => setDisplay("none")} | ||
></div> | ||
<iframe | ||
width="100%" | ||
height="450" | ||
src={link} | ||
title="YouTube video player" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | ||
allowFullScreen | ||
></iframe> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/** | ||
* CSS files with the .module.css suffix will be treated as CSS modules | ||
* and scoped locally. | ||
*/ | ||
|
||
.title_container { | ||
width: 100%; | ||
height: auto; | ||
padding-top: 4rem; | ||
} | ||
|
||
.siblings_paragraph_container { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.siblings_paragraph { | ||
width: 40%; | ||
} | ||
|
||
.img_container { | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
margin: 2rem 0; | ||
} | ||
|
||
.img { | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.iframe_container { | ||
width: 100%; | ||
height: 450px; | ||
position: relative; | ||
} | ||
|
||
.thumbnail { | ||
width: 100%; | ||
height: 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
background-image: url("/static/img/main_bg-min.png"); | ||
background-position: left center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
|
||
@media screen and (max-width: 996px) { | ||
|
||
.title_container { | ||
padding-top: 3rem; | ||
} | ||
|
||
.siblings_paragraph_container { | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.siblings_paragraph { | ||
width: 90%; | ||
} | ||
|
||
.img { | ||
width: 100%; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
|
||
.img { | ||
width: 100%; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/********************************************************************************* | ||
* 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 from "react"; | ||
import Link from "@docusaurus/Link"; | ||
import NewsTicker from "../NewsTicker"; | ||
|
||
import styles from "./styles.module.css"; | ||
|
||
export default function KitsPageHeader() { | ||
return ( | ||
<header className={styles.heroBanner}> | ||
<div className={styles.container}> | ||
<h1 className={styles.title}> | ||
KIT | ||
</h1> | ||
<div className={styles.subtitle_box}> | ||
<p className={styles.subtitle}> | ||
Introduction to the Catena-X KITS. | ||
</p> | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
} | ||
|
Oops, something went wrong.