Skip to content

Commit 8a1c959

Browse files
committed
docs: refresh playground example
1 parent 27ed559 commit 8a1c959

File tree

3 files changed

+34
-66
lines changed

3 files changed

+34
-66
lines changed

playground/pages/about.vue

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

playground/pages/index.vue

Lines changed: 21 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,58 +9,31 @@
99
<ion-content :fullscreen="true">
1010
<ion-header collapse="condense">
1111
<ion-toolbar>
12-
<ion-title size="large">
13-
Blank
14-
</ion-title>
12+
<ion-title size="large"> Blank </ion-title>
1513
</ion-toolbar>
1614
</ion-header>
17-
<a href="/about">
18-
About
19-
</a>
2015

21-
<div id="container">
22-
<strong>Ready to create an app?</strong>
23-
<p>
24-
Start with Ionic
25-
<a
26-
target="_blank"
27-
rel="noopener noreferrer"
28-
href="https://ionicframework.com/docs/components"
29-
>
30-
UI Components
31-
</a>
32-
</p>
33-
</div>
16+
<ion-list>
17+
<ion-item>
18+
<ion-checkbox slot="start" />
19+
<ion-label>
20+
<h1>Create Idea</h1>
21+
<ion-note>Run Idea By Brandy</ion-note>
22+
</ion-label>
23+
<ion-badge slot="end" color="success"> 5 Days </ion-badge>
24+
</ion-item>
25+
</ion-list>
26+
27+
<ion-fab vertical="bottom" horizontal="end" slot="fixed">
28+
<ion-fab-button @click="() => router.push('/new')">
29+
<ion-icon :icon="add"></ion-icon>
30+
</ion-fab-button>
31+
</ion-fab>
3432
</ion-content>
3533
</ion-page>
3634
</template>
3735

38-
<style scoped>
39-
#container {
40-
text-align: center;
41-
42-
position: absolute;
43-
left: 0;
44-
right: 0;
45-
top: 50%;
46-
transform: translateY(-50%);
47-
}
48-
49-
#container strong {
50-
font-size: 20px;
51-
line-height: 26px;
52-
}
53-
54-
#container p {
55-
font-size: 16px;
56-
line-height: 22px;
57-
58-
color: #8c8c8c;
59-
60-
margin: 0;
61-
}
62-
63-
#container a {
64-
text-decoration: none;
65-
}
66-
</style>
36+
<script setup>
37+
import { add } from 'ionicons/icons'
38+
const router = useIonRouter()
39+
</script>

playground/pages/new.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<ion-page>
3+
<ion-header>
4+
<ion-toolbar>
5+
<ion-buttons slot="start">
6+
<ion-back-button></ion-back-button>
7+
</ion-buttons>
8+
<ion-title>New Item</ion-title>
9+
</ion-toolbar>
10+
</ion-header>
11+
<ion-content></ion-content>
12+
</ion-page>
13+
</template>

0 commit comments

Comments
 (0)