Skip to content

Commit

Permalink
Merge branch 'feat/global' into feat/side-nav-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
limsohee1002 committed Nov 14, 2024
2 parents 3dbf788 + b3cec6e commit 35ac703
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
16 changes: 5 additions & 11 deletions src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from 'react'

import { useDocsData } from '@docusaurus/plugin-content-docs/client'
import useGlobalData from '@docusaurus/useGlobalData'

const Sidebar: FC = () => {
React.useEffect(() => {
Expand All @@ -13,18 +13,12 @@ const Sidebar: FC = () => {
}
})
}, [])
const visibleItems = useDocsData(undefined)
console.log('!!!', visibleItems)

const globalData = useGlobalData()
console.log('globalData', globalData)
return (
<aside id="new-sidebar" className="w-sidebar-w">
<div>new sidebar</div>
<div>new sidebar</div>
<div>new sidebar</div>
<div>new sidebar</div>
<div>new sidebar</div>
<div>new sidebar</div>
<div>new sidebar</div>
<div>new sidebar</div>
Sidebar
</aside>
)
}
Expand Down
8 changes: 4 additions & 4 deletions src/css/infima-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ul {
}

/* Remove default padding */
ul[class],
ol[class] {
ul,
ol {
padding: 0;
}

Expand All @@ -44,8 +44,8 @@ h2,
h3,
h4,
p,
ul[class],
ol[class],
ul,
ol,
li,
figure,
figcaption,
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Navbar: FC = () => {
<div className="hidden md:flex flex-row items-center">
<ThemeSwitch />
<a
className="button-label-4 py-2 px-3 bg-light-accent-2 dark:bg-dark-accent-2 rounded-small ml-2"
className="button-label-4 py-2 px-3 bg-light-accent-2 dark:bg-dark-accent-2 hover:bg-light-accent-2-hovered hover:dark:bg-dark-accent-2-hovered transition rounded-small ml-2"
href="https://docs.google.com/forms/d/e/1FAIpQLSdjSkZam8KiatL9XACRVxCHjDJjaPGbls77PCXDKFn4JwykXg/viewform"
target="_blank"
rel="noreferrer"
Expand Down

0 comments on commit 35ac703

Please sign in to comment.