Skip to content
duane blake

Front End

CSS, JavaScript, Alpine.js, Vue and everyday front-end fixes I've run into on projects.

29 posts · 2011 → 2023

2023

1 post
  1. Changing the default validation message on an HTML input tag Using HTML validation is a good extra protection for using server-side validation. However, I found the validation message used doesn’t always provide the user with enough context about what is wrong with the issue. I’m going to describe how to change this message.

2020

6 posts
  1. Moving from Sass to PostCSS Now that I tend to use TailwindCss for most of my projects I’ve noticed that I don’t really use Sass anymore. I was and still a huge fan of Sass/Scss and I still do use it on legacy projects. When I first started using Sass, I used to use loads of the features sass offers…
  2. My current website hosting, backup and deployment setup I host/look after several different websites. Over the years I’ve used several different hosting companies. I want to run through what my current site setup which I’m using to manage the site I look after.
  3. How to use and add VTT to a video I’ve been doing a lot of work recently on WCAG guidelines on making websites accessible and usable for all users. Something which I discovered and never knew about is using WebVTT which is a basic text file to add subtitles, audio description to video rather than embed straight into the video.
  4. How to create a hamburger menu with Alpine.js and Tailwind CSS AlpineJS is a great lightweight Javascript framework which is very similar to VueJs. It’s quick easy to get up and running. In this tutorial I’m going to show you how to create a simple hamburger menu using AlpineJs.
  5. Truncating lines of text in CSS using line clamp Line Clamp is one of those tools which I wish had existed when I first started to code similar to Border-radius and Box shadow. In a nutshell what Line clamp allows you to do is restrict the number of lines to display based on property value in css.
  6. Using CSS variables with Tailwind CSS I’m a big fan of TailwindCss, I tend to use it for all of my new projects which I’m building. However in some instances I find myself reaching to write custom styles and I’m unable to use the Tailwind apply directive. In situations like this it’s good to be able to use CSS Variables.

2019

4 posts
  1. Useful Vim commands and tips When coding I often switch between both Vim and VScode. The main thing which always impresses me is the amount of commands which are in the editor. Vim is one of them editors the more you put into it the more you get out of it. I have listed some of the command which tend…
  2. Converting Bootstrap's accordions to a Vue.js component From time to time I have to use Bootstrap it’s usually on legacy projects as I tend to prefer to use utility based frameworks such as Tailwindcss. In an attempt to make it more easier to create accordions. I decided to rewrite the Bootstrap collapse accordion code into a Vue.js component.
  3. Front end developer switching from Windows to Linux I’ve now been using Linux on my machine at home for close to a year. I decided to go all in when I has some problems with my windows machine booting up. All of my files are stored on either onedrive, bitbucket or an external hard drive. So I took the plunge and went to…
  4. How to create a search filter with faceting in Vue.js I’m a big fan of VueJs, It’s a great framework. In this quick example I am going to write a Quick search that will filter out results as you type into the search box and it will also have a facet filtering similar to what you see on eCommerce sites.

2018

1 post
  1. How to find website most traffic by day of the week and time of the day using Google Analytics We had a situation at work where we wanted to launch a campaign. We wanted to find out when was the busiest day and what time was the busiest. Doing this with the out of the box reports in Google Analytics is difficult as there no way to create this report. The best way to…

2017

4 posts
  1. Restrict access to a website to only certain IP addresses When building a new website there is a number of ways in which you can allow the user to see the site before launch. The way in which I tend to prefer is once the site is live give the client the a record and request them to change there host file so they can…
  2. How to write a password strength indicator in Vue.js My current place of work like most site has a password strength indicator. The requirements for the password is it has to be longer than seven characters, a capital letter, a special character and a number. All these requirements are currently hidden behind a tooltip. Which isn’t ideal for the user experience. An approach I…
  3. JavaScript currency conversion tool using fetch This is a quick tutorial how to use the fetch command in Javascript to write a currency conversion tools. Using the excellent Api from fixer.io which will get the daily exchange rate.
  4. Using npm instead of Gulp to compile Sass I’m a big fan of Gulp, I’ve been using it for over two years recently I found myself using NPM scripts for my Javascript Applications. So I decided to see if it possible for me to use NPM also to compile my sass files.

2016

2 posts
  1. System notification in Gulp using Notify and Plumber A bugbear when I first started using Gulp instead of using Compass for compiling my stylesheets. Was Gulp would just crashed and you had to restart gulp to get it back running. In this guide i’m going to show you how to prevent this along side showing a system notification for when it errors and…
  2. YouTube gallery using Vue.js At work recently I created a youtube gallery widget using a mixture of jQuery and HandlebarJS. I decide to rebuild my Gallery widget but using VueJs framework something I’ve not used before.

2015

3 posts
  1. How to set up Browsersync with WordPress using WAMP and Gulp I’m a huge fan of BrowserSync. In particular the ActionSync and the Browser reload feature. I’m going to demonstrate how to get BrowserSync working with Wamp, Gulp and WordPress stack.
  2. My Firefox addons Firefox popularity has struggled recently due to the rise of Google Chrome, although i use both browser on daily basis. Firefox is still my personal browser of choice for when working on desktop machines. I’m going to list my add ons which I use on a daily basis.
  3. Current workflow using SVN We currently use Svn in the office altogether their 10 dev which use the code base a mixture

2014

3 posts
  1. Dynamically generate the current year It’s coming up to my favorite time of the year where dev go through their site
  2. Front end developer moving to Laravel I’ve been doing front end for a quite a while, I decided to back into server side development.
  3. Current workflow with Sass and Compass I’ve been using sass and compass for over two years. It has completely changed the way in which I develop…

2013

3 posts
  1. Different charts API I recently worked on a project which required to build admin application which required to produce some…
  2. My current Vim plugins I’ve currently been using Vim as my main editor for the past two years, before that I was mainly Netbeans…
  3. Web testing with PhantomCSS When working on large projects with multiple developers over time a stylesheet can become very difficult and time consuming….

2012

1 post
  1. How to create your own mini search in your browser toolbar One of my favorite features which I like to add to sites which I’m working on is a Browser Mini Search Box. This feature can be used in Firefox and Internet Explorer…

2011

1 post
  1. The art of CSS warfare I have been a Front end web developer now for over 5 years, over this time I have picked up some techniques and best practises…