Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 20, 2024
1 parent 986972a commit 6827b79
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 57 deletions.
16 changes: 2 additions & 14 deletions src/app/[...slug]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,13 @@ export default async function Layout({ params, children }: Props) {
<label
className={cn(
'mb-2 text-xs font-bold uppercase leading-4',
// "text-gray-500"
'text-on-surface-variant/50',
)}
>
Previous
</label>
<div className="text-xl">
<Link
href={previousPage.url}
// className="text-gray-900 dark:text-gray-300"
>
{previousPage.title}
</Link>
<Link href={previousPage.url}>{previousPage.title}</Link>
</div>
</div>
)}
Expand All @@ -129,19 +123,13 @@ export default async function Layout({ params, children }: Props) {
<label
className={cn(
'mb-2 text-xs font-bold uppercase leading-4',
// "text-gray-500"
'text-on-surface-variant/50',
)}
>
Next
</label>
<div className="text-xl">
<Link
href={nextPage.url}
// className="text-gray-900 dark:text-gray-300"
>
{nextPage.title}
</Link>
<Link href={nextPage.url}>{nextPage.title}</Link>
</div>
</div>
)}
Expand Down
19 changes: 2 additions & 17 deletions src/components/Codesandbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,15 @@ export default function Codesandbox({

{!hideTitle && (
<>
<h6
className={cn(
'mt-4 font-bold',
// "text-gray-700"
)}
>
{title}
</h6>
<p
className={cn(
'mt-1',
// "text-gray-700"
)}
>
{description}
</p>
<h6 className={cn('mt-4 font-bold')}>{title}</h6>
<p className={cn('mt-1')}>{description}</p>
<div className="w-full">
{tags.map((tag, i) => (
<span
key={i}
className={cn(
'mt-2 inline-block rounded px-1 py-1 text-xs',
i !== tags.length - 1 && 'mr-1',
// 'bg-gray-100 text-gray-500',
)}
>
{tag}
Expand Down
5 changes: 1 addition & 4 deletions src/components/Search/SearchItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ function SearchItem({ search, result }: SearchItemProps) {
// eslint-disable-next-line @next/next/no-img-element
<img className="max-w-[40%] rounded" src={result.image} alt={result.title} />
) : (
<Icon
icon="enter"
// className="text-gray-400"
/>
<Icon icon="enter" />
)}
</div>
</li>
Expand Down
5 changes: 1 addition & 4 deletions src/components/Search/SearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ function SearchModal({ search, results, onClose, onChange }: SearchModelProps) {
<div className="z-100 absolute bottom-20 left-2/4 top-20 w-[500px] max-w-[90%] -translate-x-1/2 transform overflow-y-auto">
<div className="relative mt-1 rounded-md shadow-sm">
<div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<Icon
icon="search"
// className="text-gray-300"
/>
<Icon icon="search" />
</div>
<input
type="search"
Expand Down
5 changes: 1 addition & 4 deletions src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ function Search() {
</span>
<span
style={{ opacity: 1 }}
className={cn(
'hidden rounded-md border px-1.5 py-0.5 text-sm leading-5 sm:block',
// 'border-gray-300 text-gray-400 dark:border-gray-700',
)}
className={cn('hidden rounded-md border px-1.5 py-0.5 text-sm leading-5 sm:block')}
>
<span className="sr-only">Press </span>
<kbd className="font-sans">
Expand Down
7 changes: 1 addition & 6 deletions src/components/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ function Toc({ toc }: ToCProps) {

return (
<div className="max-h-(screen-16) sticky top-16 flex flex-col justify-between overflow-y-auto pb-6">
<label
className={cn(
'mb-2 mt-12 text-sm font-semibold uppercase tracking-wide lg:text-xs',
// "text-gray-900 dark:text-gray-300"
)}
>
<label className={cn('mb-2 mt-12 text-sm font-semibold uppercase tracking-wide lg:text-xs')}>
On This Page
</label>
{toc.map((item, index) => (
Expand Down
1 change: 0 additions & 1 deletion src/components/mdx/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const Grid = ({ children, cols = 4 }: { children: React.ReactNode; cols?:
? 'md:grid-cols-2'
: 'md:grid-cols-1',
`grid-list gap-4 text-sm`,
// 'text-gray-700',
)}
style={{ marginBottom: '1rem' }}
>
Expand Down
8 changes: 1 addition & 7 deletions src/components/mdx/Hint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { IoDocumentTextOutline } from 'react-icons/io5'

export const Hint = ({ children }: { children: React.ReactNode }) => {
return (
<div
className={cn(
'hint my-6 overflow-clip rounded-lg px-6 py-4',
// 'bg-yellow-100 dark:text-gray-500',
'bg-hint-container',
)}
>
<div className={cn('hint my-6 overflow-clip rounded-lg px-6 py-4', 'bg-hint-container')}>
<p className="mb-2 flex items-center gap-1 text-lg">
<IoDocumentTextOutline className="text-[125%]" />
Note
Expand Down

0 comments on commit 6827b79

Please sign in to comment.