From 2aca4247c5d0c7061a300517178dd31316b65fab Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Thu, 15 Feb 2024 14:01:30 +0000
Subject: Initial commit

---
 src/components/Control/Button.vue | 54 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 src/components/Control/Button.vue

(limited to 'src/components/Control/Button.vue')

diff --git a/src/components/Control/Button.vue b/src/components/Control/Button.vue
new file mode 100644
index 0000000..044cca1
--- /dev/null
+++ b/src/components/Control/Button.vue
@@ -0,0 +1,54 @@
+<script setup lang="ts">
+defineProps({
+  type: {
+    type: String,
+    required: false,    
+    default: 'text',
+  },
+  label: String,
+  icon: Array<String>,
+});
+</script>
+
+<template>
+  <a id="button" :class="{text: type === 'text', solid: type === 'solid'}" >
+    <font-awesome-icon :icon="icon" />
+    {{ label }}
+  </a>
+</template>
+
+<style scoped>
+#button {
+  display: flex;
+  align-items: center;
+  gap: 0.25rem;
+  user-select: none;
+}
+    
+.text {
+  background-color: transparent;
+  color: var(--color-text-primary);
+  transition: color 0.3s;
+  font-weight: 700;
+  cursor: pointer;
+}
+
+.solid {
+  background-color: var(--color-primary);
+  transition: background-color 0.3s;
+  color: var(--color-text);
+  padding: 0.25rem 0.5rem;
+  border-radius: 4px;
+  font-weight: 700;
+  cursor: pointer;
+}
+
+.text:hover {
+  color: var(--color-primary-dark);
+}
+
+.solid:hover {
+  background-color: var(--color-primary-dark);
+}
+    
+</style>
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

