Category: The Ride

Sit back, put your feet up and enjoy the ride.

  • Excluding a Content from Getting Styled

    The layout of HTML Patterns contains the following:

    • web view of the HTML markup and CSS
    • source view of the HTML
    • source view of the CSS

    Both the textarea of HTML and CSS are editable to immediately update and reflect the changes on the web view.

    The Problem

    One thing that gets in the way is that the stylesheet of the site gets applied to the content in the web view. The favorable behavior is for it to appear unstyled by default and only the CSS in the source view will affect it.

    Possible Solutions

    1. Contain the web view in div and use style scoped
    2. Reset the style by targeting the parent selector of the web view container
    3. Use iframe srcdoc

    Each of these solutions are not without quirks. I will do a quick follow up as I test for the best solution in this situation.

    Stay tuned!

    10/01/2014

    As far as HTML Patterns is concerned, I settled with #1 – the original solution. Although style scoped is only supported by Firefox, the important thing is that the HTML markup is seen and it is interpreted in the web view. An advantage for Firefox users – they will get to see the style in the web view, too.

    Regarding resetting the style of elements in a specific container, the CSS property all and its value initial, again, is only supported by Firefox. What I did was to manually reset each property that was previously set by the HopScotch stylesheet.

    iframe srcdoc works best in bringing back the style of the content to browser default but it’s hard to control when it comes to live-updating the CSS (aside from the fact that, again, only Firefox supports that attribute).

  • Branding for Photographers by Heidi Aquende – Some Notes

    I’ve had the privilege to attend a talk at Camera Cart about branding for photographers.

    Heidi Aquende invited me to their studio’s 6th anniversary. She did not say who were speaking – only the topics. I chose the first one in the morning and it she who’s speaking.

    Please read with discrection since these are simply notes from the actual context of the talk. Nevertheless, the gist is in there.


    Make a brand around your company

    Using your own name as the company – better because of perceived trust that you will protect your name’s reputation.

    Brand Perception

    • functional/technical
    • emotional

    Tip #1 – Offer quality work

    • be confident with your work
    • poor quality can quickly damage your work
    • let clients see you only want quality
    • it’s not just the service but also the products
    • appear quality – be presentable

    Tip #2 – Be clear about what you stand for

    • unique selling proposition
    • what are your values
    • what do you promise your customers
    • what makes you one in a million

    Tip #3 – Stand out, be different

    • differentiate and customize

    Tip #4 – Be consistent

    Tip #5 – Choose your team

    • suppliers, employees
    • choose who represents you

    Tip #6 – Price better

    • don’t show price in the website
    • discounts and low prices attract price-sensitive clients who might not be for long-term
    • price wars ruin industries
    • price drops teache people to wait for the sale which is soemtimes bad

    Pricing – 4 ways

    • big guess
    • competitive pricing
    • cost pricing
    • demand pricing

    Tip #7 – Find the right clients

    • you can’t please everyone
    • it’s not just about demographics anymore
    • rich clients are not necessarily your clients

    Tip #8 – Give over the top customer service

    • under promise, over deliver
    • listen to negative feedback

    Tip #9 – Nurture relationships

    • Pareto principle – 80% of your income comes from 20% loyal customers
    • keep evangelizers happy
    • reward referrals
    • constantly surprise clients

    Tip #10 – Think long term

    • don’t scrimp on your brand
    • prepare for refund
    • plan ahead
  • Front-end Design Principles

    Here are some guiding principles we’ve adapted along the way in the web design and development industry:

  • Accessible Name and Friendly Name

    If a component is significant enough, it must contain a component name in the form of a heading element (e.g., h1).

    But sometimes there’s a big tone discrepancy between the name of the component and what you want to say in the heading. Consider this example:

    [html]
    <div class="registration-component">
    <h1>Welcome! Please register.</h1>
    <form>…</form>
    </div>
    [/html]

    Although, the context of a registration component is mentioned both in the class name and in the heading element, it still fails in providing an official name for the component which can be crawled by search engines and read by screenreaders.

    The Solution

    It would be what we call an accessible name. It is a formal name for the component inside a heading tag. In the existing example, the heading with the brand tone or voice would be a friendly name wherein we can get creative about.

    Here’s a better example of that registration component:

    [html]
    <div class="registration-component">
    <h1 class="accessible-name">Registration Component</h1>
    <p class="friendly-name">Welcome! Please register.</p>
    <form>…</form>
    </div>
    [/html]

    In CSS, we could visually hide the accessible name and always use a friendly name even if they both have the same content (mostly for HTML markup consistency).

  • 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

  • Stiffany

    They call her that. Stiffany. Like a cross between Stephanie and Tiffany. Her teeth protrude out of her lips and almost she could have been born to peck her food.

    But she is human. A being with some hopes and some dreams. Unlike other species – human or in- – they only exist, they thrive, survive day in and out.

    Not her the least. She acts on these hopes and dreams. In a cramped lady bedspacer she sleeps together with her best friend.

    She wakes up at night to make her body everybody’s business. She acts on her hopes and dreams.

    Nobody knows for sure if she is loved by her family and if she loved them back. Only that truth was running through her head that fateful early morning when she hazily got up from sleep to quench her thirst.

    By the kitchen table she grabbed what was there. It was done and she was done by a silver cleaner the clarity and taste of water. Was it because it was in a bottled water container?

  • Reeking, Leaking

    Reeking, Leaking

    I see boisterousness while tomorrow remains uncertain.

    It is our prerogative to calm down, to be happy, to live in the moment. But the same thing could be said about the opposite.

    What weighs in more is if we choose to be.

    We all want independence. But what we really need is freedom.


    “Leaked” is already a humdrum-ming buzzword – a scheme already exposed. Just like one knows a linkbait when one sees one.


    Here’s something for the morning:

    What a beautiful face
    I have found in this place
    That is circling all round the sun
    What a beautiful dream
    That could flash on the screen
    In a blink of an eye and be gone from me
    Soft and sweet
    Let me hold it close and keep it here with me

    ~ In The Aeroplane Over The Sea by Neutral Milk Hotel

  • Phone and Mouse

    The Phone

    The year was 1998. The place, Taft Ave., Manila. Clad in plaid shirt and my khaki slacks were accentuated by a brick in the left side pocket. It was a Nokia pre-5110 model (similar to the one pictured below). I took it out of my pocket, extruded the antenna to gather some signal and called my mom.

    Nokia 1620 and 100 Peso Bill
    Nokia and a regular bill – not to scale. But believe me, cellular phones were big in all dimensions.

    “I just finished the exam,” I said with a sigh of relief.

    “DLSU Engineering, here I come.” I smugly slid back the cellular phone into my pocket.

    The Mouse

    Gyromite
    The Gyromite device was cool.

    No doubt that kids are attracted to pretty graphics. That’s why my grade 3 classmate who owned a personal computer was more popular by owning a Gyromite device with his Nintendo.

    The PC screen was black and white and sported a keyboard and a dot-matrix printer. We used it to type and print some school papers. Then we’d trade NES game cartridges and play ping-pong on their dinner table.

    [soundcloud url=”https://api.soundcloud.com/tracks/167961809″ params=”auto_play=false&hide_related=false&show_artwork=true” width=”100%” height=”164″ iframe=”true” /]

    The mouse in the house came a little later in ’95. It had a ball that gathered dirt. And yeah, the PC screen was colored already and said Windows 95.

    Windows 95
    Older than you folks out there.
    Mouse Ball
    The “balled” mouse dies eventually.

    We might feel that technology is leaving us behind especially if we try to keep up with it. But just like the phone and mouse, they simply evolve into more functional tools – the mouse lost its tail – the phone dropped its antenna and dissolved physical buttons – but they are still the phone and mouse we use to communicate with someone and control something, respectively (or soon interchangeably).

    Maybe one day they will be totally transformed into something that we won’t recognize anymore (as compared with the pictures) — that’s how evolution goes as far as survival is concerned – you adapt and evolve or you simply perish and be forgotten.