From 2173fa309bcb9244c3fb750daf4c979b6a3ebf6f Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Tue, 7 May 2024 17:28:15 +0800 Subject: [PATCH] feat(config): add 'Zhi Mang Xing' font to Google Fonts (#130) Adds the 'Zhi Mang Xing' font to the list of Google Fonts used in the Nuxt.js application. This font is used in the custom Poe component to display the poem text. feat(module): format module date and display it Formats the module date using the `dayjs` library and displays it in a badge next to the module title. This provides more context about when the module was published. style(footer): adjust grid layout on smaller screens Modifies the grid layout of the footer sitemap on smaller screens to display the items in a two-column layout instead of four columns. This improves the responsiveness and readability of the footer on mobile devices. feat(poe): increase font size and adjust animation Increases the font size of the major and poe text in the custom Poe component, making the text more prominent and readable. Additionally, the animation duration of the poe text is adjusted to improve the visual effect. style(theme): adjust secondary color and foreground Updates the secondary color and foreground in the Tailwind CSS configuration to match the primary color, creating a more consistent color scheme throughout the application. --- assets/css/tailwind.css | 4 ++-- components/custom/Poe.vue | 6 +++--- components/public/Footer.vue | 2 +- components/space/Module.vue | 7 +++++-- nuxt.config.ts | 1 + 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index 9cf599f..5c6b02b 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -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%; diff --git a/components/custom/Poe.vue b/components/custom/Poe.vue index 4a720d3..58d7f69 100644 --- a/components/custom/Poe.vue +++ b/components/custom/Poe.vue @@ -5,10 +5,10 @@