Skip to content
Draft
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
12 changes: 12 additions & 0 deletions components/TheNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
const guide = useGuideStore()
const runtime = useRuntimeConfig()
const commands = useCommandsStore()
const repo = 'https://github.com/nuxt/learn.nuxt.com'

Check failure on line 7 in components/TheNav.vue

View workflow job for this annotation

GitHub Actions / autofix

'repo' is assigned a value but never used. Allowed unused vars must match /^_/u

const buildTime = new Date(runtime.public.buildTime)
const timeAgo = useTimeAgo(buildTime)
const route = useRoute()

function downloadCurrentGuide() {
if (!play.webcontainer)
Expand Down Expand Up @@ -66,6 +68,7 @@
:class="guide.embeddedDocs ? 'z-embedded-docs-raised' : ''"
>
<button
v-if="route.path === '/welcome' || route.path !== '/about'"
rounded p2
hover="bg-active"
title="Search"
Expand Down Expand Up @@ -102,6 +105,7 @@
</template>
</VDropdown>
<button
v-if="route.path === '/welcome' || route.path !== '/about'"
rounded p2
title="Toggle terminal"
hover="bg-active"
Expand All @@ -111,6 +115,14 @@
<div i-ph-terminal-window-duotone text-2xl />
</button>
<ColorSchemeToggle />
<NuxtLink
rounded p2
title="About"
hover="bg-active"
to="/about"
>
<div i-carbon-help text-2xl />
</NuxtLink>
<NuxtLink
rounded p2
title="GitHub"
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions pages/about.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<template>
<TheNav />
<h1>About Page</h1>

Check failure on line 3 in pages/about.vue

View workflow job for this annotation

GitHub Actions / autofix

The template root requires exactly one element
</template>
12 changes: 12 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<template>
<TheNav />
<!-- <div absolute top="1/2" left="1/2" translate=""> -->
<div h-screen flex items-center justify-center>

Check failure on line 4 in pages/index.vue

View workflow job for this annotation

GitHub Actions / autofix

The template root requires exactly one element
<nuxt-link to="/welcome">
<button rounded bg-green-600 p-3>
Begin Tutorial
</button>
</nuxt-link>
</div>
<!-- Make Homepage -->
</template>
Loading