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 { Footer } from '../Discours/Footer'
import '../../styles/app.scss' import '../../styles/app.scss'
import { Show } from 'solid-js'
type Props = { type MainLayoutProps = {
headerTitle?: string headerTitle?: string
children: JSX.Element children: JSX.Element
isHeaderFixed?: boolean isHeaderFixed?: boolean
hideFooter?: boolean
} }
export const MainLayout = (props: Props) => { export const MainLayout = (props: MainLayoutProps) => {
const isHeaderFixed = props.isHeaderFixed !== undefined ? props.isHeaderFixed : true const isHeaderFixed = props.isHeaderFixed !== undefined ? props.isHeaderFixed : true
return ( return (
<> <>
<Header title={props.headerTitle} isHeaderFixed={isHeaderFixed} /> <Header title={props.headerTitle} isHeaderFixed={isHeaderFixed} />
<main class="main-content">{props.children}</main> <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 = () => { export const FourOuFourPage = () => {
return ( return (
<MainLayout isHeaderFixed={false}> <MainLayout isHeaderFixed={false} hideFooter={true}>
<FourOuFourView /> <FourOuFourView />
</MainLayout> </MainLayout>
) )

View File

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