Responsive Tabs

If you have a component with tabs in your non-mobile website you don’t think about “how will those look on smaller screens?” You already know it’s going to look ok but switching between tabs will not feel comfy in most cases. Instead you should wonder “how do I make it work well on mobile?” or “how to make tabs usable on smaller screens?”. Creating responsive tabs is important to make the website usable in every environment.

responsive-tabs

“Tabs”, how-to

Depending on a number of tabs in your component, making it look and work just like in desktop may not always be the best idea. You can make tabs a little bigger to make them easier to hit with your fingers. Sure, that’ll work on a component with 2 or 3 tabs (with small, non-descriptive captions on them). What if your component have more then 3 tabs or even better – dynamic number of tabs? Predicting the numbers and making silly styling adjustments for each of them is like ignoring a huge hole in your room and stepping over it, everytime you want to get out.

The perfect solution doesn’t need to be a hard one if you start thinking in Responsive Web Design and It doesn’t require any bloated jQuery plugin. While we’re still going to use a little bit of jQuery, It will only be used to switch between CSS classes.

Continue reading

Chat with moderation

Realtime chat with moderation mode – which means that moderators can publish only hand-picked messages, which can be useful in Q&A sessions.

What is used

  • Node.js – server side JavaScript. Managing connected users, validating messages etc.
  • Socket.IO – real-time link between server server and client using HTML5 WebSocket.
  • AngularJS – for the client-side
  • Bower – package manager for the client stuff

It’s work in progress!

This project is in really early stage, right now It can function as simple chat app for everyone. There is no moderation mode yet. Feel free to for the source if you find it interesting.

Get it on BitBucket

https://bitbucket.org/zielakpl/chat

Scrollable off-canvas navigation in HTML mobile app

There are many different ways to achieve nice and fluid off-canvas navigation in mobile websites. Some simple solutions can be easily implemented in you mobile app without too much of a trouble. The problem comes when we want to create menu similar to those in native apps, like Google+ or new Gmail app. We start to design it on the computers, we put some JS and CSS definitions – everything works fine! By the time we open our app on the phone we realize that something is not quite right… and it get’s even worse on other or older devices.

YouTube Android app with native off-canvas menu

Imitate native app’s navigation in HTML

On the new YouTube app, we have a combination of a fixed header and off-canvas menu. When we pull out menu, the rest of the containers stays on place. We can easily swipe through the list in menu and swipe it off to hide it.

I wanted to create similar menu, which slides in from left side of the screen when I tap a logo and hide it when I tap it again.

Continue reading

The first one

Status

Hi, I’m Darek Zieliński and I’ve just created the very first blog post here. This little blog is going to be filled with articles about glorious HTML, CSS, JS, Mobile-tastic experiences and many, maaany more.

I’m mostly interested in front-end-dev-whatever + a little bit of Ruby on Rails programming (making some JSON data provider for the Angular JS app, just for testing) BUT I might also go a bit into graphic design and usability – just because I like to make sure everything is polished. I’ll be sure to update at least once per week with new findings, tricks or other content – cross that out, I’m going to take my time to provide you with better content. Less quantity – more quality!

I’ve got that big project to make for financal company I work in – mobile HTML5 app. It’s going to be a huge challenge for me, so whenever I find “something funny” or worth sharing during development – I’ll make sure to post it in here.

Keep it simple!