Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 5150d5d

Browse files
committed
Update vue app demo style
1 parent aef3f14 commit 5150d5d

File tree

4 files changed

+41
-265
lines changed

4 files changed

+41
-265
lines changed

examples/vue-app/app.vue

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
<script setup>
2-
import { ref } from "vue"
2+
import { ref } from "vue"
33
4-
const msg = ref("Hello World!")
4+
const msg = ref("Hello world!")
55
</script>
66

77
<template>
8-
<h1>{{ msg }}</h1>
9-
<input v-model="msg">
8+
<h1 v-if="msg">{{ msg }}</h1>
9+
<h1 v-if="!msg" style="color: #ccc;">Please type something</h1>
10+
<input v-model="msg" placeholder="Please type something">
1011
</template>
1112

1213
<style scoped>
13-
h1 {
14-
font-size: 30px;
15-
line-height: 2;
16-
}
17-
</style>
14+
h1 {
15+
font-size: 24px;
16+
font-weight: 600;
17+
line-height: 1;
18+
color: #42b883;
19+
margin: 0;
20+
}
21+
22+
input {
23+
display: block;
24+
width: 300px;
25+
height: 36px;
26+
line-height: 36px;
27+
padding: 0 12px;
28+
margin: 12px 0;
29+
border: 1px solid transparent;
30+
border-radius: 6px;
31+
background-color: #f3f3f3;
32+
}
33+
34+
input:focus {
35+
border: 1px solid #999;
36+
background-color: white;
37+
}
38+
</style>

examples/vue-app/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link rel="icon" href="./assets/logo.svg">
8-
<link rel="stylesheet" href="./style/app.css">
8+
<style>
9+
body {
10+
margin: 0;
11+
width: 100vw;
12+
height: 100vh;
13+
display: flex;
14+
align-items: center;
15+
justify-content: center;
16+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
17+
}
18+
</style>
919
</head>
1020

1121
<body>

examples/vue-app/style/app.css

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

examples/vue-app/style/reset.css

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

0 commit comments

Comments
 (0)