-
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
16 changed files
with
173 additions
and
87 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
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<div class="relative"> | ||
<logo-fume /> | ||
<u-icon name="i-mdi-test-tube" class="w-1/2 h-1/2 text-primary-100 absolute bottom-[10%] right-[1%]" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped></style> |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div class="flex items-center"> | ||
<div class="font-extrabold text-primary-900 dark:text-primary-100">fume</div> | ||
<div class="font-extrabold text-primary-600 dark:text-primary-300 -ml-1">bio</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ export const useCrumb = () => { | |
actions, | ||
action, | ||
add, | ||
custom, | ||
init, | ||
} | ||
} |
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,5 +1,36 @@ | ||
<template> | ||
<div class="w-screen h-screen overflow-hidden bg-white"> | ||
<slot /> | ||
<div class="w-screen h-screen overflow-hidden bg-white dark:bg-gray-950"> | ||
<u-main class="bg-gray-100 dark:bg-gray-950 overlay flex flex-col w-full"> | ||
<slot /> | ||
</u-main> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.gradient { | ||
position: absolute; | ||
inset: 0; | ||
pointer-events: none; | ||
background: radial-gradient(50% 50% at 50% 50%, rgb(var(--color-primary-500) / 0.25) 0, #FFF 100%); | ||
} | ||
.dark { | ||
.gradient { | ||
background: radial-gradient(50% 50% at 50% 50%, rgb(var(--color-primary-400) / 0.1) 0, rgb(var(--color-gray-950)) 100%); | ||
} | ||
} | ||
.overlay { | ||
background-size: 100px 100px; | ||
background-image: | ||
linear-gradient(to right, rgb(var(--color-gray-200)) 0.5px, transparent 0.5px), | ||
linear-gradient(to bottom, rgb(var(--color-gray-200)) 0.5px, transparent 0.5px); | ||
} | ||
.dark { | ||
.overlay { | ||
background-image: | ||
linear-gradient(to right, rgb(var(--color-gray-900)) 0.5px, transparent 0.5px), | ||
linear-gradient(to bottom, rgb(var(--color-gray-900)) 0.5px, transparent 0.5px); | ||
} | ||
} | ||
</style> |
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts"> | ||
useCrumb().add('Shots') | ||
</script> | ||
|
||
<template> | ||
<div> | ||
Page: history | ||
</div> | ||
</template> | ||
|
||
<style scoped></style> |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script setup lang="ts"> | ||
import type { Cartridge, Pen } from '@prisma/client' | ||
import type { MetapiResponse } from '~/types/metapi' | ||
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne()) | ||
if (!page.value) | ||
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true }) | ||
useSeoMeta({ | ||
titleTemplate: '', | ||
title: page.value.title, | ||
ogTitle: page.value.title, | ||
description: page.value.description, | ||
ogDescription: page.value.description, | ||
}) | ||
const { user } = useApi() | ||
const { data: pens, refresh: pensRefresh } = await useApi().api<MetapiResponse<Pen[]>>('/api/pen') | ||
const { data: cartridges, refresh: cartridgesRefresh } = await useApi().api<MetapiResponse<Cartridge[]>>('/api/cartridge') | ||
const reload = async () => { | ||
await pensRefresh() | ||
await cartridgesRefresh() | ||
} | ||
</script> | ||
|
||
<template> | ||
<client-only> | ||
<div v-if="user && pens?.data.length === 0" class="w-full max-w-md mx-auto"> | ||
<u-alert | ||
icon="i-mdi-clock" | ||
title="Awaiting Implementation" | ||
description="We are still setting up your account, check back soon!" | ||
:actions="[{ label: 'Refresh', icon: 'i-mdi-refresh', onClick: reload, variant: 'solid' }]" | ||
/> | ||
</div> | ||
<pen-list v-else-if="pens && cartridges" :pens="pens?.data" :cartridges="cartridges?.data" readonly /> | ||
</client-only> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,21 @@ | ||
<script setup lang="ts"> | ||
import type { Cartridge, Pen } from '@prisma/client' | ||
import type { MetapiResponse } from '~/types/metapi' | ||
const { authModal } = useAuth() | ||
const { data: page } = await useAsyncData('index', () => queryContent('/').findOne()) | ||
if (!page.value) | ||
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true }) | ||
useSeoMeta({ | ||
titleTemplate: '', | ||
title: page.value.title, | ||
ogTitle: page.value.title, | ||
description: page.value.description, | ||
ogDescription: page.value.description, | ||
}) | ||
definePageMeta({ layout: 'bare' }) | ||
const { user } = useApi() | ||
const { data: pens, refresh: pensRefresh } = await useApi().api<MetapiResponse<Pen[]>>('/api/pen') | ||
const { data: cartridges, refresh: cartridgesRefresh } = await useApi().api<MetapiResponse<Cartridge[]>>('/api/cartridge') | ||
const reload = async () => { | ||
await pensRefresh() | ||
await cartridgesRefresh() | ||
} | ||
</script> | ||
|
||
<template> | ||
<div v-if="!user" class="flex items-center justify-center pt-12"> | ||
<u-button icon="i-mdi-login" label="Sign in" color="gray" size="xl" @click="authModal = true" /> | ||
<div class="flex flex-col w-screen h-screen items-center justify-center"> | ||
<logo-bio class="w-64 h-64" /> | ||
<logo-text class="text-5xl mb-8" /> | ||
<client-only> | ||
<u-button v-if="!user" icon="i-mdi-login" label="Sign in" color="gray" size="lg" @click="authModal = true" /> | ||
<u-button v-else icon="i-mdi-home" label="Home" to="/home" color="gray" /> | ||
<template #fallback> | ||
<u-skeleton class="w-20 h-8" /> | ||
</template> | ||
</client-only> | ||
</div> | ||
<div | ||
v-else-if="user && pens?.data.length === 0" | ||
class="w-full max-w-md mx-auto" | ||
> | ||
<u-alert | ||
icon="i-mdi-clock" | ||
title="Awaiting Implementation" | ||
description="We are still setting up your account, check back soon!" | ||
:actions="[{ label: 'Refresh', icon: 'i-mdi-refresh', onClick: reload, variant: 'solid' }]" | ||
/> | ||
</div> | ||
<pen-list v-else-if="pens && cartridges" :pens="pens?.data" :cartridges="cartridges?.data" readonly /> | ||
</template> | ||
|
||
<style scoped></style> |
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
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
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
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