From b4bb08d8ee35e14c858aee6115593e9e8ffa404e Mon Sep 17 00:00:00 2001 From: Yangshun Date: Tue, 16 May 2023 18:39:05 +0800 Subject: [PATCH] website: change nav links --- apps/website/docusaurus.config.js | 22 ++++--------------- apps/website/src/css/custom.css | 16 +++++++++++++- .../src/theme/DocItem/Content/index.js | 12 ++++++++++ 3 files changed, 31 insertions(+), 19 deletions(-) diff --git a/apps/website/docusaurus.config.js b/apps/website/docusaurus.config.js index f4c558b4..cf7f27f2 100755 --- a/apps/website/docusaurus.config.js +++ b/apps/website/docusaurus.config.js @@ -9,7 +9,7 @@ module.exports = { projectName: 'tech-interview-handbook', themeConfig: { announcementBar: { - id: 'algomonster-1', // Increment on change + id: 'algomonster-1', // Increment on change content: `Stop grinding mindlessly, study with a plan! Developed by Google engineers, AlgoMonster is the fastest way to get a software engineering job. Check it out now!`, @@ -68,25 +68,11 @@ module.exports = { `, }, { - href: 'https://discord.gg/usMqNaPczq', + href: 'https://linkedin.com/in/yangshun', position: 'right', className: 'navbar-icon', - 'aria-label': 'Discord channel', - html: ``, - }, - { - href: 'https://t.me/techinterviewhandbook', - position: 'right', - className: 'navbar-icon navbar-icon-telegram', - 'aria-label': 'Telegram channel', - html: ``, - }, - { - href: 'https://twitter.com/techinterviewhb', - position: 'right', - className: 'navbar-icon navbar-icon-twitter', - 'aria-label': 'Twitter page', - html: ``, + 'aria-label': 'LinkedIn', + html: ``, }, ], }, diff --git a/apps/website/src/css/custom.css b/apps/website/src/css/custom.css index 4dc50518..8ea53f77 100755 --- a/apps/website/src/css/custom.css +++ b/apps/website/src/css/custom.css @@ -136,7 +136,7 @@ div[class^='announcementBar_'] { .theme-doc-markdown details { --ifm-alert-background-color: transparent; - border: 1px solid var(--ifm-color-primary); + border: 1px solid var(--ifm-color-emphasis-800); } .theme-doc-markdown details h2, @@ -171,3 +171,17 @@ div[class^='announcementBar_'] { .admonition-heading h5 { margin-top: 0; } + +.shoutout { + background-color: var(--ifm-color-primary); + border-radius: 0.5rem; + color: #fff; + display: block; + font-size: 14px; + padding: 0.75rem; +} + +.shoutout:hover { + text-decoration: none; + color: #fff; +} diff --git a/apps/website/src/theme/DocItem/Content/index.js b/apps/website/src/theme/DocItem/Content/index.js index aca69a80..fa263f89 100644 --- a/apps/website/src/theme/DocItem/Content/index.js +++ b/apps/website/src/theme/DocItem/Content/index.js @@ -4,6 +4,7 @@ import { ThemeClassNames } from '@docusaurus/theme-common'; import { useDoc } from '@docusaurus/theme-common/internal'; import Heading from '@theme/Heading'; import MDXContent from '@theme/MDXContent'; + /** Title can be declared inside md content or declared through front matter and added manually. To make both cases consistent, @@ -41,6 +42,17 @@ export default function DocItemContent({ children }) { title="GitHub Stars" /> +
+ + 👋 Hi there, I'm Yangshun, an ex-Meta Staff Engineer, author of this + handbook and Blind 75. Follow me on LinkedIn for Software + Engineering advice and interview tips! + +
{children} );