Skip to content

Commit

Permalink
Merge pull request #10766 from strapi/feature/socialLogos
Browse files Browse the repository at this point in the history
Update Landing page social links
  • Loading branch information
alexandrebodin authored Aug 24, 2021
2 parents 40ce999 + a46cb75 commit e69ab29
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
18 changes: 8 additions & 10 deletions packages/strapi-admin/admin/src/containers/HomePage/SocialLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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;
}
}

Expand Down
16 changes: 8 additions & 8 deletions packages/strapi-admin/admin/src/containers/HomePage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,28 @@ const SOCIAL_LINKS = [
link: 'https://github.com/strapi/strapi/',
},
{
name: 'Slack',
link: 'https://slack.strapi.io/',
name: 'Discord',
link: 'https://discord.strapi.io/',
},
{
name: 'Medium',
link: 'https://medium.com/@strapi',
name: 'Reddit',
link: 'https://www.reddit.com/r/Strapi/',
},
{
name: 'Twitter',
link: 'https://twitter.com/strapijs',
},
{
name: 'Reddit',
link: 'https://www.reddit.com/r/Strapi/',
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',
},
];

Expand Down

0 comments on commit e69ab29

Please sign in to comment.