--- /dev/null
+<script setup lang="ts">
+ defineProps<{
+ icon: string,
+
+ isSmall?: boolean,
+ isLeft?: boolean,
+ }>()
+</script>
+
+<template>
+ <span class="icon" :class="{ 'is-small' : isSmall, 'is-left' : isLeft, }">
+ <FontAwesomeIcon :icon="icon" />
+ </span>
+</template>
const auth = useAuth();
// Import components
+ import Icon from "@/components/Icon.vue";
import Notification from "../components/Notification.vue"
// Error string shown to the user in case something went wrong
<input class="input" type="text" v-model="username"
:placeholder="t('Username')" required>
- <span class="icon is-small is-left">
- <i class="fas fa-user"></i>
- </span>
+ <Icon icon="user" is-small is-left />
</p>
</div>
<input class="input" type="password" v-model="password"
:placeholder="t('Password')" required autocomplete="off">
- <span class="icon is-small is-left">
- <i class="fas fa-lock"></i>
- </span>
+ <Icon icon="lock" is-small is-left />
</p>
</div>