Skip to content

Commit 9af6b96

Browse files
committed
chore: wip
1 parent 9c962b6 commit 9af6b96

File tree

3 files changed

+36
-11
lines changed

3 files changed

+36
-11
lines changed

lang/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ intro:
1010
dynamic-route: Demo of dynamic route
1111
hi: Hi, {name}!
1212
aka: Also known as
13-
whats-your-name: What's your name?
13+
whats-your-name: "What's your name?"
1414
not-found: Not found

resources/views/index.vue

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,37 @@ const { t } = useI18n()
4040
</script>
4141

4242
<template>
43-
<div class="bg-white h-full flex flex-col items-center justify-center">
44-
<div class="border-2 border-gray-100 p-4 rounded">
45-
<h1 class="text-gray-900 text-7xl tracking-tight uppercase font-semibold">
46-
Stacks
47-
</h1>
43+
<div>
44+
<div class="text-4xl">
45+
<div class="i-carbon-campsite inline-block" />
4846
</div>
47+
<p>
48+
<a rel="noreferrer" href="https://github.com/stacksjs/stacks" target="_blank">
49+
Stacks
50+
</a>
51+
</p>
52+
<p>
53+
<em class="text-sm opacity-75">{{ t('intro.desc') }}</em>
54+
</p>
55+
56+
<div class="py-4" />
4957

50-
<h2 class="text-gray-700 text-2xl pt-6 tracking-tighter">
51-
Coming soon, 2024 — in a fresh paint.
52-
</h2>
58+
<TheInput
59+
v-model="name"
60+
:placeholder="t('intro.whats-your-name')"
61+
autocomplete="false"
62+
@keydown.enter="go"
63+
/>
64+
<label class="hidden" for="input">{{ t('intro.whats-your-name') }}</label>
65+
66+
<div>
67+
<button
68+
class="m-3 text-sm btn"
69+
:disabled="!name"
70+
@click="go"
71+
>
72+
{{ t('button.go') }}
73+
</button>
74+
</div>
5375
</div>
5476
</template>

storage/framework/.stacks/core/vite/src/views.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ import Layouts from 'vite-plugin-vue-layouts'
1010
import { autoImports } from './plugin/auto-imports'
1111
import { components } from './plugin/components'
1212
import { layouts } from './plugin/layouts'
13+
import { fonts } from './plugin/fonts'
14+
// import { i18n } from './plugin/i18n'
15+
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
1316
// import AutoImport from 'unplugin-auto-import/vite'
1417
import Markdown from 'unplugin-vue-markdown/vite'
1518
import VueMacros from 'unplugin-vue-macros/vite'
16-
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
1719
import { VitePWA } from 'vite-plugin-pwa'
1820
import VueDevTools from 'vite-plugin-vue-devtools'
1921
import LinkAttributes from 'markdown-it-link-attributes'
@@ -167,6 +169,7 @@ export default defineConfig({
167169
}),
168170

169171
// https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n
172+
// i18n(),
170173
VueI18n({
171174
runtimeOnly: true,
172175
compositionOnly: true,
@@ -177,7 +180,7 @@ export default defineConfig({
177180
}),
178181

179182
// https://github.com/feat-agency/vite-plugin-webfont-dl
180-
WebfontDownload(),
183+
fonts(),
181184

182185
// https://github.com/webfansplz/vite-plugin-vue-devtools
183186
VueDevTools(),

0 commit comments

Comments
 (0)