Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: website rework #297

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/website/app/app.config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/website/app/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<UApp>
<UApp :tooltip="{ delayDuration: 0 }">
<Header transparent />
<NuxtPage />
</UApp>
Expand Down
2 changes: 1 addition & 1 deletion apps/website/app/components/ColorModeToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</UTooltip>

<template #fallback>
<USkeleton class="w-8 h-8" />
<USkeleton class="size-8" />
</template>
</ClientOnly>
</template>
Expand Down
23 changes: 14 additions & 9 deletions apps/website/app/components/GithubButton.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<template>
<NuxtLink to="https://github.com/next-orders/food" target="_blank">
<UButton
icon="pixel:github"
aria-label="GitHub"
variant="ghost"
color="primary"
size="xl"
/>
</NuxtLink>
<UTooltip text="GitHub">
<ULink to="https://github.com/next-orders/food" target="_blank">
<UButton
leading-icon="pixel:github"
aria-label="GitHub"
variant="ghost"
color="primary"
size="xl"
class="px-2 py-2 gap-1"
>
31
</UButton>
</ULink>
</UTooltip>
</template>
32 changes: 11 additions & 21 deletions apps/website/app/components/Logo.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
<template>
<ClientOnly>
<NuxtLink to="/" class="flex items-center gap-2 leading-tight hover:opacity-80 duration-200">
<img
alt="Logo"
src="~/assets/img/logo-full.png"
class="h-12 w-auto"
:class="{ hidden: isDark }"
>
<img
alt="Logo Dark"
src="~/assets/img/logo-full-dark.png"
class="h-12 w-auto"
:class="{ hidden: !isDark }"
>
</NuxtLink>
</ClientOnly>
</template>
<ULink to="/" class="flex items-center gap-2 leading-tight hover:opacity-80 duration-200">
<img
alt="Logo"
src="~/assets/img/logo.png"
class="h-12 w-auto"
>

<script setup lang="ts">
const colorMode = useColorMode()
const isDark = computed(() => colorMode.value === 'dark')
</script>
<p class="uppercase text-2xl tracking-tight font-serif font-black">
Next Orders
</p>
</ULink>
</template>
3 changes: 3 additions & 0 deletions apps/website/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default defineNuxtConfig({
extends: '@next-orders/ui',
future: {
compatibilityVersion: 4,
},
app: {
head: {
link: [
Expand Down
8 changes: 8 additions & 0 deletions packages/ui/app/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
--ui-radius: var(--radius-lg);
}

:root {
--ui-primary: black;
}

.dark {
--ui-primary: white;
}

.bg-muted {
background-color: var(--ui-bg-muted);
}