Skip to content

Commit b4ff6dc

Browse files
committed
fix: Mobile view
1 parent a69bd83 commit b4ff6dc

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

app/changelog/layout.tsx

+6-21
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,14 @@ import 'prism-sentry/index.css';
44
import {ReactNode} from 'react';
55
import {Theme} from '@radix-ui/themes';
66
import type {Metadata} from 'next';
7-
import localFont from 'next/font/local';
7+
import {Rubik} from 'next/font/google';
88

99
import {Navbar} from 'sentry-docs/components/changelog/navbar';
1010

11-
const rubik = localFont({
12-
src: [
13-
{
14-
path: '../../src/fonts/rubik-regular.woff2',
15-
weight: 'normal',
16-
style: 'normal',
17-
},
18-
{
19-
path: '../../src/fonts/rubik-medium.woff2',
20-
weight: '500',
21-
style: 'normal',
22-
},
23-
{
24-
path: '../../src/fonts/rubik-italic.woff2',
25-
weight: 'normal',
26-
style: 'italic',
27-
},
28-
],
29-
variable: '--font-rubik',
11+
const rubik = Rubik({
12+
weight: ['400', '500', '700'],
13+
style: ['normal', 'italic'],
14+
subsets: ['latin'],
3015
});
3116

3217
export const metadata: Metadata = {
@@ -36,7 +21,7 @@ export const metadata: Metadata = {
3621
export default function ChangelogLayout({children}: {children: ReactNode}) {
3722
return (
3823
<Theme accentColor="violet" grayColor="sand" radius="large" scaling="95%">
39-
<div className={`${rubik.variable} font-sans`}>
24+
<div className={`${rubik.className} font-sans`}>
4025
<Navbar />
4126
<div className="bg-gray-100">{children}</div>
4227
<div className="w-full mx-auto h-16 relative bg-darkPurple">

src/components/changelog/navbar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function Navbar() {
1414
>
1515
<Image src={SentryWordmarkSVG} alt="Sentry's logo" width={150} />
1616
</a>
17-
<div className="flex space-x-4">
17+
<div className="flex space-x-4 hidden md:block">
1818
<Link
1919
className="hover:bg-gray-100 rounded-md px-3 py-2 text-sm font-medium uppercase"
2020
href="/changelog"
@@ -24,14 +24,14 @@ export function Navbar() {
2424

2525
<Link
2626
className="hover:bg-gray-100 rounded-md px-3 py-2 text-sm font-medium uppercase"
27-
href="/"
27+
href="https://docs.sentry.io/"
2828
>
2929
Documentation
3030
</Link>
3131

3232
<Link
3333
className="hover:bg-gray-100 rounded-md px-3 py-2 text-sm font-medium uppercase"
34-
href="/"
34+
href="https://sentry.io/signup/"
3535
>
3636
Get started
3737
</Link>

0 commit comments

Comments
 (0)