Chronoblog / gatsby-theme-chronoblog

⏳ Chronoblog is a Gatsbyjs theme specifically designed to create a personal website. The main idea of ​​Chronoblog is to allow you not only to write a personal blog but also to keep a record of everything important that you have done.
https://chronoblog.now.sh
MIT License
130 stars 26 forks source link

FontAwesome solid icons #29

Closed jamstack-elise closed 4 years ago

jamstack-elise commented 4 years ago

💡 UI-Idea: Include FontAwesome's solid icon svgs in the codebase library

🎯 Goal Include the {faEnvelopeSquare} object for developer's who want to use an 'email' button Or via array-- icon={['fas', icon]}

📋 Initial steps to solve the problem

End goal: the code works, and celebrate🎉!

jamstack-elise commented 4 years ago

tests:

results:

image

ganevdev commented 4 years ago

Yes, that's a good idea.

The user should be able to indicate their email like this (in gatsby-config.js):

{
  icon: `envelope`,
  url: `mailto:hello@mail.com`
},

I wrote this in a test starter (but it doesn't work yet, of course): https://github.com/Chronoblog/gatsby-theme-chronoblog/blob/master/starters/tests/gatsby-config.js

ganevdev commented 4 years ago

Screen Shot 2020-04-16 at 00 55 14

So now we can use the "envelope", "at" and "phone" icons in the author banner (need gatsby-theme-chronoblog version 0.19.0 or higher).