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 6 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: 11 additions & 1 deletion components/TheNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const play = usePlaygroundStore()
const guide = useGuideStore()
const runtime = useRuntimeConfig()
const commands = useCommandsStore()

const repo = 'https://github.com/nuxt/learn.nuxt.com'
const buildTime = new Date(runtime.public.buildTime)
const timeAgo = useTimeAgo(buildTime)
const route = useRoute()

function downloadCurrentGuide() {
if (!play.webcontainer)
Expand Down Expand Up @@ -67,6 +67,7 @@ addCommands(
: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 @@ -103,6 +104,7 @@ addCommands(
</template>
</VDropdown>
<button
v-if="route.path === '/welcome' || route.path !== '/about'"
rounded p2
title="Toggle terminal"
hover="bg-active"
Expand All @@ -112,6 +114,14 @@ addCommands(
<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.
2 changes: 1 addition & 1 deletion content/2.concepts/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ogImage: true

In this chapter, we will cover the core concepts of Nuxt.

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js. If you are not familiar with Vue.js, we recommend you to start with the [Vue Basics](/vue/intro) section and read the [official Vue documentation](https://vuejs.org/) first.
Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js. If you are not familiar with Vue.js, we recommend you to start with the [Vue Basics](/vue) section and read the [official Vue documentation](https://vuejs.org/) first.

## Automation and Conventions

Expand Down
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>