Commit dbdcbbe5 by 匡雅琴

提交

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