6100 comments
2357 subscribers
6266 on Twitter
Subscribe! Feed reader E-mail

How to make a hand-drawn highlighted web page header

For the longest time, I’d been meaning to make my website look more hand-written and to take advantage of Google Web Fonts to make my site feel slightly different. After some design-related nudging from Matt Tanguay, I finally got around to it. Here’s how! =)

For comparison, here’s the “before” picture:

image

After (I tweaked the links, too):

image

If you’re already comfortable with HTML and CSS, it turns out to be pretty easy to make a hand-drawn website with highlights that appear when you hover over links. Here’s how!

Step 1: Draw the header image.

It can be more efficient to have one medium-sized image instead of lots of little images, and it’s easier to work with one image instead of many small ones. You’ll use CSS to split this up into rectangular regions later, so keep that in mind when designing your image and try to avoid overlaps.

I drew the main image using Autodesk Sketchbook Pro, but you can use any image-drawing program. You can even draw it on paper and then scan it in.

design

(I didn’t end up using the Random Page! button, but that’s okay. =) )

Step 2: Add highlights.

I added another layer below my main layer and highlighted whatever I wanted to highlight, making sure things were separated by enough whitespace so that the highlights didn’t overlap into another link’s rectangle. If you’re doing this on paper, you can highlight on paper as well.

design-highlighted

You’ll notice that everything is highlighted in this image. No worries! We’ll display just the appropriate part later.

Step 3: Set guidelines.

Setting guidelines using a photo editing tool like the GIMP will make it easier for you to select consistent rectangles. Here, you can see how I’ve set up my guidelines to make it easy to select a rectangle containing the “Home” link. You can use the rectangle selection tool to get the position and size, which you can find in the Tool Options window.

image

Step 4: Write your HTML and add IDs/classes to it.

Code your HTML so that the text makes sense, and then use CSS to replace the text with images and to lay things out for your intended design.

I added IDs and classes to my links to make it easier to replace the links with images later on.

<ul class="links" style="margin-bottom: 0">
<li><a id="home" class="replace home-design" href="/">Home</a></li>
...
</ul>

Step 5: Replace the text with your images using CSS.

There are a number of CSS text->image replacement tutorials out there. The general idea is to use text-indent to hide the text, and then use background, background-position, width, and height to display the right portion of your image.

This is where the guidelines from Step 3 come in handy. Simply make the position negative and use that as the background position, then use the size as the width and height.

.home-design { background: url(images/design.png) 0 0 no-repeat; }
.replace { white-space: nowrap; overflow: hidden; text-indent: 100%; }
#home { width: 96px; height: 40px; background-position: -81px -105px; display: inline-block }
.header .links .replace:hover { background: url(images/design-highlighted.png) 0 0 no-repeat; }

Tada!

Still have questions? Please comment below – I’d be happy to explain more!

Short URL: http://sachachua.com/blog/p/24821

Visual book review: The Visual Marketing Revolution (Stephanie Diamond)

Want to make your social media marketing more visual? The Visual Marketing Revolution: 26 Rules to Help Social Media Marketers Connect the Dots by Stephanie Diamond (Que Publishing, 2013) gives you an overview of rules, tools, content, and tactics to help you plan and improve your marketing.

Click on the image to view or download a larger version.

Visual Book Review - The Visual Marketing Revolution - 26 Rules to Help Social Media Marketers Connect the Dots - Stephanie Diamond

Feel free to share this visual book review! (Creative Commons Attribution – I’d love it if you link back to this site and tell me about it. =) )  It should print out fine on letter-sized paper, too.

Intrigued by the ideas? You can check your local library to see if they have a copy, or buy your own copy below.

Kindle:
Paper:

Disclosure: I received a Kindle copy of this book for review, and I’ll get a small commission if you buy anything from Amazon using the links above.

Other sources of information: books.google.com, visualmarketingrevolution.com

I’ve been working on making my own sites more visual, so I’m looking forward to applying the ideas from this book. If you do as well, please share your stories!

Check out my other visual book reviews

Short URL: http://sachachua.com/blog/p/24865

First impressions of Artrage 4

I occasionally use Artrage Studio Pro for tracing images or animating sketchnotes. The interface doesn’t lend itself as well to real-time sketchnoting, although the natural media support might be interesting to play with if I want to play around with watercolours.

