Skip to content

Commit

Permalink
chore: update playground style (nuxt#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Oct 12, 2021
1 parent cc14cdd commit ad24965
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 8 deletions.
32 changes: 25 additions & 7 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
<template>
<div>
<img src="~/assets/logo.svg">
<br>
Hello Nuxt 3
<div class="app">
<img src="~/assets/logo.svg" height="40">
<h1 class="greeting">
{{ hello }}, <br>Nuxt 3!
</h1>
</div>
</template>

<script>
export default defineNuxtComponent({
})
<script setup>
const greetings = [
'Hello',
'Hi',
'Salut',
'こんにちは',
'你好'
]
const hello = greetings[Math.random() * greetings.length | 0]
</script>

<style scoped>
.app {
font-family: Avenir, Helvetica, Arial, sans-serif;
padding: 1rem 1.5rem;
}
.greeting {
font-size: 4em;
font-weight: 400;
}
</style>
19 changes: 18 additions & 1 deletion playground/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad24965

Please sign in to comment.