Skip to content

Commit

Permalink
Add new FOSS projects (#33)
Browse files Browse the repository at this point in the history
* Add research projects by PDC to carousel
* Add POSP repository to list of projects

---------

Signed-off-by: Eduard Itrich <[email protected]>
on-behalf-of: @porscheofficial <[email protected]>
  • Loading branch information
itrich authored Nov 28, 2023
1 parent 6171183 commit 7140d8a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
11 changes: 11 additions & 0 deletions data/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,22 @@ items:
imageSrc: https://raw.githubusercontent.com/oss-review-toolkit/ort/main/logos/logo.png
imageAlt: OSS Review Toolkit Avatar
status: Upstream
- title: Research @ Porsche Digital Campus
repo: https://github.com/search?q=topic%3Aresearch+org%3Aporscheofficial&type=Repositories
description: Code published alongside various academic research projects.
imageSrc: https://uploads-ssl.webflow.com/6419a4c2c9609e21b02a47e8/6454e539d4ea54c08e42aedb_Frame%2010683.png
imageAlt: Porsche Digital Campus
status: Public
- title: Porsche Design System China (PUI-CN)
repo: https://github.com/porsche-design-system/porsche-design-system-china
imageSrc: https://raw.githubusercontent.com/porsche-design-system/porsche-design-system/main/packages/crest/src/porsche-crest%403x.png
imageAlt: Porsche Design System Avatar
status: Public
- title: Porsche Open Source Platform
repo: https://github.com/porscheofficial/porscheofficial.github.io
imageSrc: assets/logos/POSP-square.jpg
imageAlt: Porsche Open Source Platform
status: Public
- title: mbeddr.formal
repo: https://github.com/mbeddr/mbeddr.formal
imageSrc: https://raw.githubusercontent.com/mbeddr/mbeddr.core/master/logos/2013/blue_orange/LogoBigTransparent.png
Expand Down
Binary file added public/assets/logos/POSP-square.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions remoteOptimizedImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = [
"https://eslint.org/icon-512.png",
"https://developer.android.com/static/images/brand/Android_Robot.png",
"https://raw.githubusercontent.com/mbeddr/mbeddr.core/master/logos/2013/blue_orange/LogoBigTransparent.png",
"https://uploads-ssl.webflow.com/6419a4c2c9609e21b02a47e8/6454e539d4ea54c08e42aedb_Frame%2010683.png",
"https://newsroom.porsche.com/.imaging/mte/porsche-templating-theme/image_690x388/dam/pnr/other/executive-board/Meschke/pictures-NEW/New/Meschke1.jpg/jcr:content/Meschke1.jpg",
"https://www.linuxfoundation.org/hubfs/OSPO_FeaturedImage.png",
];
7 changes: 4 additions & 3 deletions src/components/03_organisms/projectCard/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ export const ProjectCard: React.FC<ProjectCardProps> = async ({
imageAlt,
status,
}) => {
const githubData: GithubResponse | null = repo.includes("https://github.com/")
? await getGitHubData(repo.split("https://github.com/")[1])
: null;
const githubData: GithubResponse | null =
repo.includes("https://github.com/") && !repo.includes("search?q=")
? await getGitHubData(repo.split("https://github.com/")[1])
: null;
return (
<div className={s.card}>
<div className={s.image}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
z-index: 2;

img {
border-radius: $pds-border-radius-medium $pds-border-radius-medium 0 0;
border-radius: $pds-border-radius-medium $pds-border-radius-medium;
object-fit: contain;
}
}
Expand Down

0 comments on commit 7140d8a

Please sign in to comment.