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

Begin working on landing page and about page #157

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
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>
</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>
<nuxt-link to="/welcome">
<button rounded bg-green-600 p-3>
Begin Tutorial
</button>
</nuxt-link>
</div>
<!-- Make Homepage -->
</template>
Loading