ashToronto / career_crafter_pro

A resume theming and career building web app
2 stars 1 forks source link

use images for form theme selector #153

Open ashToronto opened 3 months ago

ashToronto commented 3 months ago

Solution an approach and execute.

The form theme selector doesn't depict the actual downloadable pdf. It renders the haml as non iframe/pdf. As such it looks different from the users downloaded theme.

Best solution: Replace theme partials of resumes rendered in list with images. This will render page quicker than loading an iframe. The theme on the form selector does not need dynamic data as such fixed data should be fine.

Acceptance criteria:

  1. add an image of free default, premium classic and free modern into the images folder - high quality.
  2. Leverage the images and render them in the themes/_form.haml file in place of the currently rendered partial.
  3. Test that theme selection behaviour works the same