-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.vue
129 lines (115 loc) · 5.09 KB
/
demo.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<template>
<main class="m-4">
<mb-button :to="{ name: 'index' }">
<mb-icon icon="chevron-left" type="solid" /> Back to home
</mb-button>
<mb-heading :level="1">Heading 1</mb-heading>
<mb-heading :level="2">Heading 2</mb-heading>
<mb-heading :level="3">Heading 3</mb-heading>
<mb-heading :level="4">Heading 4</mb-heading>
<mb-heading :level="2" class="mt-8">Sans-Serif Text</mb-heading>
<mb-paragraph class="font-sans">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
est laborum.
</mb-paragraph>
<mb-heading :level="2" class="font-serif">
Serif And Secondary-Colored Text
</mb-heading>
<mb-paragraph secondary class="font-serif">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium
doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo
inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut
fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem
sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit
amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora
incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
</mb-paragraph>
<mb-box class="my-6">
<mb-heading accent>Box</mb-heading>
<mb-paragraph>This is a box. Just for fun!</mb-paragraph>
</mb-box>
<mb-heading :level="2" class="mt-8">Buttons</mb-heading>
<mb-heading :level="3" class="mt-8">"Real" Buttons</mb-heading>
<mb-paragraph>(Click to increment this number: {{ count }})</mb-paragraph>
<div class="my-2">
<mb-button @click="count += 1">Primary accent</mb-button>
<mb-button secondary @click="count += 1">Secondary accent</mb-button>
</div>
<div class="my-2">
<mb-button success @click="count += 1">Primary success</mb-button>
<mb-button success secondary @click="count += 1">
Secondary success
</mb-button>
</div>
<div class="my-2">
<mb-button danger @click="count += 1">Primary danger</mb-button>
<mb-button danger secondary @click="count += 1">
Secondary danger
</mb-button>
</div>
<div class="my-2">
<mb-button warning @click="count += 1">Primary warning</mb-button>
<mb-button warning secondary @click="count += 1">
Secondary warning
</mb-button>
</div>
<div class="my-2">
<mb-button info @click="count += 1">Primary info</mb-button>
<mb-button info secondary @click="count += 1"> Secondary info </mb-button>
</div>
<mb-heading :level="3" class="mt-8">
Nuxt Links that look like real buttons
</mb-heading>
<mb-paragraph>They redirect you to another page on the site.</mb-paragraph>
<mb-button :to="{ name: 'other' }">Nuxt-Link Button</mb-button>
<mb-button :to="{ name: 'other' }" secondary> Nuxt-Link Button </mb-button>
<mb-heading :level="3" class="mt-8">
Anchors that look like real buttons
</mb-heading>
<mb-paragraph>They redirect you to another site.</mb-paragraph>
<mb-button href="https://marc.dev">Anchor Button</mb-button>
<mb-button href="https://marc.dev" secondary> Anchor Button </mb-button>
<mb-heading :level="2" class="mt-8">Links</mb-heading>
Link that can be <mb-link :to="{ name: 'other' }">embedded</mb-link> in
regular text.
<mb-heading :level="3" class="mt-8">Boxed</mb-heading>
<mb-paragraph>
They can also be "boxed", to align better with the buttons
</mb-paragraph>
<mb-button :to="{ name: 'other' }">Register</mb-button>
<mb-button :to="{ name: 'other' }" secondary>Log in</mb-button>
<mb-link :to="{ name: 'other' }" boxed>Forgot password</mb-link>
<mb-heading :level="3" class="mt-8">Inverted</mb-heading>
<mb-paragraph>
They can also be "inverted". This means that the underline is not
regularly visible, but appears on hover.
</mb-paragraph>
<mb-button :to="{ name: 'other' }">Register</mb-button>
<mb-button :to="{ name: 'other' }" secondary>Log in</mb-button>
<mb-link :to="{ name: 'other' }" boxed inverted>Forgot password</mb-link>
<mb-heading :level="3" class="mt-8">Colors</mb-heading>
<mb-link :to="{ name: 'other' }" boxed success>Success link</mb-link>
<mb-link :to="{ name: 'other' }" boxed danger>Danger link</mb-link>
<mb-link :to="{ name: 'other' }" boxed warning>Warning link</mb-link>
<mb-link :to="{ name: 'other' }" boxed info>Info link</mb-link>
</main>
</template>
<script>
export default {
props: {
level: { type: Number, default: 1 },
},
data() {
return {
count: 0,
}
},
}
</script>
<style></style>