footer style fix

This commit is contained in:
Igor Lobanov 2022-09-29 13:15:59 +02:00
parent f7ebc383f2
commit fa47ea7843
3 changed files with 8 additions and 8 deletions

View File

@ -3,21 +3,25 @@ import { Header } from '../Nav/Header'
import { Footer } from '../Discours/Footer'
import '../../styles/app.scss'
import { Show } from 'solid-js'
type Props = {
type MainLayoutProps = {
headerTitle?: string
children: JSX.Element
isHeaderFixed?: boolean
hideFooter?: boolean
}
export const MainLayout = (props: Props) => {
export const MainLayout = (props: MainLayoutProps) => {
const isHeaderFixed = props.isHeaderFixed !== undefined ? props.isHeaderFixed : true
return (
<>
<Header title={props.headerTitle} isHeaderFixed={isHeaderFixed} />
<main class="main-content">{props.children}</main>
<Footer />
<Show when={props.hideFooter !== true}>
<Footer />
</Show>
</>
)
}

View File

@ -3,7 +3,7 @@ import { MainLayout } from '../Layouts/MainLayout'
export const FourOuFourPage = () => {
return (
<MainLayout isHeaderFixed={false}>
<MainLayout isHeaderFixed={false} hideFooter={true}>
<FourOuFourView />
</MainLayout>
)

View File

@ -2,10 +2,6 @@ header {
position: absolute;
}
footer {
display: none;
}
.main-logo {
height: 80px !important;
}