Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Personal Blog - a new Gatsby.js theme #89

Open
greglobinski opened this issue Feb 21, 2019 · 29 comments
Open

Personal Blog - a new Gatsby.js theme #89

greglobinski opened this issue Feb 21, 2019 · 29 comments

Comments

@greglobinski
Copy link
Owner

greglobinski commented Feb 21, 2019

Maybe someone of you already know. Last week I released my first Gatsby.js theme

Themes is a great new, still experimental, feature of Gatsby.js. I decided to transform to themes all of my starters, just now.

So, it's time for Personal Blog, although in this case the transformation will not be limited to implementing theme functionality. I decided to rewrite the whole codebase.

These are goals of the transformation:

  • upgrade to Gatsby v.2

  • for CSS, emotion instead of jss

  • for buttons and form elements, custom components instead of material-ui

  • for dropdown menus: @reach/menu-button

  • for form validation: formik

  • for UI state management: React Context instead of redux

  • as a cherry on top: we will rewrite Class components to functional ones with hooks

I will start this weekend. If there is anybody who would like to help, write a comment below. Especially, I'm looking for someone who will help me rewrite styles from jss to emotion.

@greglobinski greglobinski changed the title Personal Blog - Gatsby.js theme Personal Blog - a new Gatsby.js theme Feb 21, 2019
@maxscience
Copy link

maxscience commented Feb 21, 2019

Cool! What’s your estimate for completing the rewrite?
Wishlist:

  • multiple tags
  • netlify-cms (gatsby plugin)
  • discus comments (or something else, just not facebook)

@hendra-go
Copy link
Contributor

@greglobinski Great news Greg! thanks for your work.

After reading this, i told my self that my hunch is right that you are going to replace jss with something else, i think it is a good choice that you chose emotion, because AFAIK gatsby works nice with emotion.

But before i, we or anybody decide to contribute to rewrite jss to emotion, i think at first you need to work on replacement from redux to react context, imho.

Once again, thanks greg, it is great to know that you will continue to support this great gatsby starter.

@hendra-go
Copy link
Contributor

hendra-go commented Feb 22, 2019

damn, i just realize what you mean about Theme is Gatsby.js Theme feature https://www.gatsbyjs.org/blog/2018-11-11-introducing-gatsby-themes/, to be honest, i find out about this just now.

Haha i confuse between gatsby starter and gatsby theme.

Hmm... i need to check this out this weekend

@greglobinski
Copy link
Owner Author

greglobinski commented Feb 22, 2019

Cool! What’s your estimate for completing the rewrite?

I can't say, I personally can work on this project only on weekends, so for sure it will not be one weekend. :)

multiple tags, netlify-cms (gatsby plugin) ,discus comments (or something else, just not facebook)

all these can be done, but it's not in the scope of this iteration

But before i, we or anybody decide to contribute to rewrite jss to emotion, i think at first you need to work on replacement from redux to react context, imho.

I will not try to replace redux with contex trying to maintain existing code working. I will start from zero level building the site step by step.

Update
Of course we will use the old code as a help, (mostly CSS styles) but I think that there will not be a code we would be able just copy & paste.

@greglobinski
Copy link
Owner Author

Update:

We will use emotion in a styled component way

@maxscience
Copy link

Ok so I guess if one wants to start a new blog now, it will be easy to switch over the new version (once the theme is done) by just copying over the content directory right?

@greglobinski
Copy link
Owner Author

@maxscience Generally yes, but I can't promise that it will be possible without any 'moving' procedure, like for example, renaming content files.

@greglobinski
Copy link
Owner Author

If anybody would be interested in the progress of work, go to the issue board of my gatsby-themes repo

@greglobinski
Copy link
Owner Author

greglobinski commented Feb 23, 2019

Current state of dev

screenshot from 2019-02-23 15-06-57

You can follow the changes in the code here

@greglobinski
Copy link
Owner Author

current state of dev

peek 2019-02-24 09-58

@greglobinski
Copy link
Owner Author

greglobinski commented Feb 24, 2019

current state of dev

peek 2019-02-24 15-30

That's all for this weekend, I will not (probably) be able to move forward till the next one. But I did a good progress till now, so stay tuned.

@greglobinski
Copy link
Owner Author

current state of dev

peek 2019-02-25 08-33

@greglobinski
Copy link
Owner Author

current state of dev; slowly but steadily :)

peek 2019-03-03 17-04

@greglobinski
Copy link
Owner Author

another step forward

peek 2019-03-06 01-06

@eclectic-coding
Copy link

Greg,
Love the look of what's happening with Gatsby and your starter/theme. I am curious. Would it be possible to integrate the gravatarMD5 feature from hero-blog? This is a really cool feature which gives a new level of functionality.

@greglobinski
Copy link
Owner Author

@polishedwp Sure, maybe not in the first iteration, but later why not :)

@greglobinski
Copy link
Owner Author

current state of development

Peek 2019-03-11 11-57

although it was not planned, the theme will work with *.mdx files as a source of content. https://twitter.com/greglobinski/status/1104710231605628928

@alexpov
Copy link

alexpov commented Mar 19, 2019

@greglobinski looking forward to the new theme, checking new commits every weekend :)

question/request: the original blog theme misses tags per post and a screen to filter by tags, any chance you plan to add these to your plan?

Estimates for the next release of the blog theme?

@greglobinski
Copy link
Owner Author

greglobinski commented Mar 19, 2019

@alexpov

the original blog theme misses tags per post and a screen to filter by tags, any chance you plan to add these to your plan?

Yup, I will add tags

Estimates for the next release of the blog theme?

Not 100% sure, but I think I need two more weekends to release the theme in its first shape.

@greglobinski
Copy link
Owner Author

greglobinski commented Mar 19, 2019

current state of dev

Peek 2019-03-19 10-48

@wzard
Copy link

wzard commented Apr 6, 2019

HI @greglobinski Any updates on the theme update?

@greglobinski
Copy link
Owner Author

@wzard Work is in progress. Not many visual changes though.

@alexpov
Copy link

alexpov commented May 10, 2019

Hi @greglobinski, any updates ? Looking forward for the next release ...

@h1eutran
Copy link

Hey @greglobinski, any things?

@greglobinski
Copy link
Owner Author

@Raf1001 I'm sorry, but this thread is reserved to inform others about progress in theme development, so I had to remove your comments, but feel free to open a separate issue.

Repository owner deleted a comment from Raf1001 May 19, 2019
Repository owner deleted a comment from Raf1001 May 19, 2019
Repository owner deleted a comment from eddiebeazer May 19, 2019
Repository owner deleted a comment from eclectic-coding May 19, 2019
Repository owner deleted a comment from eddiebeazer May 19, 2019
Repository owner deleted a comment from Raf1001 May 19, 2019
@greglobinski
Copy link
Owner Author

greglobinski commented May 19, 2019

Hey guys, sorry for the delay but be sure that I did not abandon the project.

@h1eutran
Copy link

@greglobinski It been so long seen your last commit!

@sankhaKarunasekara
Copy link

How is it going @greglobinski. awesome theme, hope to see the new version soon. good luck. :)

@musfiqur-bs23
Copy link

musfiqur-bs23 commented Jan 24, 2020

HI @greglobinski , Is there any update for the new version of the theme ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants