Skip to content

Commit b1dc8aa

Browse files
author
Arghya Ghosh
authored
Merge pull request #165 from javaistic/update-layouts
Update layouts
2 parents bb459e3 + 0571a4d commit b1dc8aa

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/layouts/ContentsLayout.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ClassTable } from '@/components/ClassTable'
22
import { PageHeader } from '@/components/PageHeader'
33
import { usePrevNext } from '@/hooks/usePrevNext'
44
import { SidebarContext, SidebarLayout } from '@/layouts/SidebarLayout'
5-
import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/outline'
5+
import { ArrowLeftIcon, ArrowRightIcon, PencilAltIcon } from '@heroicons/react/outline'
66
import clsx from 'clsx'
77
import Link from 'next/link'
88
import { useRouter } from 'next/router'
@@ -208,23 +208,18 @@ export function ContentsLayout({ children, meta, classes, tableOfContents }) {
208208
)}
209209
</div>
210210
)}
211-
<div className="mt-12 border-t border-gray-200 pt-6 text-right dark:border-gray-700">
211+
<div className="mt-12 border-t border-gray-200 dark:border-gray-700">
212212
<Link
213213
href={`https://github.com/javaistic/javaistic/edit/main/src/pages${router.pathname}.mdx`}
214214
>
215-
<a className="mt-10 text-sm hover:text-gray-900 dark:hover:text-white">
215+
<a className="mt-10 flex items-center text-base font-medium hover:text-gray-900 dark:hover:text-white">
216216
Edit this page on GitHub
217+
<PencilAltIcon className="ml-2 h-5 w-5" />
217218
</a>
218219
</Link>
219220
</div>
220-
<Link href={`https://vercel.com/?utm_source=javaistic&utm_campaign=oss`}>
221-
<a className="mr-1 text-sm">
222-
Powered by{' '}
223-
<span className="text text-base font-bold text-black dark:text-white">▲Vercel</span>
224-
</a>
225-
</Link>
226221
</div>
227-
<div className="mr-8 hidden w-64 flex-none pl-8 xl:block xl:text-sm">
222+
<div className="mr-8 mb-8 hidden w-64 flex-none pl-8 xl:block xl:text-sm">
228223
<div className="sticky top-18 flex max-h-(screen-18) flex-col justify-between overflow-y-auto pt-10 pb-6">
229224
{toc.length > 0 && (
230225
<div className="mb-8">

src/layouts/SidebarLayout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Footer } from '@/components/home/Footer'
12
import { Logo } from '@/components/Logo'
23
import { useIsomorphicLayoutEffect } from '@/hooks/useIsomorphicLayoutEffect'
34
import { gradients } from '@/utils/gradients'
@@ -306,6 +307,7 @@ export function SidebarLayout({ children, navIsOpen, setNavIsOpen, nav, sidebar,
306307
</div>
307308
</div>
308309
</div>
310+
<Footer />
309311
</SidebarContext.Provider>
310312
)
311313
}

0 commit comments

Comments
 (0)