Skip to content

Commit 5d6fc32

Browse files
committed
feat: nuxi basis
1 parent e62bc8b commit 5d6fc32

File tree

82 files changed

+5156
-6063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5156
-6063
lines changed

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
.DS_Store
21
node_modules
3-
.temp
2+
*.log*
3+
.nuxt
4+
.nitro
45
.cache
5-
/public
6-
other/
7-
*.draft.md
6+
.output
7+
.env
8+
dist
9+
.DS_Store
File renamed without changes.

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
shamefully-hoist=true
2-
auto-install-peers=true
1+
shamefully-hoist=true

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Nuxt 3 Minimal Starter
2+
3+
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# yarn
11+
yarn install
12+
13+
# npm
14+
npm install
15+
16+
# pnpm
17+
pnpm install
18+
```
19+
20+
## Development Server
21+
22+
Start the development server on http://localhost:3000
23+
24+
```bash
25+
npm run dev
26+
```
27+
28+
## Production
29+
30+
Build the application for production:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
Locally preview production build:
37+
38+
```bash
39+
npm run preview
40+
```
41+
42+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

app.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<div>
3+
<NuxtLayout>
4+
<NuxtPage />
5+
</NuxtLayout>
6+
</div>
7+
</template>

assets/css/main.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

components/navbar.vue

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<template>
2+
<header class="navbar fixed z-20 top-0 left-0 right-0 h-14 border-b border-gray-100 px-6 py-3">
3+
<div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0">
4+
<div class="icon" aria-hidden="true"><span></span><span></span><span></span></div>
5+
</div>
6+
<span>
7+
<a aria-current="page" href="/zh-hans/" class="router-link-active router-link-exact-active">
8+
<img class="logo inline h-8 mr-3" src="/images/logo.png" alt="教程 | Tinkink">
9+
<span class="site-name can-hide text-xl font-bold text-slate-800">教程 | Tinkink</span>
10+
</a>
11+
</span>
12+
<div class="navbar-items-wrapper flex absolute top-3 right-6 bottom-3 pl-6 whitespace-nowrap text-base" style="max-width: 1463px;"><!--[--><!--]-->
13+
<nav class="navbar-items can-hide"><!--[-->
14+
<div class="navbar-item inline-block ml-6" v-for="menu in menus" :key="menu.title">
15+
<a :href="menu.link" class="router-link-active" :aria-label="menu.title">{{ menu.title }}</a>
16+
</div>
17+
<!-- <div class="navbar-item inline-block ml-6">
18+
<div class="navbar-dropdown-wrapper">
19+
<button class="navbar-dropdown-title" type="button" aria-label="Select language">
20+
<span class="title">Languages</span>
21+
<span class="arrow down"></span>
22+
</button>
23+
<button class="navbar-dropdown-title-mobile" type="button" aria-label="Select language">
24+
<span class="title">Languages</span>
25+
<span class="right arrow"></span>
26+
</button>
27+
<ul style="display:none;" class="navbar-dropdown">
28+
<li class="navbar-dropdown-item"><a href="/en/" class="" aria-label="English">English</a></li>
29+
<li class="navbar-dropdown-item"><a aria-current="page" href="/zh-hans/" class="router-link-active router-link-exact-active" aria-label="简体中文">简体中文</a></li>
30+
</ul>
31+
</div>
32+
</div>
33+
<div class="navbar-item">
34+
<a class="external-link" href="https://github.com/tinkink-co/tutorials" rel="noopener noreferrer" target="_blank" aria-label="Github">Github</a>
35+
</div>-->
36+
</nav>
37+
</div>
38+
</header>
39+
</template>
40+
41+
<script setup lang="ts">
42+
const menus = [
43+
{
44+
title: '首页',
45+
link: '/',
46+
},
47+
{
48+
title: 'Languages',
49+
link: '',
50+
children: [
51+
{
52+
title: 'English',
53+
link: '/en/',
54+
},
55+
{
56+
title: '简体中文',
57+
link: '/zh-hans/',
58+
},
59+
],
60+
},
61+
{
62+
title: 'Github',
63+
link: 'https://github.com',
64+
},
65+
];
66+
</script>

docs/.vuepress/client.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/.vuepress/components/HomeLayout.vue

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/.vuepress/components/Validator.vue

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)