The latest version (Artrage 4) introduces some interesting features that might help me with drawing. The Workbench and Toolbox combination will let me choose just the tools and colour samples I want to use, hiding the rest behind menus in a streamlined interface. I like the ability to save and load toolbox configurations. That will make it easier for me to save colour sets for recurring events or clients. There doesn’t seem to be a way to save the Transform tool as a preset, though, so selecting and moving things will take more clicks. (More on this later.)

I’ve also been looking for a way to project the drawing as a whole while I’m zoomed in and working on part of it. This will let people see the context without getting dizzy or distracted by the way I zoom in and out. Views allow you to “pin” a view of your canvas while you’re working on a different part. I tested it with an external monitor and confirmed that you can drag the view pin off your main Artrage window and onto the second screen, and that you can resize it to almost fill the screen. If I ever need to do projected sketchnotes (the request has come up once or twice, but in the end people opt to focus on the speaker), this might be a possibility.

image

It will take a lot more practice before I feel comfortable using this for real-time sketchnoting. There seems to be a little bit of lag at the beginning of strokes drawn in quick succession, even if I’ve turned smoothing off. Here’s a sample in Artrage 4:

image

and the same thing in Autodesk Sketchbook Pro:

image

Selecting and moving regions doesn’t feel as natural as it does in Autodesk Sketchbook Pro, and that’s something I find myself doing often when I’m drawing a sketchnote. Artrage 4 seems more responsive than Artrage Studio Pro when it comes to moving things around, but the process of selecting, moving, and deselecting takes too much work. As far as I understand it, the steps in Artrage 4 Workbench mode are:

  1. Click on the hard freehand lasso preset I’ve saved to my toolbox.
  2. Select the section to move.
  3. Click on the large tool icon and choose Transform.
  4. Drag the image. Be sure to start dragging within the bounding box of the part of the image that has data, because it won’t detect it if you’re dragging from empty space that you’ve already highlighted.
    image
    (outside the rectangle = won’t actually move things)
  5. Click on Menu > Edit > Deselect all, or you won’t be able to draw outside the selected region.

In Autodesk Sketchbook Pro, I would:

  1. Click on the lasso tool.
  2. Select the area I want to move.
  3. Move it or resize it using the puck that appears when I hover inside the selection.
  4. Switch back to a drawing tool to start drawing anywhere in the screen.

There are keyboard shortcuts for Transform and Deselect all, but I usually don’t have keyboard access while I’m in tablet mode.

So Artrage 4 is probably good for me to use if:

  • I’m drawing/painting for fun, because then I can slow down and I’m not worried about losing anything,
  • I have a keyboard handy so that I can use the keyboard shortcuts to change tools,
  • I need to project a separate view of my drawing, or
  • I want to record a zoomed-out animation of my drawing over a guide drawing. (I suppose I could learn how to green-screen videos… =) )

I might revisit this for sketchnoting if I can stitch together some keyboard macros (maybe using a foot pedal or the Twiddler), but in the meantime, Autodesk Sketchbook Pro will be my workhorse. I’ll play around with Artrage’s drawing and painting support to see if I can build other non-sketchnoting artistic skills/techniques using that. Anyway, it’s good to see progress in applications!

Thanks to Luc Taesch for the nudge to check out Artrage 4!

Short URL: http://sachachua.com/blog/p/24778

How I use Feedburner to give people the option of different blog update frequencies

I’ve been thinking about how to make it easier for people who want to keep in touch but who don’t want to be overwhelmed by my daily posting schedule. Instead of trying to come up with the Best Way on my own, I asked what people wanted. Out of 26 votes (as of the time I wrote this), ten people wanted weekly newsletters and three people wanted monthly newsletters. That probably means that even more people would like those less frequent update options, so I decided to spend some time figuring out a good way to offer that.

Since I already do weekly and monthly reviews, the easiest way would be to make those reviews available in a separate feed that people can subscribe to over RSS or e-mail. I’ve been using Feedburner as a way of making my feeds more browser-friendly and as a way to handle e-mail subscriptions. Although I’d been concerned about the long-term longevity of my feeds in case Feedburner shuts down, it turns out that you can set up your own domain name by following the instructions under My Account > MyBrand.

image

I set up my feeds to use feeds.sachachua.com instead of feeds.feedburner.com. That means that if Feedburner goes away, I just need to change my DNS record to point to my own server and write my own redirect rules. I wish I’d done this earlier! Anyway, if you subscribed to http://feeds.feedburner.com/sachac , please switch to using http://feeds.sachachua.com/sachac instead.

