Live data from Hacker News

Ask HN: Best way to create a landing page?

news.ycombinator.com

61–65 of 65 posts

Re: Ask HN: Best way to create a landing page?

#61

I recently dealt with the same issue and was satisfied with prerender spa plugin ( https://github.com/chrisvfritz/prerender-spa-plugin ). It enabled me to quickly implement the landing page with Vue and then build it as a static page that I deployed on Netlify. I found it easier and faster to set up than an SSR solution. There's also a Vue-CLI version of the prerender plugin ( https://www.npmjs.com/package/vue-cli-pl…

I too recommend prerendering as a general solution to the problem. You already have to implement it such that it works in the browser, so why add complexity with SSR, switching frameworks or worse: adding another framework/language/CMS just for the landing page?

Re: Ask HN: Best way to create a landing page?

#62
To all the people using a static site generator. How do collect emails from interested people? Is there a way to easily integrate this into the static site? Ideally it would be a simple form, that collects the data and stores it somewhere? Google Forms comes to mind but it would integrate that nicely into the UI.

Re: Ask HN: Best way to create a landing page?

#64

Could someone explain to me why using a react app built using CRA is bad in this case? I have a similar use case where the app is on app.example.com (built using CRA) and I have a landing page (also built using CRA) on example.com The landing page links to: - The App at app.example.com - Docs at docs.example.com - Blog at blog.example.com I have 0 front-end experience so this is an honest attempt at understanding why…

It might be because CRA does not have server side rendering and it is hard for some search engines to index pages if they are entirely rendered the client side.

Also CRA comes with tons of dependencies. If all we need is to display some texts and images, as most landing pages are wont to be, it makes little sense to utilize such complex technology stack.

Re: Ask HN: Best way to create a landing page?

#65

To all the people using a static site generator. How do collect emails from interested people? Is there a way to easily integrate this into the static site? Ideally it would be a simple form, that collects the data and stores it somewhere? Google Forms comes to mind but it would integrate that nicely into the UI.

I made a landing page just HTML and CSS that integrated with Hubspot forms. You can check it out: https://onefiftyone.run/assets/js/landingpage.js

There's no secret keys; it's just the guid identifying that form.

Post reply on HN