From 9ce9feafb7b39360b403fbd43f4bc278bd442b4e Mon Sep 17 00:00:00 2001 From: songtianlun Date: Thu, 16 Jan 2025 21:02:13 +0800 Subject: [PATCH] feat: update layouts and styles - Update the footer layout to include copyright information and navigation links - Improve the header layout with a responsive theme switcher - Configure Tailwind CSS to use light and dark themes This change enhances the project's user interface and user experience by providing a more visually appealing and responsive design. It includes updates to the footer and header layouts, making it easier for users to navigate the site. Additionally, it configures Tailwind CSS to use light and dark themes, allowing users to customize their experience to suit their preferences. --- app/views/layouts/_footer.html.erb | 11 +++++++++++ app/views/layouts/_header.html.erb | 22 ++++++++++++++++++++++ config/tailwind.config.js | 4 ++-- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index f6d0c10..dbf4119 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -36,4 +36,15 @@ + + \ No newline at end of file diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 06814ad..477da18 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -67,5 +67,27 @@ <% end %> + \ No newline at end of file diff --git a/config/tailwind.config.js b/config/tailwind.config.js index 99b9ec7..e4d7df9 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -24,8 +24,8 @@ module.exports = { // require('@tailwindcss/container-queries'), ], daisyui: { - themes: false, // false: only light + dark | true: all themes | array: specific themes like this ["light", "dark", "cupcake"] - darkTheme: "light", // name of one of the included themes for dark mode + themes: ["light", "dark"], // false: only light + dark | true: all themes | array: specific themes like this ["light", "dark", "cupcake"] + darkTheme: "dark", // name of one of the included themes for dark mode base: true, // applies background color and foreground color for root element by default styled: true, // include daisyUI colors and design decisions for all components utils: true, // adds responsive and modifier utility classes