Skip to content

Commit

Permalink
chore: website rework (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 authored Feb 12, 2025
1 parent 15529f3 commit 9ae3296
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 33 deletions.
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);
}

0 comments on commit 9ae3296

Please sign in to comment.