Skip to content

Commit 41d5c99

Browse files
committed
fix: update background style condition in app.vue, upgrade @paper-ui/nuxt to version 2.0.2, and refactor HeaderUi component for improved accessibility and structure
1 parent db13f6e commit 41d5c99

File tree

5 files changed

+337
-29
lines changed

5 files changed

+337
-29
lines changed

docs/app.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div
33
class="main h-screen w-screen flex justify-center"
4-
:style="{ background: route.path == '/' ? 'url(/bg.svg) no-repeat' : '' }"
4+
:style="{ background: route.path === '/' ? 'url(/bg.svg) no-repeat' : '' }"
55
>
66
<div class="container h-full text-xl">
77
<HeaderUi />
@@ -11,8 +11,6 @@
1111
</template>
1212

1313
<script setup lang="ts">
14-
import { _backgroundImage } from '#tailwind-config/theme'
15-
1614
const route = useRoute()
1715
</script>
1816

docs/app/components/HeaderUi.vue

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
<template>
22
<div class="w-full">
33
<div class="nav-wrapper flex justify-between px-4 w-full">
4-
<div class=" flex justify-center items-center gap-2 mt-5">
4+
<div class="flex justify-center items-center gap-2 mt-5">
55
<img
66
src="/logo.svg"
7-
class=""
87
width="32"
9-
alt=""
8+
alt="Paper UI Logo"
109
>
11-
<a
12-
href="/"
10+
<NuxtLink
11+
to="/"
1312
class="brand-logo flex"
14-
><div class="text-2xlfont-patrick ">Paper Ui</div></a>
13+
>
14+
<div class="text-2xl font-patrick">Paper Ui</div>
15+
</NuxtLink>
1516
<PUBadge
1617
label="v2.0"
1718
size="large"
@@ -24,26 +25,34 @@
2425
class="right hide-on-med-and-down flex gap-4 mt-4"
2526
>
2627
<li>
27-
<a href="/docs"><PUButton
28-
flavor="outlined"
29-
icon-right="file-alt"
30-
>docs</PUButton></a>
28+
<NuxtLink to="/docs">
29+
<PUButton
30+
flavor="outlined"
31+
icon-right="file-alt"
32+
>
33+
docs
34+
</PUButton>
35+
</NuxtLink>
3136
</li>
3237
<li>
33-
<a href="https://github.com/paper-kit/nuxt"><PUButton
34-
flavor="outlined"
35-
icon-right="github-alt"
36-
>github</PUButton></a>
38+
<a href="https://github.com/paper-kit/nuxt" target="_blank" rel="noopener noreferrer">
39+
<PUButton
40+
flavor="outlined"
41+
icon-right="github-alt"
42+
>
43+
github
44+
</PUButton>
45+
</a>
3746
</li>
3847
</ul>
3948
</div>
4049
</div>
4150
</template>
4251

43-
<script lang="ts" setup>
44-
52+
<script setup lang="ts">
53+
// Component logic here if needed
4554
</script>
4655

4756
<style scoped>
48-
57+
/* Component styles here if needed */
4958
</style>

docs/nuxt.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
export default defineNuxtConfig({
33
modules: [
44
'@nuxt/content',
5-
'../src/module',
5+
'@paper-ui/nuxt',
66
'@nuxtjs/tailwindcss',
7-
'vue3-carousel-nuxt',
87
'@nuxt/image',
98
],
109
devtools: { enabled: true },

0 commit comments

Comments
 (0)