diff options
| author | crupest <crupest@outlook.com> | 2020-06-16 16:22:42 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-06-16 16:22:42 +0800 | 
| commit | b38beb5a731d5e897103aa1d8b9056a1f4b04a64 (patch) | |
| tree | f1686f6a195aee7cb44984479b6ad65041268a38 /Timeline/ClientApp/src/app/about/About.tsx | |
| parent | 8171cca7bc650f460b821e61b854943dda625661 (diff) | |
| download | timeline-b38beb5a731d5e897103aa1d8b9056a1f4b04a64.tar.gz timeline-b38beb5a731d5e897103aa1d8b9056a1f4b04a64.tar.bz2 timeline-b38beb5a731d5e897103aa1d8b9056a1f4b04a64.zip  | |
feat(front): Use bootstrap icons.
Diffstat (limited to 'Timeline/ClientApp/src/app/about/About.tsx')
| -rw-r--r-- | Timeline/ClientApp/src/app/about/About.tsx | 26 | 
1 files changed, 9 insertions, 17 deletions
diff --git a/Timeline/ClientApp/src/app/about/About.tsx b/Timeline/ClientApp/src/app/about/About.tsx index bce4c06e..841ec6fe 100644 --- a/Timeline/ClientApp/src/app/about/About.tsx +++ b/Timeline/ClientApp/src/app/about/About.tsx @@ -2,18 +2,17 @@ import React from 'react';  import { useTranslation, Trans } from 'react-i18next';  import authorAvatarUrl from './author-avatar.png'; +import githubLogoUrl from './github.png';  import AppBar from '../common/AppBar';  const frontendCredits: {    name: string;    url: string; -  icon?: string;  }[] = [    {      name: 'reactjs',      url: 'https://reactjs.org', -    icon: 'react',    },    {      name: 'typescript', @@ -22,7 +21,6 @@ const frontendCredits: {    {      name: 'bootstrap',      url: 'https://getbootstrap.com', -    icon: 'bootstrap',    },    {      name: 'reactstrap', @@ -39,12 +37,6 @@ const frontendCredits: {    {      name: 'sass',      url: 'https://sass-lang.com', -    icon: 'sass', -  }, -  { -    name: 'fontawesome', -    url: 'https://fontawesome.com', -    icon: 'font-awesome-flag',    },    {      name: 'eslint', @@ -58,12 +50,15 @@ const frontendCredits: {      name: 'pepjs',      url: 'https://github.com/jquery/PEP',    }, +  { +    name: 'react-inlinesvg', +    url: 'https://github.com/gilbarbara/react-inlinesvg', +  },  ];  const backendCredits: {    name: string;    url: string; -  icon?: string;  }[] = [    {      name: 'ASP.NET Core', @@ -113,7 +108,10 @@ const About: React.FC = () => {                  target="_blank"                  rel="noopener noreferrer"                > -                <i className="fab fa-github about-link-icon text-body" /> +                <img +                  src={githubLogoUrl} +                  className="about-link-icon text-body" +                />                </a>              </p>            </div> @@ -145,9 +143,6 @@ const About: React.FC = () => {                return (                  <li key={index}>                    <a href={item.url} target="_blank" rel="noopener noreferrer"> -                    {item.icon != null && ( -                      <i className={'fab fa-' + item.icon + ' mx-2'} /> -                    )}                      {item.name}                    </a>                  </li> @@ -161,9 +156,6 @@ const About: React.FC = () => {                return (                  <li key={index}>                    <a href={item.url} target="_blank" rel="noopener noreferrer"> -                    {item.icon != null && ( -                      <i className={'fab fa-' + item.icon + ' mx-2'} /> -                    )}                      {item.name}                    </a>                  </li>  | 
