Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
new
  • Loading branch information
liangxiaojuan committed Aug 29, 2023
1 parent 7a1298a commit a2e26af
Show file tree
Hide file tree
Showing 13 changed files with 982 additions and 144 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<title>Vitesse Lite</title>
<title>LoveTravelLive</title>
<meta name="description" content="Opinionated Vite Starter Template">
</head>
<body class="font-sans dark:text-white dark:bg-hex-121212">
Expand All @@ -13,7 +13,7 @@
<div>Please enable JavaScript to use this application.</div>
</noscript>
<script>
(function() {
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('color-schema') || 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
"*": ""
},
"eslintConfig": {
"extends": [
Expand Down
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template>
<main font-sans p="x-4 y-10" text="center gray-700 dark:gray-200">
<main font-sans text="text-12 gray-700 dark:gray-200">
<RouterView />
<TheFooter />
</main>
</template>
Binary file added src/assets/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions src/components/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions src/components/TheCounter.vue

This file was deleted.

15 changes: 0 additions & 15 deletions src/components/TheFooter.vue

This file was deleted.

18 changes: 0 additions & 18 deletions src/components/TheInput.vue

This file was deleted.

20 changes: 0 additions & 20 deletions src/pages/README.md

This file was deleted.

22 changes: 0 additions & 22 deletions src/pages/hi/[name].vue

This file was deleted.

37 changes: 1 addition & 36 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,10 @@
defineOptions({
name: 'IndexPage',
})
const name = ref('')
const router = useRouter()
function go() {
if (name.value)
router.push(`/hi/${encodeURIComponent(name.value)}`)
}
</script>

<template>
<div>
<div i-carbon-campsite inline-block text-4xl />
<p>
<a rel="noreferrer" href="https://github.com/antfu/vitesse-lite" target="_blank">
Vitesse Lite
</a>
</p>
<p>
<em text-sm op75>Opinionated Vite Starter Template</em>
</p>

<div py-4 />

<TheInput
v-model="name"
placeholder="What's your name?"
autocomplete="false"
@keydown.enter="go"
/>

<div>
<button
class="m-3 text-sm btn"
:disabled="!name"
@click="go"
>
Go
</button>
</div>
<img h-full w-full src="../assets/bg.png" alt="">
</div>
</template>
Loading

0 comments on commit a2e26af

Please sign in to comment.