react-icons/hi#HiArrowRight JavaScript Examples
The following examples show how to use
react-icons/hi#HiArrowRight.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Blog.js From developer-portfolio with Apache License 2.0 | 5 votes |
function Blog() {
const { theme } = useContext(ThemeContext);
const useStyles = makeStyles(() => ({
viewAllBtn : {
color: theme.tertiary,
backgroundColor: theme.primary,
"&:hover": {
color: theme.secondary,
backgroundColor: theme.primary,
}
},
viewArr : {
color: theme.tertiary,
backgroundColor: theme.secondary70,
width: '40px',
height: '40px',
padding: '0.5rem',
fontSize: '1.05rem',
borderRadius: '50%',
cursor: 'pointer',
"&:hover": {
color: theme.tertiary,
backgroundColor: theme.secondary,
}
},
}));
const classes = useStyles();
return (
<>
{blogData.length > 0 && (
<div className="blog" id="blog" style={{backgroundColor: theme.secondary}}>
<div className="blog--header">
<h1 style={{color: theme.primary}}>Blog</h1>
</div>
<div className="blog--body">
<div className="blog--bodyContainer">
{blogData.slice(0, 3).reverse().map(blog => (
<SingleBlog
theme={theme}
title={blog.title}
desc={blog.description}
date={blog.date}
image={blog.image}
url={blog.url}
key={blog.id}
id={blog.id}
/>
))}
</div>
{blogData.length > 3 && (
<div className="blog--viewAll">
<Link to="/blog">
<button className={classes.viewAllBtn}>
View All
<HiArrowRight className={classes.viewArr} />
</button>
</Link>
</div>
)}
</div>
</div>
)}
</>
)
}
Example #2
Source File: Projects.js From developer-portfolio with Apache License 2.0 | 5 votes |
function Projects() {
const { theme } = useContext(ThemeContext);
const useStyles = makeStyles(() => ({
viewAllBtn : {
color: theme.tertiary,
backgroundColor: theme.primary,
transition: 'color 0.2s',
"&:hover": {
color: theme.secondary,
backgroundColor: theme.primary,
}
},
viewArr : {
color: theme.tertiary,
backgroundColor: theme.secondary70,
width: '40px',
height: '40px',
padding: '0.5rem',
fontSize: '1.05rem',
borderRadius: '50%',
cursor: 'pointer',
transition: 'background-color 0.2s',
"&:hover": {
color: theme.tertiary,
backgroundColor: theme.secondary,
}
},
}));
const classes = useStyles();
return (
<>
{projectsData.length > 0 && (
<div className="projects" id="projects" style={{backgroundColor: theme.secondary}}>
<div className="projects--header">
<h1 style={{color: theme.primary}}>Projects</h1>
</div>
<div className="projects--body">
<div className="projects--bodyContainer">
{projectsData.slice(0, 3).map(project => (
<SingleProject
theme={theme}
key={project.id}
id={project.id}
name={project.projectName}
desc={project.projectDesc}
tags={project.tags}
code={project.code}
demo={project.demo}
image={project.image}
/>
))}
</div>
{projectsData.length > 3 && (
<div className="projects--viewAll">
<Link to="/projects">
<button className={classes.viewAllBtn}>
View All
<HiArrowRight className={classes.viewArr} />
</button>
</Link>
</div>
)}
</div>
</div>
)}
</>
)
}