Skip to content

Commit 5ab761d

Browse files
committed
Added live example in getting started page
1 parent a8bbc2b commit 5ab761d

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

docs/guide/README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,51 @@ The npm package for Bounce UI Vue will be released soon
1515

1616
First, download the <a download :href="$withBase('/dist/bounce_ui.umd.js')">umd file</a> and the <a download :href="$withBase('/dist/bounce_ui.css')">css file</a> for Bounce UI.
1717

18-
Here is some example code to get you started, assuming you've saved the files in a dist folder
18+
Here is some example code to get you started, no download required!
1919

2020
```html
2121
<!DOCTYPE html>
2222
<html lang="en">
2323
<head>
2424
<meta charset="UTF-8">
2525
<meta name="viewport" content="width=device-width, initial-scale=1.0">
26-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@6.4.95/css/materialdesignicons.min.css">
26+
<link rel="preconnect" href="https://fonts.googleapis.com">
27+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2728
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
28-
<link rel="stylesheet" href="./dist/bounce_ui.css">
29+
<link rel="stylesheet" href="https://tomatopickle.github.io/bounce_ui_vue_docs/dist/bounce_ui.css">
2930
<title>Bounce UI</title>
3031
</head>
3132
<body>
3233
<div id="app">
3334
<b-app>
3435
<b-container>
35-
<h1>Bounce UI ready!</h1>
36+
<h1>{{heading}}</h1>
3637
<br>
3738
<b-btn @click="$toggleTheme()" color="primary">Toggle Theme</b-btn>
39+
<br><br>
40+
<b-input v-model="heading"></b-input>
3841
</b-container>
3942
</b-app>
4043
</div>
4144
</body>
4245
<script src="https://unpkg.com/vue@next"></script>
43-
<script defer src="./dist/bounce_ui.umd.min.js"></script>
44-
<script defer src="script.js"></script>
46+
<script src="https://tomatopickle.github.io/bounce_ui_vue_docs/dist/bounce_ui.umd.min.js"></script>
47+
<script defer>
48+
const App = {
49+
data() {
50+
return {
51+
heading:"Bounce UI ready!"
52+
}
53+
}
54+
}
55+
56+
const app = Vue.createApp(App);
57+
app.use(bounce_ui.default);
58+
app.mount('#app');
59+
</script>
4560
</html>
4661
```
4762

63+
<iframe frameborder="0" width="100%" height="500px" src="https://replit.com/@AbaanShanid/Bounce-UI-Demo?embed=true"></iframe>
64+
4865
All set up? Check out [Components](/bounce_ui_vue_docs/components/)

0 commit comments

Comments
 (0)