I spent a lot of this last week trying to get the navigation to update with an “active” class when the page is in view. This class allows me to style the navigation differently than the rest when it is the focus. The next thing I spent a bit of time on was absolute positioning and centering my content. There are times when I will need items to “stick” to one area, while other times I will need items to adjust their size and position if the user adjusts the screen size. I was able to accomplish centering by applying the utilizing the following CSS:
<section id="home">
<div class="overlay-center">
<div class="overlay-box">
<h4>Overlay Box Heading</h4>
<h4 class="subheading">Overlay Box Subheading</h4>
<p>This is some body text.</p>
</div>
</div>
</section>
One problem I haven’t been able to solve yet is updating the header with the “current page.” I have the plugin set up, but I can’t make it function completely—hopefully next week! Here’s a live version of my progress:
I spent a lot of time this last week researching better options for the scrolling of my site and working on the navigation. There are two jquery plug-ins that I have been trying to work with since last week:
Onepage-scroll allows me to scroll page by page with a smooth animation between them. I have implemented the scrolling, but the navigation is basically broken at the moment. The following zip file contains “grid.html” and is a demonstration of the page scrolling working:
This week was mainly focused on creating the skeleton of the site, and the basic structure of the navigation. The site is far from being usable at this point, and much of the styling for the navigation is simply not there.
I started off planning to utilize Bootstrap 3 as my framework, but after further research I have decided to go with Foundation 4. The major purpose behind this is due to the adaptive image plugin called “Interchange.” Since my site is so image heavy, it will be important to serve the proper image size for the correct screen size. I could add a responsive image plugin to Bootstrap, but there are a few features Foundation offers that give it the edge.
The following files require the Bootstrap 3 framework to function properly, but if you’re interested in the code I’ve created thus far, it’s below:
Farmur is a responsive web site that allows users to explore the history, present day, and future of urban farming through interactive info graphics, motion graphics, and illustrations. Users are encouraged to learn about urban farming concepts by engaging the material through rich media.