85d58298a3
* nextjs with unsplash initial commit * update demo link * remove isomorphic-unfetch * remove ssr on collection page * fix style issues * fix import/no-anonymous-default-export * usign fetch instead of request * remove credits * improve instructions * improve instructions * Updated readme steps and images * Updated readme * Updated gitignore Co-authored-by: Luis Alvarez <luis@vercel.com>
20 lines
359 B
TypeScript
20 lines
359 B
TypeScript
import styles from './UIcon.module.css'
|
|
|
|
const UIcon = ({ url, name }) => {
|
|
return (
|
|
<a
|
|
className={styles.icon}
|
|
href={url}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<img
|
|
className={styles.icon_svg}
|
|
src={`/images/${name}.svg`}
|
|
alt={`${name} icon`}
|
|
/>
|
|
</a>
|
|
)
|
|
}
|
|
|
|
export default UIcon
|