-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
import { Fragment } from 'react'; | ||
import React from 'react'; | ||
import { useComponents } from '@wq/react'; | ||
|
||
export default Fragment; | ||
export default function Footer() { | ||
const { Typography, FooterContent } = useComponents(); | ||
|
||
return ( | ||
<div | ||
style={{ | ||
height: '3em', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
backgroundColor: 'white', | ||
borderTop: '1px solid rgba(0, 0, 0, 0.12)' | ||
}} | ||
> | ||
<Typography variant="caption" color="textSecondary"> | ||
<FooterContent /> | ||
</Typography> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import { useComponents } from '@wq/react'; | ||
|
||
export default function FooterContent() { | ||
const { Link } = useComponents(); | ||
return ( | ||
<> | ||
Powered by{' '} | ||
<Link component="a" href="https://wq.io/" target="_blank"> | ||
wq | ||
</Link> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Fragment } from 'react'; | ||
|
||
export default Fragment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import React from 'react'; | ||
import { useComponents } from '../hooks'; | ||
|
||
export default function Footer() { | ||
return <></>; | ||
const { FooterContent } = useComponents(); | ||
return ( | ||
<center> | ||
<small> | ||
<FooterContent /> | ||
</small> | ||
</center> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
export default function FooterContent() { | ||
return ( | ||
<> | ||
Powered by{' '} | ||
<a href="https://wq.io/"> | ||
<b>wq</b> | ||
</a> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters