Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): add 'Zhi Mang Xing' font to Google Fonts #130

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
--primary: 47.75deg 92.27% 59.41%;
--primary-foreground: 39deg 62.5% 6.27%;

--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--secondary: 47.75deg 92.27% 59.41% / 32%;
--secondary-foreground: 39deg 62.5% 6.27%;

--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
Expand Down
6 changes: 3 additions & 3 deletions components/custom/Poe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<template>
<div class="body pt-12 h-screen pb-12">
<div class="relative flex flex-row items-center justify-center gap-2 h-full">
<div class="major text-6xl text-center font-bold tracking-tight text-black">
<div class="major text-7xl text-center font-bold tracking-tight text-black">
谁怕?一蓑烟雨任平生
</div>
<div class="poe absolute top-1/2 left-1/2 text-5xl hover:z-20 -translate-x-1/2 -translate-y-1/2">
<div class="poe absolute top-1/2 left-1/2 text-6xl hover:z-20 -translate-x-1/2 -translate-y-1/2">
<div style="animation: fadeInOut 2s ease-in-out 0s forwards;">
莫听穿林打叶声
</div>
Expand All @@ -25,7 +25,7 @@

<style scoped>
.body {
font-family: Noto Serif SC;
font-family: Zhi Mang Xing;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='24' height='24' fill='rgb(195,195,195)'%3E%3Ccircle cx='16' cy='16' r='1'/%3E%3C/svg%3E");
}

Expand Down
2 changes: 1 addition & 1 deletion components/public/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const props = defineProps<Props>()
<template>
<footer class="mt-12 bg-white dark:bg-gray-900">
<div class="mx-auto w-full max-w-screen-xl">
<div v-if="props.sitemap" class="grid grid-cols-2 gap-8 px-4 pt-12 lg:py-8 md:grid-cols-4">
<div v-if="props.sitemap" class="grid grid-cols-2 gap-8 px-4 pt-12 md:grid-cols-4">
<div v-for="item in props.sitemap" :key="item.title">
<h2 class="mb-6 text-sm font-semibold text-gray-900 uppercase dark:text-white">{{ item.title }}</h2>
<ul v-for="list in item.list" :key="list.title"
Expand Down
7 changes: 5 additions & 2 deletions components/space/Module.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import type { inferRouterOutputs } from '@trpc/server'
import dayjs from 'dayjs'
import type { AppRouter } from '@/server/trpc/routers'

type RouterOutput = inferRouterOutputs<AppRouter>
Expand Down Expand Up @@ -32,8 +33,10 @@ const props = defineProps<Props>()
:width="20"
:url="module.url"
/>
<div class="truncate ">
{{ module.title }}
<div class="truncate">
<span
class="bg-accent color-accent-foreground rounded-full px-2 py-0.5 mr-1"
>{{ dayjs(module.date).format('M') }} 月</span>{{ module.title }}
</div>
</NuxtLink>
</div>
Expand Down
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export default defineNuxtConfig({
googleFonts: {
families: {
'Noto Serif SC': true,
'Zhi Mang Xing': true,
},
},

Expand Down
Loading