mirror of
https://github.com/Kisechan/Mainpage.git
synced 2025-07-10 15:17:18 +00:00
new fonts
This commit is contained in:
18
src/App.vue
18
src/App.vue
@ -11,4 +11,20 @@ import AppFooter from "./components/AppFooter.vue";
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<style scoped>
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
flex: 1; /* 占据剩余空间 */
|
||||
}
|
||||
</style>
|
||||
|
@ -1,12 +1,55 @@
|
||||
/* 定义 LXGW WenKai 字体 */
|
||||
@font-face {
|
||||
font-family: "jx";
|
||||
src: url("@/assets/fonts/jx.ttf") format("truetype");
|
||||
font-family: 'LXGW WenKai';
|
||||
src: url('@/assets/fonts/LXGWWenKai-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'LXGW WenKai';
|
||||
src: url('@/assets/fonts/LXGWWenKai-Bold.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'LXGW WenKai';
|
||||
src: url('@/assets/fonts/LXGWWenKai-Light.ttf') format('truetype');
|
||||
font-weight: 300; /* Light 通常对应 font-weight: 300 */
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* 定义 LXGW WenKai Mono 字体 */
|
||||
@font-face {
|
||||
font-family: 'LXGW WenKai Mono';
|
||||
src: url('@/assets/fonts/LXGWWenKaiMono-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'LXGW WenKai Mono';
|
||||
src: url('@/assets/fonts/LXGWWenKaiMono-Bold.ttf') format('truetype');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'LXGW WenKai Mono';
|
||||
src: url('@/assets/fonts/LXGWWenKaiMono-Light.ttf') format('truetype');
|
||||
font-weight: 300; /* Light 通常对应 font-weight: 300 */
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* 设置全局字体 */
|
||||
body {
|
||||
font-family: "jx", sans-serif;
|
||||
font-family: 'LXGW WenKai', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 设置代码或等宽文本的字体 */
|
||||
code, pre, .monospace {
|
||||
font-family: 'LXGW WenKai Mono', monospace;
|
||||
}
|
@ -3,6 +3,17 @@
|
||||
<div class="footer-content">
|
||||
<p>© 2023 Kisechan</p>
|
||||
<p>还在做还在做还在做还在做</p>
|
||||
<div class="social-icons">
|
||||
<a href="https://twitter.com" target="_blank">
|
||||
<i class="fab fa-twitter"></i>
|
||||
</a>
|
||||
<a href="https://facebook.com" target="_blank">
|
||||
<i class="fab fa-facebook"></i>
|
||||
</a>
|
||||
<a href="https://github.com" target="_blank">
|
||||
<i class="fab fa-github"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</el-footer>
|
||||
</template>
|
||||
@ -21,4 +32,18 @@
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.social-icons {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.social-icons a {
|
||||
color: #b9b7b7;
|
||||
margin: 0 10px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.social-icons a:hover {
|
||||
color: #dddade;
|
||||
}
|
||||
</style>
|
@ -5,6 +5,7 @@ import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import './assets/styles/global.css'
|
||||
import '@fortawesome/fontawesome-free/css/all.css';
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div class="about-container">
|
||||
<!-- <NavBar /> -->
|
||||
<el-main>
|
||||
<el-row :gutter="20">
|
||||
<!-- 左侧正文 -->
|
||||
|
Reference in New Issue
Block a user