Skip to content

Commit

Permalink
chore: update playground
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Aug 25, 2024
1 parent 4933665 commit 51c0e68
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 26 deletions.
28 changes: 28 additions & 0 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<div class="content">
<h1>Rsbuild with Vue</h1>
<p>Start building amazing things with Rsbuild.</p>
</div>
</template>

<style scoped>
.content {
display: flex;
min-height: 100vh;
line-height: 1.1;
text-align: center;
flex-direction: column;
justify-content: center;
}
.content h1 {
font-size: 3.6rem;
font-weight: 700;
}
.content p {
font-size: 1.2rem;
font-weight: 400;
opacity: 0.5;
}
</style>
20 changes: 0 additions & 20 deletions playground/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,3 @@ body {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
background-image: linear-gradient(to bottom, #020917, #101725);
}

.content {
display: flex;
min-height: 100vh;
line-height: 1.1;
text-align: center;
flex-direction: column;
justify-content: center;
}

.content h1 {
font-size: 3.6rem;
font-weight: 700;
}

.content p {
font-size: 1.2rem;
font-weight: 400;
opacity: 0.5;
}
12 changes: 6 additions & 6 deletions playground/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Vue from 'vue';
import App from './App.vue';
import './index.css';

document.querySelector('#root').innerHTML = `
<div class="content">
<h1>Vanilla Rsbuild</h1>
<p>Start building amazing things with Rsbuild.</p>
</div>
`;
new Vue({
el: '#root',
render: (h) => h(App),
});

0 comments on commit 51c0e68

Please sign in to comment.