Responsive landing page template with e-mail input.
Landing pages can be used to test customer demand before building a minimum viable product or to gather a mailing list for a product launch.
Background image by Bruno Marinho (unsplash.com).
Search and replace these strings to fit your product and you're good to go!
index.php
LANDINGPAGE_URL
: the URL of the landing pageMETA_DESCRIPTION
: the description of your page (meta HTML tag)SOCIALMEDIA_THUMBNAIL
: image to be used on social media sharing sitesSOCIALMEDIA_TITLE
: title to be used on social media sharing sitesSOCIALMEDIA_COMPANY
: company or author to be used on social media sharing sitesPAGE_TITLE
: title HTML tagGOOGLEANALYTICS_UA
: your Google Analytics web property id e.g. UA-12345678-1GOOGLEANALYTICS_TITLE
: the page title as you want it to appear in Google AnalyticsHEADER1
: the first line of text (your tagline)HEADER2
: the second line of text (a message informing the user to enter their e-mail address)SUBMIT_BUTTON
: text of the submit buttonEMAIL_PLACEHOLDER
: placeholder of the e-mail textbox
js.js
SUBMIT_SUCCESS
: message shown on the button when the e-mail address has been savedSUBMIT_ERROR
: generic error message shown on the button when an error occured, such as invalid e-mail or server error
subscribe.php
DB_HOST
: database hostDB_NAME
: database nameDB_USER
: database userDB_PASSWORD
: database password
Warning: there is no rate limiting or e-mail address format validation.