With the new feed URLs in place, I created Feedburner feeds for my weekly and monthly reviews. Category feeds are built-in, so all I needed to do was tell Feedburner to handle http://sachachua.com/blog/category/weekly and http://sachachua.com/blog/category/monthly . I customized each feed to include a short message pointing to the other feeds (Optimize > BrowserFriendly), change the URL, and enable e-mail subscriptions (Publicize > Email Subscriptions).

image

Then I modified my WordPress theme to include links to the new feeds. To make the feeds available from the feed icon in many browsers’ address bars, I added the following code to my <head>…</head>:

<link rel="alternate" 
  type="application/rss+xml" 
  title="Feed (~daily)" 
  href="http://feeds.sachachua.com/sachac" />
<link rel="alternate" 
  type="application/rss+xml" 
  title="Weekly reviews" 
  href="http://feeds.sachachua.com/sachac-weekly" />
<link rel="alternate" 
  type="application/rss+xml" 
  title="Monthly reviews" 
  href="http://feeds.sachachua.com/sachac-monthly" />

Result:

image

I also added links to the feeds in my sidebar using the Appearance > Widgets > Text widget.

Now, people should be able to easily subscribe to whichever frequency they want. =)

On another note: I was surprised and delighted to find that many people wanted daily updates. Thank you! I’ll try to make my headlines useful so that you can guess right away if you would be interested in something, and we’ll see if I can write weekly review headlines with keywords as well.

If you blog a lot, I hope you find this tip handy!

Short URL: http://sachachua.com/blog/p/24832

Emacs Chat: Bastien Guerry

In this chat, Bastien tells stories about getting started in Emacs, reading his mail/news/blogs in Gnus, and hacking his life with Org. =) Enjoy!

Want just the audio? You can get MP3s or OGG from archive.org.

Short URL: http://sachachua.com/blog/p/24857

Slice of life: Home improvements

slice-of-life-20130519-deck

It’s a little intimidating doing something that’s very different from what I usually do, but if I focus on small ways to help, it’s easier. =) And then I can build strength and endurance and knowledge gradually, interleaving challenges with things I can do.

Short URL: http://sachachua.com/blog/p/24855

Emacs, drawing, and blogging: Week ending May 17, 2013

I spent four hours on Friday drawing this beginners’ one-page guide to Emacs, and people really liked it. =) It’ll be awesome to make more things like that! Also, amazing amazing amazing comments from people helping me figure out all sorts of stuff. Thanks! =D

Blog posts

Accomplished this week

  • Business
    • Earn
      • Earn: Consulting – E1 – Thursday
      • Earn: Consulting – E1 – Tuesday
      • Earn: Consulting – E1 –
      • Sketchnote GIST tech conference
    • Build
      • Practise drawing for two hours
      • Set up virtual box
      • Learn about Vagrant, Chef, and Puppet
      • Add polls to my site
      • Add brief bio to my blog sidebar
      • Learn at Toronto Comic Arts Festival
      • Upgrade my Linode
    • Connect
      • Talk to Matt about what he can help me with
      • Talk to Shawn about sketchnoting FITC
      • Talk to ZoomToLearn about illustration
  • Relationships
    • Get together with W-’s family
  • Life
    • Collect 50 sentences for my Japanese-English deck
    • Set up my Ankidroid
    • Have dental new patient exam
    • Take notes on “Strategies for Reading Japanese”
    • Fix library renew script

Plans for next week

  • Business
    • Earn
      • [ ] Earn: Consulting – E1 – Thursday
      • [ ] Earn: Consulting – E1 – Tuesday
    • Build
      • [ ] Sketchnote a book
      • [ ] Choose a topic to package
      • [ ] Set up clean development environment for Quantified Awesome
      • [ ] Build interface for goals
    • Connect
      • [ ] Talk to Bastien Guerry about Emacs
  • Relationships
    • [X] Help W- with setting up the post
    • [ ] Help out with Linden visit to Hacklab?
  • Life
    • [ ] Play some more FF?
    • [ ] Return books to the Japan Foundation library
    • [ ] Plant zucchini, more bitter melon, bok choi, and lettuce

Time review

  • Business: 53.3 hours (Earn: 18.6, E1: 15.6, Connect: 5.9, Build: 28.7)
  • Discretionary: 30.7 hours (Social: 0.7, Productive: 14.6, Writing: 5.7, Emacs: 4.1)
  • Personal: 20.6 hours (Routines: 8.4)
  • Sleep: 54.0 hours – average of 7.7 hours per day
  • Unpaid work: 9.5 hours (Cook: 5.1, Tidy: 0.5)
Short URL: http://sachachua.com/blog/p/24852

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!