Axkaban / two_page_landing_exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

two_page_landing_exercise from Axel Kaban

See the website version one here: Spiral See the website version two(react) here: Spiral react

Requirements:

The Details:

Please ensure that the site can be viewed on Desktop, Tablet (iPad) and Mobile devices (iPhone, Galaxy S6, etc).

Page 1 (Landing):

Create a landing page with the following elements:

• sticky header (logo and some navigation links) • hero image (or video) • a section containing text (please use “Lorem Ipsum”) • basic footer with links

Page 2 (Contact form):

Set up a page containing a form. The form would have the following fields and corresponding validation:

• First name – characters only • Last name – characters, hyphens and apostrophes only • Email – valid email addresses • Zip code – US zip validation • US States – a drop down list of states

Extra Credit:

Provide server-side code to store form fields data in the database. For PHP, make sure to use PDO, parameterized queries, server-side validation.

The app is a mock up of a fake company, really simple

Technologies used:

for version one:

Back end to store data on db using postgreSQL, Nodejs, and Express. Front end with HTML5, CSS3, JavaScript &JQuery. I used normalize.css as a reset for my styles. simple logo made in illustrator. Images sourced through opensource.

For version three: I had created version two through create-react-app but there was too much that I was not going to use and for such a static page, React was just a personal caprice. I used React, Node, Express, Mustache Express, Webpack, Babel, PostgreSQL for the db, and axios.

As a note

Once set the database, it saves the contact info. very basic validation built, just through regEx, but it will bring up if there is an issue at the bottom of the form.

I have left console logs for display purposes only on the react version. You're able to see the object created from the form and the id returned once it has been inserted in the database. For the two page you reive a success log on console.

At last, the react version renders form as a modal instead of looking like a second page, but I left the css a little glitchy related to logo rendering and shifting menu logo.

About


Languages

Language:JavaScript 95.1%Language:CSS 3.8%Language:HTML 1.1%