Category: Updates

  • UI Type and State Class Naming Convention

    There are numerous types of user interfaces that we use in our designs – there are pages, screens, popovers, dialog boxes, alert boxes, sliders, tooltips, overlays, and the list goes on.

    It is important for front-end designers to establish a system for naming such containers and reusing them all over our web projects via the class attribute of an HTML element (e.g., <div class="class-name">...</div>).

    Say, for example, you want to define a container to appear as a dialog box. There are two important things to consider: first is the type of UI and the second is the state of that UI. The solution to this task is to hook up the class name of an HTML element with CSS. Then in CSS, the visual design for a particular UI type is already defined, as well as its different states (active or inactive).

    The Naming Convention

    Instead of mindlessly coming up with names, we must establish a naming convention (very similar to BEM) to help and guide us with repeatedly naming class names depending on the need.

    In general, we would start from generic to specific in this syntax:

    [code]<generic>__<identifier>–<specific>[/code]

    The generic name says something about the whole naming convention – whether it’s a type of UI or a state of an element. The identifier is the element that narrows down towards the specific (in some cases if it answers to the generic name, it is the specific name). The specific name answers to the generic name similar to attribute="value" syntax (i.e., generic="specific").

    Consider wanting to classify an element under a dialog box type of UI:

    [html]
    <div class="ui-type–dialog-box">

    </div>
    [/html]

    Or defining a state of the dialog box:

    [html]
    <div class="ui-type–dialog-box ui-state__dialog-box–active">

    </div>
    [/html]

    In our example, the generic names are ui-type and ui-state and the specific names are dialog-box and active, respectively. In the case of the generic name ui-type, dialog-box acts as the specific. And lastly, the separator between a generic name and an identifier is a double-underscore __ and the separator between a generic name or an identifier and a specific name is a double-dash --. The separators make the relationship between the names easier to understand and the syntax, easier to read for different front-end designers sharing front-end documents.

    Further Reading

    Metadata Syntax on Wikipedia

  • First Post

    Hey there, welcome to Design DriveThru Blog.

    This serves as our idea scratch paper – like the tissue you get a hold of in a restaurant during a light bulb moment.

    The main purpose of this is to document work in progress about Front-end Design stuff. The secondary purpose is to share the thoughts with the design and development community.

    I hope this gets productive and helpful.

    ~ Dys

  • Still Smooth Around the Edges with Angular.js

    I just hit a deadspot with Angular.js tutorial at Code School.

    I wished that aside from the “Use a Hint” action, there’s also an available “Show the Answer” (for frustrated learners like me).

    Shaping up with Angular.js

    Time to skip this part!

  • On Productivity and Looking Into One’s Self

    I remember a talk I had with Jayce during a cab ride to MRT, I was telling her about a difficulty I am having with my team about managing projects and deliverables and mostly about their productivity which is greatly dependent on my plans to develop and further each of our careers.

    I realized in the process that I have my own inadequacies especially my own productivity, the way I am not focused on their individual projects because most of the time I leave them to plan their own day and I plan my own. Which resulted in a vague sense of accomplishment. What did we finish this week? Can it be improved? Should be do something better than having lots of free time?

    So I resolved in resolving my management style first before taking it on other people in my team.

    This week, I am being hands-on and aware that I am not micromanaging anyone. Because nobody likes even the worst or best micro-manager in the world.

  • Chikka – Since Year 2000

    Chikka - Since Year 2000

    Chikka created the world’s first instant messenger for online chat to integrate mobile features via SMS. In 2000 the very first version of Chikka Text Messenger™ was tested for launch by its very first mobile operator partner Smart Communications.
    ~ Source

    ~ Source

    It’s Chikka’s 14th anniversary today. Just a mere 2 years after its inception, I was jamming with Luna – simply unaware that one day I would be part of this solidly Filipino company.

    (more…)
  • The Guadalupe Bridge of News Sites

    Do you read the news? I bet you do on Twitter and thru Facebook News Feed.

    Some news sites are cleaner than others (especially foreign news sites) wherein the reader could focus on the article.

    Have you passed by Guadalupe Bridge? I’m sure you’ve already seen the billboard capital of Metro Manila.

    It looks like this on a sunny day:

    The Real Guadalupe Bridge
    Source

    And this morning, I saw it on a news website:

    Guadalupe Bridge Website

    Might as well:

    Guadalupe Bridge Website Billboards


    I have no unsolicited advice for cluttered news sites since revenue maybe booming from advertisements (heck, you only need a linkbait or a scary headline). But local news sites have been this way since a decade ago.

    This is what we need. A breath of fresh air.

    Rappler

  • Recreating The Verge’s Article Preview Boxes

    The Verge has some colorful boxes that contain a preview of their articles. Basically, they look like this (RIP Robin Williams):

    The Verge's Article Titles

    We’ll recreate one of those boxes using the following:

    Disclaimers

    • I didn’t view the HTML or CSS source of The Verge
    • I recreated it using the visible information with emphasis on the content structure
    • the semantics could be improved by ARIA
    • no information on browser compatibility

    TL;DR

    This is the final result of the recreation.

    [codepen_embed height=”395″ theme_id=”1820″ slug_hash=”tJdGn” default_tab=”result”]See the Pen Recreating The Verge’s Article Preview Boxes by Brian Dys Sahagun (@BrianSahagun) on CodePen.[/codepen_embed]

    (more…)

  • Seeds and Fruits

    Plant seeds in the neighborhood, grow fruits in your yard

    Plant seeds in the neighborhood, grow fruits in your yard.
    ~ BS

    Developing one’s turf must be a priority before developing others. It is my patriotic principle why I am proud to be one of the workforces in our country. I, alone, am contributing a meager amount of help but I won’t feel the same contributing any help from a faraway land.

    I might be speaking in tongues but I’m talking about my awareness of living in Manila, Philippines and my constant struggle in finding the balance between my personal hopes & dreams and this land’s baby steps into a better future.

  • Movie Premiere or Graduation?

    From the Podcast, Unfinished Business Episode 76: Two old farts Googling

    I’ve always wanted to be the guy that has the best barbecue that you walk away from and you go, “We gotta go back to that guy’s place – it was a laugh and there was plenty of food and it was all good fun.”
    ~ John Davey

  • Plateauing and Bodybuilding

    From the Podcast, Unfinished Business Episode 77: Dirty, filthy, paid ads

    I’ve decided that I’m going out on my own. Like I’m gonna write my own products, I’m gonna get my qualifications. I’m going out. I’m ready to put the money, the financial investment into it and everything else. I’m ready.
    ~ Ashley Baxter

    That means you’re leaving your plateau.
    ~ Andy Clarke