diff --git a/pages/[slug].vue b/pages/[slug].vue index c3f1ee5..f095335 100644 --- a/pages/[slug].vue +++ b/pages/[slug].vue @@ -20,6 +20,22 @@ + + + Log Out + + + Log In + + @@ -218,6 +234,11 @@ function handleNotesChange() { }, 1000) } +async function handleLogout() { + await $fetch('/api/auth/logout', { method: 'POST' }) + window.location.reload() +} + const bibleReferences = computed(() => { if (!sermon.value?.bible_references) return [] try { diff --git a/pages/index.vue b/pages/index.vue index 89af26f..ebba001 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,7 +3,48 @@ - + + + + + + + + + + Manage Sermons + + + Manage Users + + + Log Out + + + + Log In + + + + + + + @@ -44,6 +85,7 @@ + Welcome to New Life! diff --git a/pages/login.vue b/pages/login.vue index 4debf78..30a9d6d 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -3,9 +3,7 @@ - - - + {{ isRegistering ? 'Create Account' : 'Log In' }} {{ isRegistering ? 'Create a new account' : 'Sign in to your account' }}
{{ isRegistering ? 'Create a new account' : 'Sign in to your account' }}