From 6f4f0772af411d952448f07ad7354fb91bbd7679 Mon Sep 17 00:00:00 2001 From: chaewon-huh Date: Thu, 25 Jun 2026 13:51:11 +0900 Subject: [PATCH] Refine docs footer utility row --- src/components/footer-utility-row.tsx | 12 ++++++++++++ src/components/footer.tsx | 16 ++++++---------- src/components/social-links.tsx | 6 +++--- src/pages/index.tsx | 6 +++--- src/styles/theme.tsx | 2 +- 5 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 src/components/footer-utility-row.tsx diff --git a/src/components/footer-utility-row.tsx b/src/components/footer-utility-row.tsx new file mode 100644 index 0000000..fb64d1c --- /dev/null +++ b/src/components/footer-utility-row.tsx @@ -0,0 +1,12 @@ +import React from "react"; +import { SocialLinks } from "./social-links"; +import { ThemeSwitcher } from "./theme-switcher"; + +export const FooterUtilityRow: React.FC = () => { + return ( +
+ + +
+ ); +}; diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 76fea1a..01be429 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,8 +1,7 @@ import React from "react"; import { Link } from "./link"; -import { ThemeSwitcher } from "./theme-switcher"; import { Icon } from "./icon"; -import { SocialLinks } from "./social-links"; +import { FooterUtilityRow } from "./footer-utility-row"; interface FooterProps { gitHubEditLink?: string; @@ -15,12 +14,13 @@ export const Footer: React.FC = ({ }) => { return (
-
-
+ + {(gitHubEditLink || lastModified) && ( +
{gitHubEditLink && ( Edit this page on GitHub @@ -33,11 +33,7 @@ export const Footer: React.FC = ({ )}
-
- - -
-
+ )}
); }; diff --git a/src/components/social-links.tsx b/src/components/social-links.tsx index 5f5fffc..7e6de71 100644 --- a/src/components/social-links.tsx +++ b/src/components/social-links.tsx @@ -17,16 +17,16 @@ const socialLinks = [ export const SocialLinks: React.FC = () => { return ( -