docs: add Seven-innovation-base to showcase (#7144)

* 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>
This commit is contained in:
redhat123456 2022-04-11 10:59:19 +08:00 committed by GitHub
parent f4ab7c65ac
commit 0abf4d706c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -25,7 +25,7 @@ await Promise.all(
new URL(`../../website/src/data/showcase/${img}`, import.meta.url), new URL(`../../website/src/data/showcase/${img}`, import.meta.url),
); );
const {width, height} = imageSize(imgPath); 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 // Do not emit if not resized. Important because we can't guarantee
// idempotency during resize -> optimization // idempotency during resize -> optimization
return; return;

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -1617,6 +1617,14 @@ const Users: User[] = [
source: 'https://github.com/sciwp/docs', source: 'https://github.com/sciwp/docs',
tags: ['opensource'], 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', title: 'Single SPA',
description: 'A javascript router for front-end microservices', description: 'A javascript router for front-end microservices',