/vickys-flowers

Take-home test for Stamps.com

Primary LanguageCSS

Vicky's Flowers

This is a webpage from a fictitious e-commerce site. It was built from the design comp below as part of a take-home test administered by Stamps.com.

screenshot

The completed project has the following features:

  • Mobile-ready, fully-responsive design.
  • Accessibility tested and ARIA-compliant for use with screen readers and other assistive technology.
  • Use of Parcel.js (web application bundler) for robust build environment, image compression, minification, postcss, autoprefixer, polyfills, & bundling.

Assignment instructions can be found here:

Installation

Clone the repository.

git clone https://github.com/james-priest/vickys-flowers.git
cd vickys-flowers

Use yarn or npm to install dependencies.

yarn

# or

npm install

Usage

Development mode

yarn dev

# or

npm run dev

Production mode

  • Will build once (No watch mode or hot module replacement).
  • Minifies html, js, css, and optimizes image resources.
  • Outputs to dist/.
yarn build

# or

npm run build

In order to view the production version a local http server needs to be used to launch dist/index.html .

Here are two links showing how to spin up a local http server.

Alternatively, a Visual Studio Code extension can be used to run the site from within the VSCode dev environment.

  • Live Server - Launch a development local Server with live reload feature for static & dynamic pages.

Performance Audit

The site was tested with Lighthouse which is found in the Audits tab of Chrome Dev Tools. It was evaluated for the following:

  • Performance
  • Best Practices
  • Accessibility
  • SEO

Audit

Best practices shows an 86 due to assets being served using HTTP/1 protocol which is what my local dev server uses. This will jump to the 95% range once HTTP/2 is used from a production web server.

Testing

This webpage was successfully tested on Firefox, IE, Edge, & Chrome.

Safari was not available to test with but transpiling and polyfill settings were configured to target the last two versions of every browser in use with more than 2% market share.

Screenshots

mobile display

browser display