Skip to content

Commit

Permalink
hidefooter for landinglayout
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Oct 25, 2023
1 parent 3ad3518 commit 2fc889f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kerberos-io/ui",
"version": "1.76.0",
"version": "1.77.0",
"main": "lib/index.js",
"repository": "https://github.com/kerberos-io/ui",
"author": "Kerberos.io <[email protected]>",
Expand Down
8 changes: 8 additions & 0 deletions src/components/LandingLayout/LandingLayout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ export const WithSignupCard = () =><LandingLayout title="Kerberos Hub" version="
</div>
</LandingLayout>



export const WithSignupCardWithoutFooter = () =><LandingLayout title="Kerberos Hub" version="v3.0" description="Control panel and management for all Kerberos services" hideFooter={true}>
<div style={{display:"flex",justifyContent:"center",marginBottom:"120px"}}>
<SignupCard/>
</div>
</LandingLayout>

11 changes: 7 additions & 4 deletions src/components/LandingLayout/LandingLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,16 @@ export interface LandingLayoutProps{
children:any,
title?:string,
version?:string,
description?:string
description?:string,
hideFooter?:boolean
}
const LandingLayout = ({
children,
title,
version,
description}:LandingLayoutProps) =>
description,
hideFooter
}:LandingLayoutProps) =>
<div id="landing-layout">
<Gradient/>

Expand All @@ -105,7 +108,7 @@ const LandingLayout = ({
</header>

{children}
<Footer>
{ !hideFooter && <Footer>
<FooterCopyright {...Copyright} />
<FooterList
title="Products"
Expand All @@ -119,6 +122,6 @@ const LandingLayout = ({
title="Company"
items={Column4}
/>
</Footer>
</Footer> }
</div>
export default LandingLayout

0 comments on commit 2fc889f

Please sign in to comment.