Browse Source

add new

master
sunfree 9 months ago
parent
commit
6eb294bfb0
  1. BIN
      src/assets/images/qq.png
  2. BIN
      src/assets/images/wechat.jpg
  3. 6
      src/assets/index.ts
  4. 15
      src/components/blogs/HomePage.vue
  5. 2
      src/components/blogs/QQCode.vue

BIN
src/assets/images/qq.png

After

Width: 600  |  Height: 600  |  Size: 72 KiB

BIN
src/assets/images/wechat.jpg

After

Width: 600  |  Height: 600  |  Size: 78 KiB

6
src/assets/index.ts

@ -3,7 +3,7 @@ import { createFromIconfontCN } from '@ant-design/icons-vue';
function createIconComponent(iconType: string) { function createIconComponent(iconType: string) {
const IconComponent = createFromIconfontCN({ const IconComponent = createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/c/font_4513281_r2toi9mpbha.js', // 在 iconfont.cn 上生成
scriptUrl: '//at.alicdn.com/t/c/font_4513281_qhbaqfo6egj.js', // 在 iconfont.cn 上生成
}); });
return defineComponent({ return defineComponent({
@ -30,6 +30,7 @@ const RiLiLined = createIconComponent('icon-rili');
const YueDuLined = createIconComponent('icon-yuedu'); const YueDuLined = createIconComponent('icon-yuedu');
const YanJingLined = createIconComponent('icon-yanjing'); const YanJingLined = createIconComponent('icon-yanjing');
const XieZiLined = createIconComponent('icon-xiezi'); const XieZiLined = createIconComponent('icon-xiezi');
const CravatarLined = createIconComponent('icon-cravatar');
export { export {
@ -50,5 +51,6 @@ export {
RiLiLined, RiLiLined,
YueDuLined, YueDuLined,
YanJingLined, YanJingLined,
XieZiLined
XieZiLined,
CravatarLined
} }

15
src/components/blogs/HomePage.vue

@ -35,13 +35,13 @@
<h1>sunfree</h1> <h1>sunfree</h1>
<div class="cardText"></div> <div class="cardText"></div>
<div class="button-group"> <div class="button-group">
<a-button shape="circle" size="large" @click="gravatarClick">
<GravatarLined />
<a-button shape="circle" size="large" @click="cravatarClick" >
<CravatarLined style="color: red;"/>
</a-button> </a-button>
<a-button shape="circle" size="large" @click="qqClick"> <a-button shape="circle" size="large" @click="qqClick">
<QQLined /> <QQLined />
</a-button> </a-button>
<a-button shape="circle" size="large">
<a-button shape="circle" size="large" @click="wechatClick">
<WechatLined /> <WechatLined />
</a-button> </a-button>
<a-button shape="circle" size="large" @click="musicClick"> <a-button shape="circle" size="large" @click="musicClick">
@ -140,7 +140,7 @@
import { h, reactive, ref, nextTick } from 'vue'; import { h, reactive, ref, nextTick } from 'vue';
import { MenuProps } from 'ant-design-vue'; import { MenuProps } from 'ant-design-vue';
import { HomeOutlined, HighlightOutlined, ProfileOutlined, CameraOutlined, UsergroupDeleteOutlined, DownCircleOutlined } from '@ant-design/icons-vue'; import { HomeOutlined, HighlightOutlined, ProfileOutlined, CameraOutlined, UsergroupDeleteOutlined, DownCircleOutlined } from '@ant-design/icons-vue';
import { MusicLined, EmailLined, QQLined, WechatLined, GravatarLined, GitHubLined } from "@/assets"
import { MusicLined, EmailLined, QQLined, WechatLined, GravatarLined, GitHubLined,CravatarLined } from "@/assets"
import Typed from 'typed.js'; import Typed from 'typed.js';
import { onMounted, watch } from 'vue'; import { onMounted, watch } from 'vue';
import type { CSSProperties } from 'vue'; import type { CSSProperties } from 'vue';
@ -458,12 +458,15 @@ const onSearch = (searchValue: string) => {
const img = ref("https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png") const img = ref("https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png")
const gravatarClick = () => {
window.open("https://cn.gravatar.org/")
const cravatarClick = () => {
window.open("https://cravatar.cn/")
} }
const qqClick=()=>{ const qqClick=()=>{
window.open("/qqcode",'_blank') window.open("/qqcode",'_blank')
} }
const wechatClick=()=>{
window.open("/wechatcode",'_blank')
}
const musicClick=()=>{ const musicClick=()=>{
window.open("https://music.163.com/#/playlist?id=160266689") window.open("https://music.163.com/#/playlist?id=160266689")
} }

2
src/components/blogs/QQCode.vue

@ -1,5 +1,5 @@
<template> <template>
<a-qrcode error-level="H" value="https://www.baidu.com" icon="https://www.antdv.com/assets/logo.1ef800a8.svg" />
<a-image :preview="false" :width="500" :height="500" src="/src/assets/images/qq.png"/>
</template> </template>
<script setup lang='ts'> <script setup lang='ts'>

Loading…
Cancel
Save