Merge pull request #10766 from strapi/feature/socialLogos

Update Landing page social links
This commit is contained in:
Alexandre BODIN 2021-08-24 10:54:37 +02:00 committed by GitHub
commit e69ab291d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 22 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -7,11 +7,10 @@ import React, { memo } from 'react';
import PropTypes from 'prop-types';
import Gh from '../../assets/images/social_gh.png';
import Slack from '../../assets/images/social_slack.png';
import Medium from '../../assets/images/social_medium.png';
import Discord from '../../assets/images/social_discord.png';
import Twitter from '../../assets/images/social_twitter.png';
import Reddit from '../../assets/images/social_reddit.png';
import Forum from '../../assets/images/social_forum.png';
import Strapi from '../../assets/images/social_strapi.png';
import { SocialLinkWrapper } from './components';
@ -21,17 +20,16 @@ function getSrc(name) {
return Gh;
case 'Reddit':
return Reddit;
case 'Medium':
return Medium;
case 'Slack':
return Slack;
case 'Discord':
return Discord;
case 'Twitter':
return Twitter;
case 'Blog':
case 'Forum':
case 'Academy':
return Forum;
case 'Careers':
return Strapi;
default:
return Gh;
return Strapi;
}
}

View File

@ -36,28 +36,28 @@ const SOCIAL_LINKS = [
link: 'https://github.com/strapi/strapi/',
},
{
name: 'Slack',
link: 'https://slack.strapi.io/',
},
{
name: 'Medium',
link: 'https://medium.com/@strapi',
},
{
name: 'Twitter',
link: 'https://twitter.com/strapijs',
name: 'Discord',
link: 'https://discord.strapi.io/',
},
{
name: 'Reddit',
link: 'https://www.reddit.com/r/Strapi/',
},
{
name: 'Twitter',
link: 'https://twitter.com/strapijs',
},
{
name: 'Blog',
link: 'https://strapi.io/blog',
},
{
name: 'Forum',
link: 'https://forum.strapi.io',
},
{
name: 'Academy',
link: 'https://academy.strapi.io',
name: 'Careers',
link: 'https://strapi.io/careers',
},
];