diff --git a/src/assets/main.css b/src/assets/main.css index 3b5aefa..c31c6b5 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -10,7 +10,7 @@ body { @layer components { .btn-red { - @apply bg-red-600 outline-red-700 hover:bg-red-700 + @apply bg-red-600 outline-red-700 hover:bg-red-700 disabled:bg-slate-400 disabled:outline-slate-400 disabled:hover:bg-slate-400 } .btn-twitter { @apply bg-twitter-500 outline-twitter-600 hover:bg-twitter-600 diff --git a/src/components/GeolocRequest.vue b/src/components/GeolocButton.vue similarity index 55% rename from src/components/GeolocRequest.vue rename to src/components/GeolocButton.vue index 5afb95c..ac1ce43 100644 --- a/src/components/GeolocRequest.vue +++ b/src/components/GeolocButton.vue @@ -4,9 +4,11 @@ import { useGeolocation } from "@vueuse/core"; import RepButton from "./RepButton.vue"; import { computed, ref } from "vue"; -const { coords } = useGeolocation(); const { getRep, setRep } = useRepStore(); +const { coords } = useGeolocation({ + enableHighAccuracy: true, +}); const isFetching = ref(false); const lastError = ref(""); @@ -31,22 +33,15 @@ async function handleGeolocClick() { diff --git a/src/components/RepButton.vue b/src/components/RepButton.vue index ddd7e52..91937f2 100644 --- a/src/components/RepButton.vue +++ b/src/components/RepButton.vue @@ -11,6 +11,7 @@ const props = defineProps<{ | "btn-facebook" | "btn-instagram" | "btn-linkedin"; + disabled?: boolean; }>(); const elementTag = computed(() => (props.href ? "a" : "button")); diff --git a/src/components/RepForm.vue b/src/components/RepForm.vue new file mode 100644 index 0000000..3722f52 --- /dev/null +++ b/src/components/RepForm.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/main.ts b/src/main.ts index 4d9779f..edd621f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,6 +19,8 @@ import { faLandmark, faLocationDot, faSpinner, + faSquare, + faSquareCheck, } from "@fortawesome/free-solid-svg-icons"; library.add( @@ -28,7 +30,9 @@ library.add( faInstagram, faLandmark, faLocationDot, - faSpinner + faSpinner, + faSquare, + faSquareCheck ); const app = createApp(App); diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index c3deb7c..d15d73d 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,5 +1,5 @@