The
html template should be finished by now.
It's simply XHTML, CSS, and a lot of images; but it should hopefully easy to adapt this to a CMS like simplecms. Server-side includes would help to not repeat the top and bottom of the page.
Last modificationsI've added an "About" link in the menu. "Links" is now a "module" (on the right). There's some text on the page but it's partly wrong, partly non-sense, and images are just here as placeholders but don't really have any meaning.
Technical detailsI'm adding a few notes here that I'll copy in a DOC present in the
template archive (zip). The goal is to let other developers understand and modify the template if needed.
I did try to keep clean html and use proper css. There are a few empty divs that helped me to put background images, but it should otherwise be simple to understand. I followed an organisaton similar to HTML5 (and most websites), that is:
- a header containing only the logo, but which could also contain language selection
- a central content containing an article
- side "modules" (<aside> in HTML5) giving additional info
- and a footer, containing the logos and a few links
The header and footer images are larger than 1024px, but text and info are contained in 1024px. I had to cut the header and footer in three: left, content, and right. If the screen size is 1024px, left and right won't show up. On larger displays, it will provide a nice transition to the background. This is what the empty divs in the header and footer are for.
The content background is mostly a wood pane repeating itself: the content can be as long as you want.
The menus are a bit more tricky. There are three images, "up", "repeat" and "down". The content has "repeat" as a background-image, but up and down are in their own divs. I needed the content to go in those divs, so content has negative top and bottom margins. The title of each module is an image centered accordingly in the CSS. There are a few other title images in media/titles/ (newsletter, social web) if you want to add them, but TeaR can also provide new ones if needed.
Finally, the footer has to be lower than side modules and content, and the content's background need to repeat itself until the footer. I could put a min-height but it's not optimal since the result will vary depending on browsers (especially mobile phones). Instead, I chose to add another empty div at the end of the content and ask that every floating content (left and right) should be cleared.
Possible improvements- Performance! Performance is not so good currently. Inlining small images in the CSS, gzipping the content, and adding Cache directives would greatly improve user experience (really.) See Google Chrome's "Audits" for this.
- A more compact version for mobiles would be great (only few images, no need to zoom to access content). A lot of persons actually access to the web with their phones, especially when and if it's slashdotted.
What happens now?Anyone with proper access can put it on the website! Feel free to edit anything and/or contact me if needed. Here's
the template archive (zip). And hm, let's say it's GPL.
CreditImages:
*UmbraDeNoapte :
Stock 31 and
Stock 131=cloaks :
Wooden Tiles Texture PackDesign:
TeaRThanks a lot for letting me and TeaR (strangers to Glest and MG communities) do this, it has been quite fun.
edit: fixed credit links.