Skip to content

Commit

Permalink
docs: add Seven-innovation-base to showcase (#7144)
Browse files Browse the repository at this point in the history
* Update users.tsx

* Add files via upload

* Update users.tsx

* Update users.tsx

* Delete 1.png

* Add files via upload

* optimize image

* fix tags

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
  • Loading branch information
redhat123456 and Josh-Cena authored Apr 11, 2022
1 parent f4ab7c6 commit 0abf4d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/scripts/image-resize.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ await Promise.all(
new URL(`../../website/src/data/showcase/${img}`, import.meta.url),
);
const {width, height} = imageSize(imgPath);
if (width === 640 && height === 320) {
if (width === 640 && height === 320 && imgPath.endsWith('.png')) {
// Do not emit if not resized. Important because we can't guarantee
// idempotency during resize -> optimization
return;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions website/src/data/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,14 @@ const Users: User[] = [
source: 'https://github.com/sciwp/docs',
tags: ['opensource'],
},
{
title: 'Seven-innovation-base official website',
description: 'About seven-innovation-base',
preview: require('./showcase/seven-innovation-base.png'),
website: 'https://七院创新基地.cn',
source: 'https://github.com/seven-innovation-base/official-website',
tags: ['opensource', 'personal'],
},
{
title: 'Single SPA',
description: 'A javascript router for front-end microservices',
Expand Down

0 comments on commit 0abf4d7

Please sign in to comment.