From 99975d316c699ccd16e9613a8c1ef7f001ac2aa1 Mon Sep 17 00:00:00 2001 From: Tuan Cao Date: Tue, 19 Apr 2022 11:08:56 +0700 Subject: [PATCH] Some more refined styling --- components/FolderTree.js | 10 +++++++++- styles/style.css | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/components/FolderTree.js b/components/FolderTree.js index 156b238..f9555c8 100644 --- a/components/FolderTree.js +++ b/components/FolderTree.js @@ -7,7 +7,15 @@ import { useRouter } from 'next/router' export default function FolderTree(props) { const renderTree = (nodes) => ( - + {Array.isArray(nodes.children) ? nodes.children.map((node) => renderTree(node)) : null} diff --git a/styles/style.css b/styles/style.css index 8897421..472de66 100644 --- a/styles/style.css +++ b/styles/style.css @@ -110,7 +110,7 @@ a:hover { flex-direction: column; } :root { - --default-font: 'Inter', sans-serif; + --default-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Microsoft YaHei Light", sans-serif; } .theme-light { @@ -194,6 +194,9 @@ a:hover { footer { margin-top: 2em; text-align: center; + background-color: rgb(231, 242, 250); + border-radius: 8px; + padding: 4px; } footer ul li{