Alla Prima Gallery Responsive Website

The aim of the project was to create a gallery website of favorite artists. Simple design and light neutral colors and subtle pattern of the layout create a background for displayed artworks. Some color accents for menu and buttons make layout visually more interesting, but don’t distract the viewer.

AllaPrimaGallery2

All pages content is made with HTML and dynamic animation is made with JavaScript.
There is also some php code for e-mail processing and search engine.

The following software was used:

  • OmniGraffle and Balsamiq Mockups for wireframing
  • Photoshop for layout design
  • WebStorm to write a code,
  • Transmit for deployment.

PAGES:

Home/About
responsive Javascript slider displaying most interesting images,
HomePage Wire Frame

Alla Prima Gallery About

List of Artists
collapsable list of artists with their short profiles (jQuery accordion)
Artists Wire Frame

Gallery
cascading grid layout gallery (javascript masonry gallery), shadow box to zoom in images
Gallery Wire Frame

Blog
very basic XHTML + CSS layout for a blog
Blog Wire Frame

Contact
javascript contact form with some php
Contact Wire Frame


LAYOUT / RESPONSIVE GRID

Website is based on responsive grid for various devices from Bootstrap framework . In the top right corner of the page JavaScript drop down menu was designed. Footer contains buttons which will link social websites (for now I left them empty)

Responsive Design Testing


JAVASCRIPT EXAMPLES

Several JavaScript based animations was added to the site.

1. Go top
Simple “go to top” button was added to each of 5 pages. The code is as follows:

HTML in body:

JavaScript in body:

 

It’s appearance is controlled by style.css file:

 

2. Dropdown menu

HTML code in the head:

in the body:

javascript code is in the superfish.js file

3. Accordion on “Artists” page

Collapsible jQuery accordion on “Artists” page uses jquery.accordion.js and jquery.easing.1.3.js files placed in js folder.

Code added to the head of index-1.html file:

 

Fragment of the Code added to the body :

 

The HTML structure consists of a wrapper with the class and ID st-accordion (<div id=”st-accordion” class=”st-accordion”>) and an unordered list. The list items have links which serve as the items titles and content areas with artists’ biographies which are initially hidden.

The style of the list was adjusted in the timeline.css file. For example max width of the wrapper was set to 800px. With a media query we make sure that the font size of the item title will be smaller:

In JavaScript (jquery.accordion.js file) most important functions are:

_init function – initializes plugin
_saveDimValues function – saves the original height and top of an item
_toggleItem function – takes care of what happens when we click an item – open or closed

4. Masonry gallery

masonry.pkgd.min.js file in js folder is a plugin responsible for the grid style gallery on index-2.html page.
To include this script on gallery page the following code was added to the index-2.html file:

It works on a container element with a group of similar child items, so body of index-2.html contains:

Plugin was initialized in HTML by adding js-masonry to the class of the container element.
To size images and make them fit nicely on the page the following code was added to the style.css file:

There is more JavaScript functionality added to the website like slider on the home page, preloaded, magnifier for the images.


CREDITS:

Flexible Slide-to-top Accordion

Masonry gallery

Back to Top button