Skip to content

Commit

Permalink
Tweak mobile layout (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
criccomini authored Aug 11, 2024
1 parent cdf074c commit deba482
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
@tailwind components;
@tailwind utilities;

html, body {
width: 100%;
overflow-x: hidden;
}

/* You can override the default Infima variables here. */
:root {
--ifm-heading-font-family: Alata, 'Alata';
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Rive from "@rive-app/react-canvas";
function HomepageHeader() {
return (
<header className={clsx('hero hero--primary rounded-b-[50px]', styles.heroBanner)}>
<div className="max-w-[80%] lg:w-6xl mx-auto">
<div className="md:max-w-[80%] lg:w-6xl mx-auto">
<div className={"grid lg:grid-cols-2 gap-8 text-left"}>
<div className={'flex flex-col'}>
<Heading as="h1" className="text-6xl font-medium">
Expand Down Expand Up @@ -63,7 +63,7 @@ function GetStarted() {
</a>
</div>
</div>
<div className={'bg-slate-600 rounded-2xl font-mono text-sm w-full'}>
<div className={'bg-slate-600 rounded-2xl font-mono text-sm w-full overflow-x-auto'}>
<div className={'border-solid border-0 border-white border-b p-2 text-right'}>
<span className={'bg-black rounded-lg py-1 px-2'}>Cargo.toml</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Footer(): JSX.Element | null {
Copyright © {new Date().getFullYear()} SlateDB Authors. All rights reserved.
</div>
</div>
<div>
<div className={'pl-5'}>
<img src={'/img/logo-full.svg'} height={30} alt={'slateDB'}/>
</div>
</div>
Expand Down

0 comments on commit deba482

Please sign in to comment.