Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update useRouter import and adjust UI styling #1274

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/suspensive.org/src/components/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const HomePage = ({
<Image src="/img/logo_background_star.png" alt="Suspensive with star" width={400} height={241} />
<div className="flex flex-col items-center gap-4">
<div className="relative text-5xl font-bold">
<span>{title}</span> <span className="right absolute text-sm">v{version}</span>
<span>{title}</span> <span className="absolute right-0 text-sm">v{version}</span>
</div>
<p className="text-3xl">{description}</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/suspensive.org/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router.js'
import { useRouter } from 'next/router'
import { type DocsThemeConfig, useConfig } from 'nextra-theme-docs'

const localeBanner = {
Expand Down Expand Up @@ -34,7 +34,7 @@ const config: DocsThemeConfig = {
<Image src="/img/logo_dark.png" width={34} height={34} alt="suspensive logo" />
<div className="relative">
<strong>Suspensive</strong>
<span className="right absolute text-[8px]">v2</span>
<span className="absolute right-0 text-[8px]">v2</span>
</div>
</div>
)
Expand Down
Loading