-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
71 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,17 @@ | ||
<script setup lang="ts"> | ||
import { f7Link, f7List, f7Page, f7Tab, f7Tabs, f7Toolbar } from 'framework7-vue' | ||
import type { Router } from 'framework7/types' | ||
import { useIsCurrentUserLoaded } from 'vuefire' | ||
defineProps<{ | ||
f7router: Router.Router | ||
}>() | ||
const auth = useCurrentUser() | ||
const authLoaded = useIsCurrentUserLoaded() | ||
const state = reactive({ | ||
showLoginScreen: false, | ||
}) | ||
watch([authLoaded, auth], (values) => { | ||
setTimeout(() => { // This shows too fast, so it's better to lag for 1 second to prevent jarring layout changes | ||
state.showLoginScreen = values[0] && !values[1] | ||
}, 1000) | ||
}) | ||
import { f7List, f7Page } from 'framework7-vue' | ||
</script> | ||
|
||
<template> | ||
<f7Page> | ||
<CommonLoginScreen v-model:opened="state.showLoginScreen" /> | ||
|
||
<f7Toolbar position="bottom" tabbar icons> | ||
<f7Link | ||
tab-link="#home" | ||
tab-link-active | ||
text="Home" | ||
icon-md="material:home" | ||
/> | ||
<f7Link | ||
tab-link="#services" | ||
text="Services" | ||
icon-md="material:sparkle" | ||
/> | ||
<f7Link | ||
tab-link="#events" | ||
text="Events" | ||
icon-md="material:events" | ||
/> | ||
<f7Link | ||
tab-link="#profile" | ||
text="Profile" | ||
icon-md="material:account_circle" | ||
/> | ||
</f7Toolbar> | ||
|
||
<f7Tabs> | ||
<f7Tab id="home" tab-active> | ||
<f7Page no-navbar> | ||
<f7List inset class="space-y-8"> | ||
<div> | ||
<AppHomeMembershipCard /> | ||
</div> | ||
|
||
<div> | ||
<AppHomeNews /> | ||
</div> | ||
</f7List> | ||
</f7Page> | ||
</f7Tab> | ||
|
||
<f7Tab id="services"> | ||
<AppServicesPage /> | ||
</f7Tab> | ||
|
||
<f7Tab id="events"> | ||
<AppEventsPage /> | ||
</f7Tab> | ||
|
||
<f7Tab id="profile"> | ||
<AppProfilePage /> | ||
</f7Tab> | ||
</f7Tabs> | ||
<f7Page no-navbar> | ||
<f7List inset class="space-y-8"> | ||
<div> | ||
<AppHomeMembershipCard /> | ||
</div> | ||
|
||
<div> | ||
<AppHomeNews /> | ||
</div> | ||
</f7List> | ||
</f7Page> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters