Commit dbdcbbe5 by 匡雅琴

提交

1 parent a12b9888
<template>
<div>
<di class="tagcloud"></di>
</div>
</template>
<script>
const texts = ['3D', 'TagCloud', 'JavaScript', 'CSS3', 'Animation', 'Interactive', 'Mouse', 'Rolling', 'Sphere', '6KB', 'v2.x']
import TagCloud from 'TagCloud'
export default {
name: 'HotWords',
data() {
return {}
},
mounted() {
TagCloud('.tagcloud', texts)
}
}
</script>
<style lang="scss">
.tagcloud {
width: 16vw;
height: 16vw;
background-image: url(../../assets/images/hot-words-bg.png);
background-size: 100%;
span {
color: #5894FF;
background-image: -webkit-linear-gradient(left, #0185F9, #53FAFF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
</style>
<template>
<div>
<di class="tagcloud"></di>
</div>
</template>
<script>
const texts = ['3D', 'TagCloud', 'JavaScript', 'CSS3', 'Animation', 'Interactive', 'Mouse', 'Rolling', 'Sphere', '6KB', 'v2.x']
import TagCloud from 'TagCloud'
export default {
name: 'HotWords',
data() {
return {}
},
mounted() {
TagCloud('.tagcloud', texts)
}
}
</script>
<style lang="scss">
.tagcloud {
width: 16vw;
height: 16vw;
background-image: url(../../assets/images/hot-words-bg.png);
background-size: 100%;
span {
color: #5894FF;
background-image: -webkit-linear-gradient(left, #0185F9, #53FAFF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!