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 site width #1328

Closed
wants to merge 16 commits into from
Closed
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @returns {JSX.Element} - Rendered component
*/
const Footer = () => (
<footer className="bg-white mb-4 hidden md:block px-4">
<footer className="bg-white mb-2 hidden md:block px-4 mt-[5rem]">
<div className="container flex md:flex-wrap flex-col md:flex-row items-center justify-between px-6 py-3 mx-auto mt-0 md:min-w-96 border border-gray-200 rounded">
<div className="text-gray-600 mx-auto">
&copy; {new Date().getFullYear()} Daniel / w3bdesign
Expand Down
2 changes: 1 addition & 1 deletion src/components/Index/Hero.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const Hero = () => (
<section
id="hero"
className="flex w-full mx-auto bg-right bg-cover mt-14 md:pt-0 md:items-center bg-hero-background h-[24rem]"
className="flex w-full mx-auto bg-right bg-cover mt-14 md:pt-0 md:items-center bg-hero-background h-[24rem] lg:max-w-[1490px]"
>
<div className="container mx-auto">
<div className="flex flex-col items-start justify-center w-full px-6 tracking-wide lg:w-1/2">
Expand Down
18 changes: 10 additions & 8 deletions src/components/Layout/Layout.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ const Layout = ({ children, title }: ILayoutProps) => {
}, [refetch]);

return (
<div className="flex flex-col min-h-screen container min-w-[140vw] md:min-w-[700px] md:px-[2.5rem] md:py-[1rem]">
<Header title={title} />
<PageTitle title={title} />
<main className="flex-grow">
{children}
</main>
<Footer />
<Stickynav />
<div className="flex flex-col min-h-screen w-full mx-auto">
<div className="container min-w-[140vw] sm:min-w-[100vw] md:px-4 lg:px-6 py-2 lg:max-w-[1600px] mx-auto">
<Header title={title} />
<PageTitle title={title} />
<main className="flex-grow">
{children}
</main>
<Footer />
<Stickynav />
</div>
</div>
);
};
Expand Down
Loading