Skip to content

Commit e623ed9

Browse files
committed
fix(icons): missing icons
1 parent 574cf88 commit e623ed9

8 files changed

Lines changed: 77 additions & 25 deletions

File tree

components/Showcase.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
h2.title {{ item.showcase.title }}
77
.description {{ item.showcase.description }}
88
.links
9-
Button(:to="localePath('/examples')" icon="ios-code" shape="circle" type="primary") {{$t('examples')}}
10-
Button(:to="localePath('/docs/')" icon="ios-book" shape="circle" type="primary") {{$t('docs')}}
9+
Button.button(:to="localePath('/examples')" shape="circle" type="primary")
10+
Icon.icon(name="fa6-solid:code")
11+
| {{$t('examples')}}
12+
Button.button(:to="localePath('/docs/')" shape="circle" type="primary")
13+
Icon.icon(name="fa6-solid:book-open")
14+
| {{$t('docs')}}
1115
Card.preview(:padding="0")
1216
.open
1317
Tooltip(:content="$t('openNewTab')" placement="top-end")
14-
Button(:to="item.showcase.link || item.showcase.source" icon="ios-link" target="_blank")
18+
Button.link(:to="item.showcase.link || item.showcase.source" target="_blank")
19+
Icon(name="f7:link")
1520
client-only
1621
FrameExample(:src="item.showcase.source" :lazy="true")
1722
template(#placeholder)
@@ -86,6 +91,11 @@ export default {
8691
+phone
8792
flex-direction: row
8893
justify-content: center
94+
.button
95+
.icon
96+
vertical-align: text-top
97+
margin-right: 0.3em
98+
size: 1.05em
8999
90100
.preview
91101
width: 80%
@@ -103,6 +113,7 @@ export default {
103113
border-radius: 1.8em 0 0 0
104114
border-bottom: 0
105115
border-right: 0
116+
padding: 0.1em 0.6em
106117
img
107118
display: block
108119
width: 100%

components/content/ProExample.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ IViewAlert.alert(show-icon)
55
Tooltip(placement="top")
66
template(#content)
77
.tooltip {{ $t('examplesPage.proExample.info') }}
8-
Button(type="text" shape="circle" icon="ios-help-circle-outline")
8+
Button.question(type="text" shape="circle")
9+
Icon.icon(name="f7:question-circle")
910
Button.button(:to="patreon.link" target="_blank") {{ $t('examplesPage.proExample.getAccess') }}
1011
template(#icon)
1112
Icon.icon(name="ion:finger-print")
@@ -52,6 +53,10 @@ export default {
5253
text-wrap: wrap
5354
.icon
5455
font-size: 1.25em
56+
.question
57+
padding: 0.2em 0.5em
58+
.icon
59+
vertical-align: text-top
5560
5661
iframe
5762
width: 100%

components/content/RefExample.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<template lang="pug">
2-
Button(
3-
shape="circle"
4-
size="small"
5-
icon="ios-code"
2+
RefButton(
3+
:title="title"
4+
icon="fa6-solid:code"
65
:to="link"
76
)
8-
| {{title}}
97
</template>
108

119
<script>
10+
import RefButton from '../shared/RefButton.vue';
1211
1312
export default {
13+
components: {
14+
RefButton,
15+
},
1416
props: ['title', 'link'],
1517
};
1618
</script>

components/content/RefExternal.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<template lang="pug">
2-
Button(
3-
shape="circle"
4-
size="small"
5-
icon="ios-link"
2+
RefButton(
3+
:title="title"
4+
icon="fa6-solid:link"
65
:to="link"
76
)
8-
| {{title}}
97
</template>
108

119
<script>
10+
import RefButton from '../shared/RefButton.vue';
1211
1312
export default {
13+
components: {
14+
RefButton,
15+
},
1416
props: ['title', 'link'],
1517
};
1618
</script>

components/content/RefGithub.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<template lang="pug">
2-
Button(
3-
shape="circle"
4-
size="small"
5-
icon="logo-github"
2+
RefButton(
3+
:title="title"
4+
icon="fa6-brands:github"
65
:to="link"
76
)
8-
| {{title}}
97
</template>
108

119
<script>
10+
import RefButton from '../shared/RefButton.vue';
1211
1312
export default {
13+
components: {
14+
RefButton,
15+
},
1416
props: ['title', 'link'],
1517
};
1618
</script>

components/content/RefGuide.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<template lang="pug">
2-
Button(
3-
shape="circle"
4-
size="small"
5-
icon="ios-book"
2+
RefButton(
3+
:title="title"
4+
icon="fa6-solid:book-open"
65
:to="link"
76
)
8-
| {{title}}
97
</template>
108

119
<script>
10+
import RefButton from '../shared/RefButton.vue';
1211
1312
export default {
13+
components: {
14+
RefButton,
15+
},
1416
props: ['title', 'link'],
1517
};
1618
</script>

components/shared/RefButton.vue

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template lang="pug">
2+
Button(
3+
shape="circle"
4+
size="small"
5+
:to="link"
6+
)
7+
Icon.icon(:name="icon")
8+
| {{title}}
9+
</template>
10+
11+
<script>
12+
13+
export default {
14+
props: ['title', 'link', 'icon'],
15+
};
16+
</script>
17+
18+
<style lang="sass" scoped>
19+
.icon
20+
margin-right: 0.3em
21+
vertical-align: text-bottom
22+
</style>

pages/index.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
a.origin(href="https://stand-with-ukraine.pp.ua" target="_blank")
1212
img(:src="originBadge" alt="Stand with Ukraine")
1313
Logo.logo(v-if="!intro" :hover="logoIsHovered" :zoomIn="false")
14-
Button.intro-button(v-if="!intro" shape="circle" type="primary" icon="logo-youtube" @click="intro = true") Intro
14+
Button.intro-button(v-if="!intro" shape="circle" type="primary" @click="intro = true")
15+
Icon.icon(name="fa6-brands:youtube")
16+
| Intro
1517
Intro.intro(:show="intro" :scroll="true" :autoplay="true")
1618
.highlights.section
1719
.highlight
@@ -101,6 +103,10 @@ export default {
101103
.intro-button
102104
margin: auto
103105
display: block
106+
.icon
107+
font-size: 1.2em
108+
margin-right: 0.3em
109+
vertical-align: text-top
104110
.intro
105111
margin: 2em auto 0 auto
106112
+phone

0 commit comments

Comments
 (0)