From e236235e668a35955d5c7f261db1d4636aa1a860 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Sat, 9 Jun 2018 13:12:58 +0300
Subject: Initial Cidr component

---
 src/components/Cidr.vue | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 src/components/Cidr.vue

(limited to 'src/components/Cidr.vue')

diff --git a/src/components/Cidr.vue b/src/components/Cidr.vue
new file mode 100644
index 0000000..181c64e
--- /dev/null
+++ b/src/components/Cidr.vue
@@ -0,0 +1,39 @@
+<template>
+  <div class="ip">
+    <div class="octets" v-for="octet in octets">
+      <span class="octet">{{ octet }}</span>
+    </div>
+    <div class="mask">{{ mask }}</div>
+  </div>
+</template>
+
+<script>
+import { Netmask } from 'netmask'
+
+export default {
+  name: 'Cidr',
+  data () {
+    return {
+      octets: [10, 88, 135, 144],
+      mask: 28
+    }
+  }
+}
+</script>
+
+<style scoped>
+h1, h2 {
+  font-weight: normal;
+}
+ul {
+  list-style-type: none;
+  padding: 0;
+}
+li {
+  display: inline-block;
+  margin: 0 10px;
+}
+a {
+  color: #42b983;
+}
+</style>
-- 
cgit v1.3.1

