Refactor components to simplify them
This commit is contained in:
parent
3cf5b14913
commit
077ed9d3bf
36 changed files with 202 additions and 216 deletions
|
|
@ -1,13 +1,16 @@
|
|||
import { ImageAnchorFactory } from '../page/basics/image-anchor/image-anchor';
|
||||
|
||||
import cvIcon from '../../static/icons/cv.svg';
|
||||
import githubIcon from '../../static/icons/github.svg';
|
||||
import openIcon from '../../static/icons/open.svg';
|
||||
import cvIcon from '../../static/icons/cv.svg';
|
||||
import packageIcon from '../../static/icons/package.svg';
|
||||
import pythonIcon from '../../static/icons/python.svg';
|
||||
import youtubeIcon from '../../static/icons/youtube.svg';
|
||||
import { ImageAnchorFactory } from '../page/basics/image-anchor/image-anchor';
|
||||
|
||||
export const GitHub = ImageAnchorFactory(githubIcon, 'Open on GitHub');
|
||||
export const NPM = ImageAnchorFactory(packageIcon, 'Open on npm');
|
||||
export const PyPi = ImageAnchorFactory(pythonIcon, 'Open on PyPi');
|
||||
export const Open = ImageAnchorFactory(openIcon, 'Open in new tab');
|
||||
export const Thesis = ImageAnchorFactory(cvIcon, 'Download thesis');
|
||||
export const Thesis = ImageAnchorFactory(cvIcon, 'Download thesis', {
|
||||
shouldDownload: true,
|
||||
});
|
||||
export const Youtube = ImageAnchorFactory(youtubeIcon, 'Open on YouTube');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue