GithubHelp home page GithubHelp logo

frontend-task-ys's Introduction

sample-app

A Symfony project created on August 1, 2016, 9:00 am.

TODO: 0. Create a public GIT repo so we can look it up later, and place the package files there before you begin the work. If you cannot make it public for some reason, make sure to pack whole project along with .git folder when you're done, and send it back via email.

  1. Currently, for the JS file to be reachable by the application, you need to copy it from src/AppBundle/Resources/assets/js to web/bundles/app/js. Please configure gulp and write a gulp task that we can run from app root folder that will copy this file from src/AppBundle/Resources/assets/js to web/bundles/app/js

1a. Add SCSS to CSS conversion to that gulp task Source SCSS: src/AppBundle/Resources/assets/gfx/scss/main.scss Target CSS: src/AppBundle/Resources/public/css/main.css

  • [Target CSS] I changed to web/bundles/app/css/ considering html template was loading files from bundles folder

  • In both cases, I minified the files to improve performance (load time page)

  1. Convert menu to sticky menu, Hint: the layout file is in app/Resources/views/base.html.twig

  2. The "Notify!" button should create a notification that lasts a moment(1 second or so) and disappear completely from the DOM, but it doesn't work. Please fix. Hint: the HTML with the button is in: app/Resources/views/default/index.html.twig

  3. For under 767px the menu should be converted to "hamburger" icon and expand when touched. both hamburger icon and "go to cart" link should be the only ones visible on resolution under 767px.

  4. Make "Add Product to Cart" increment the number in "Go to checkout". That number should not lose its value after page refresh

  • Value of the cart loaded/stored on LocalStorage considering there is not backend built to update values via AJAX POST
  1. Prepare a responsive checkout according to the design file found in the app root acme-checkout.pdf. It should show the same amount of products you have in header. Hint: HTML for that page is in src/AppBundle/Resources/views/Checkout/cart.html.twig

6a. Implement data validation on all the checkout inputs, so the checkout button on the bottom is only enabled when data is valid.

General Hints:

  • to run the app you only need php installed. go to the app root folder and run php app/console server:run
  • to deploy CSS files from src/AppBundle/Resources/public/css/, use php app/console assets:install
  • to run Gulpfile, you need to install npm first, and later run npm install ( so dependencies from package.json can be installed)
  • After installing gulp, you have to run gulp

Nice-to-Have

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.