Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gatsby vs. HTML pages (header/footer/etc. split with PHP) #8492

Closed
stoberov opened this issue Sep 24, 2018 · 1 comment
Closed

Gatsby vs. HTML pages (header/footer/etc. split with PHP) #8492

stoberov opened this issue Sep 24, 2018 · 1 comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@stoberov
Copy link

stoberov commented Sep 24, 2018

Gatsby looks fantastic and I am looking for a side-project to give it a try. As such, I found myself surprisingly confused as to whether the below scenario would be a good fit, or an overkill, for Gatsby. Would you please share your thoughts?

I need to create a straightforward static web-site for a local business.

  • the "design" comes from a purchased HTML template, nothing fancy.
  • the "content" is predicted to be about 20 simple pages (like About, Services, etc.) , with a few having submit forms (Contact) - but nothing dynamic like blog posts.
  • the business may at some point decide to add new simple pages, or edit sentences on existing pages - the developer (me) should ideally not be needed for these simple tasks.

I don't have experience with PHP per se, but I'm thinking that the most suitable (and traditional) approach would be to split the HTML template into php sections (header.php, footer.php, etc.) and then proceed to create the individual pages. The business owner can then makes simple changes himself (in Notepad), or copy an existing page + rename the file + change the content (to get a new page).

As a developer, I'm super excited about all the nice features that come with Gatsby.
Practically speaking, however, I wonder if those features (such as pre-fetching pages) will really bring noticeable improvements for the business owner (e.g. loading the page in 500ms, instead of 100ms). In addition, I am also worried the business owner would find it very difficult to make changes, let alone run builds himself.

Given the above, would you recommend Gatsby for such a project?

@mikelax
Copy link
Contributor

mikelax commented Sep 24, 2018

Hi @stoberov , I think that gatsby could be a great framework to use on your upcoming site.
I would first suggest that you walk through the current tutorial as it will give you a good introduction to the major concepts of gatsby, and get you up and running with a (very simple) example site.

As for the content, there are a number of ways to make that process easy to mange. You can have the content within the code itself, for example using markdown files. Given your third requirements, a CMS would make more sense so business owners can update the content. There are several examples that already exist that you can review and start with.

@mikelax mikelax added the type: question or discussion Issue discussing or asking a question about Gatsby label Sep 24, 2018
@mikelax mikelax closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants