Coder Social home page Coder Social logo

bootstrap-cookbook's Introduction

Bootstrap Cookbook

Training exercise project implementing the specified design of a cookbook web page.

Explanation

I tried to implement the given design template (see sample screen) as close as possible. The implementation uses manly grid styles from the Bootstrap library.

The site shows a recipe that you select from the menu on the upper left side. The menu is adapted from a component taken from here: https://bootstrap-menu.com/detail-multilevel.html. The menu content is created dynamically by reading and interpreting the recipe data stored in the file 'recipe-data.js'.

Currently on first load, all recipes are displayed top-down on the content area of the page. If you select one recipe via menu the selected one is shown exclusively. The total number of recipes in the data base is shown above the selection menu.

The pages is responsive: the menu automatically jumps to the top of the recipes when the window size is decreased. There is an issue with the menu in case of small screens: see Known Bugs.

On mouse hover over the large image the recipe titel is shown with an ease-in-out effect.

All dynamic creation of HTML code is implemented in the 'script.js' file. See function comments there for details.

The anchor elements where the dynamic HTML is inserted are:
'<ul id="recipe-menu" ... >' for the recipe menu and
'<div id="recipe-list"> for the recipe description.
The elements are identified by the ids respectively.

Additionally to the original requirements I added a comment section and a fake button for adding comments. The social media buttons are also added without function.

Open Issues

Known Bugs

  1. The display of all recipes on start up is not a feature but a bug. A solution has to be found for what is expected after first loading.
  2. The selection menu is not closing after click on it.
  3. The second level of the selection menu is not displayed in case the browser window is less then around 950 px wide. This is an issue of the multilevel menu component which automatically switches to the "smart phone mode". Further investigation necessary.

bootstrap-cookbook's People

Contributors

martinlangee avatar

Watchers

 avatar

Forkers

begenchs

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.