Blog>
Snippets

Certification Tracker

A Vue.js application for tracking progress towards various front-end development certifications that can help in advancing careers and breaking through salary ceilings.
<template>
  <div id='app'>
    <ul>
      <li v-for='cert in certifications' :key='cert.id'>
        {{ cert.name }} - Progress: {{ cert.progress }}%
        <progress :value='cert.progress' max='100'></progress>
      </li>
    </ul>
  </div>
</template>
Vue template section creating an unordered list iterating over certifications and displaying their progress using the HTML5 progress element.
<script>
export default {
  name: 'CertificationTracker',
  data() {
    return {
      // Sample data structure for certifications
      certifications: [
        { id: 1, name: 'JavaScript Fundamentals', progress: 80 },
        { id: 2, name: 'Advanced CSS Techniques', progress: 50 },
        { id: 3, name: 'Vue.js Mastery', progress: 30 }
      ]
    };
  }
};
</script>
Vue script section with a data function returning an object containing an example array of certifications with id, name, and progress.
<style>
#app li {
  list-style-type: none;
  margin-bottom: 10px;
}

progress[value] {
  width: 100%;
  height: 20px;
}
</style>
CSS styling for the #app container and progress bars.