Skip to content

Commit

Permalink
Fix horizontal scroll on landing page + add meta viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
jayantbh committed Dec 11, 2023
1 parent 5e5efe1 commit 7c92400
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { Html, Head, Main, NextScript } from 'next/document';
export default function Document() {
return (
<Html lang="en">
<Head />
<Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
</Head>
<body>
<Main />
<NextScript />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Home() {
<div className="justify-center w-full flex flex-col gap-4 box-border">
<LogoSvg
style={{
position: 'absolute',
position: 'fixed',
right: '-150px',
bottom: '-200px',
opacity: 0.3
Expand Down

0 comments on commit 7c92400

Please sign in to comment.