{"id":983,"date":"2007-12-11T15:02:25","date_gmt":"2007-12-11T07:02:25","guid":{"rendered":"http:\/\/www.darkmirage.com\/2007\/12\/11\/darkmiragecom-v30-beta\/"},"modified":"2007-12-13T11:32:23","modified_gmt":"2007-12-13T03:32:23","slug":"darkmirage-v3-beta","status":"publish","type":"post","link":"http:\/\/www.darkmirage.com\/2007\/12\/11\/darkmirage-v3-beta\/","title":{"rendered":"DarkMirage.com v3.0 beta"},"content":{"rendered":"

Woohoo! It’s that new layout that I was talking about! Yay! It took less time than I anticipated to finish it. WordPress is really quite a decent CMS.<\/p>\n

\"New<\/p>\n

It’s my first attempt at building my own WordPress theme instead of modifying the default one. There are still a lot of things that are incomplete (mainly plugin integrations) so I’m calling it “beta” for now. Why “version three” you ask? Well I just felt like it. Please don’t ask me to explain which layouts were version two and one…<\/p>\n

Nitty gritties after the break.<\/p>\n

<\/p>\n

Header<\/h3>\n

The first thing you should notice is the ginormous banner at the top of every page, featuring everyone’s favourite singing software’s 2D avatar, Hatsune Miku<\/a>. This was a last minute decision during the initial planning stages and the layout itself is not actually inspired by her in any way. In fact, this is what the original draft in Photoshop looked like:<\/p>\n

\"New<\/p>\n

But after trying out a few characters, I decided that Miku’s colour scheme is the best match. Purely coincidental. Or maybe it’s one of those subconscious thing. I may eventually add more banners in a random rotation like my old layout, but that’s low priority for now.<\/p>\n

Overview<\/h3>\n

The primary colours used in the theme are #a00<\/code>, #555<\/code>, #eee<\/code> and #ccc<\/code>. (I love colours that can be shortened to three-digit hexadecimal in CSS.) The RSS feed icon is a 24×24 greyscale PNG taken from Feed Icons’<\/a> devkit and overlayed with 100% #a00<\/code>.<\/p>\n

\"New<\/p>\n

One of the most important decisions when designing a website is to choose between a fixed-width layout and a fluid layout. My previous layouts were all fixed to 780px wide so as to accommodate the smallest resolution that people still use, 800×600. It’s quite a commonly-used width because the default WordPress theme uses it.<\/p>\n

The nice thing about fluid layouts is that they work on very tiny resolutions without creating horizontal scrolls. Moetron<\/a> is an example of a 100% fluid layout. However, lines become very long and ugly when viewed on a larger-than-average resolution, such as 1920×1200 on 24″ widescreen<\/a>. Paragraphs of text turn into single lines that stretch from one end of the screen to the other.<\/p>\n

Most professional blogs are turning to either fixed layouts optimized for 1024 (e.g. Joystiq<\/a>) or a mixture of fluid and fixed layouts (e.g. Engadget<\/a>, ANN<\/a>). The problem with the former is that on smaller resolutions (and windowed browsing), there will be horizontal scrolling involved. The latter is harder to design for and cross-browser implementation makes it a huge pain in the ass.<\/p>\n

\"New
\nSame page viewed at 800px wide<\/p>\n

I chose to go with a semi-compromise. I don’t like my text components changing width, so they are fixed-width. But the navigation bars on the right (or “meta blocks” as I dub them) will drop down to the bottom when viewed in 800×600 so that horizontal scrolling is avoided. I call it a semi-compromise because it all goes haywire if you use some non-standard window size that is between 800 and 1024. There is also some margin issues when moving the meta blocks down.<\/p>\n

The design has been tested on the latest versions of Firefox, Opera and IE7. It looks the ugliest on IE7 due to font issues and probably worse on older IE versions due to the use of transparent PNG.<\/p>\n

Thumbnails<\/h3>\n

Every post has at least two thumbnails that are automatically generated. New entries will have three. A 144×144 square thumbnail is for use within the meta blocks, a 180×120 rectangular thumbnail is used in archive mode<\/a> and a 250×140 resized image is used for the “Previous Entry” section on the main page.<\/p>\n

\"New
\nSingle category view<\/a><\/p>\n

Thumbnail generation and caching are all handled by Alakhnor’s Post-thumb revisited<\/a> plugin. Page-loading is slow for the first time when the thumbnails are generated but subsequent loadings use cached image files.<\/p>\n

Sprite Navigation<\/h3>\n

Whoever first thought of making sprite navigation with CSS is a genius. Basically the mouse-over effect that you see on the right uses no Javascript, no image maps and consists of only one single image file:<\/p>\n

\"New
\nNavigation sprite<\/p>\n

Using only CSS background repositioning and a:hover<\/code>, the concept is just brilliant. Not only does the effect work instantly without having to cache additional images, but it also works without relying on Javascript, which many people block with NoScript<\/a> these days. I found the tutorial here<\/a>.<\/p>\n

Gravatar<\/h3>\n

You will also notice that the post comments now support Gravatar<\/a> (Globally Recognized Avatars). If you register an account on gravatar.com<\/a> and post a comment with the same e-mail address, your associated gravatar will be displayed below. The rest of you get a cool-looking \u00e3\u0081\u201a faded to grey! Awesome.<\/p>\n

\"New
\nGravatar<\/p>\n

Final Notes<\/h3>\n

I don’t think the site is XHTML validated yet because I coded the layout on a local apache server and haven’t had the chance to submit it. A lot of areas are also not extensively tested, such as commenting and error handling. The comment fields in particular were a rushed job. If you notice anything wrong, please post here along with the browser used. Please note that I am not supporting any version of IE older than 7.<\/p>\n

So anyway, what do you think?<\/p>\n

P.S.<\/strong> I am aware that some posts have issues with the 144×144 thumbnail. I am in the process of fixing it.<\/p>\n

Update<\/strong>: The site is note XHTML 1.0 Strict validated. Do inform me if you find any pages that aren’t.<\/p>\n","protected":false},"excerpt":{"rendered":"

Woohoo! It’s that new layout that I was talking about! Yay! It took less time than I anticipated to finish it. WordPress is really quite a decent CMS. It’s my first attempt at building my own WordPress theme instead of … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[696,33,32],"_links":{"self":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/posts\/983"}],"collection":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/comments?post=983"}],"version-history":[{"count":0,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/posts\/983\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/media?parent=983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/categories?post=983"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/tags?post=983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}