Skip to content
Snippets Groups Projects
Verified Commit 66a2aab8 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: new footer component

parent 37fa92b3
No related branches found
No related tags found
No related merge requests found
Pipeline #1289 passed
...@@ -183,31 +183,6 @@ p { ...@@ -183,31 +183,6 @@ p {
display: block; display: block;
} }
.footer {
bottom: 0px;
height: 40px;
left: 0px;
line-height: 40px;
padding: 0px 0px 0px 0px;
position: fixed;
text-align: center;
width: 100%;
}
.footer-background {
bottom: 0px;
filter: blur(1.0rem);
-o-filter: blur(1.0rem);
-ms-filter: blur(1.0rem);
-moz-filter: blur(1.0rem);
-khtml-filter: blur(1.0rem);
-webkit-filter: blur(1.0rem);
height: 40px;
left: 0px;
position: fixed;
width: 100%;
}
.toast-container { .toast-container {
background-color: black; background-color: black;
height: 0px; height: 0px;
......
...@@ -155,10 +155,6 @@ ...@@ -155,10 +155,6 @@
</div> </div>
</div> </div>
</div> </div>
<div id="footer-background" class="footer-background"></div>
<div id="footer" class="footer">
Built with ❤️ by <a href="https://joao.me" target="_blank">João Magalhães</a>
</div>
<script type="module" src="index.ts"></script> <script type="module" src="index.ts"></script>
</body> </body>
......
...@@ -5,6 +5,7 @@ import { ...@@ -5,6 +5,7 @@ import {
Button, Button,
ButtonIncrement, ButtonIncrement,
ButtonSwitch, ButtonSwitch,
Footer,
Info, Info,
Link, Link,
Pair, Pair,
...@@ -22,6 +23,9 @@ export const App = () => { ...@@ -22,6 +23,9 @@ export const App = () => {
const onClick = () => setCount(count + 1); const onClick = () => setCount(count + 1);
return ( return (
<> <>
<Footer>
Built with ❤️ by <a href="https://joao.me" target="_blank">João Magalhães</a>
</Footer>
<PanelSplit left={<div>This is the left panel</div>}> <PanelSplit left={<div>This is the left panel</div>}>
<Title <Title
text="Boytacean" text="Boytacean"
......
.footer {
bottom: 0px;
height: 40px;
left: 0px;
line-height: 40px;
padding: 0px 0px 0px 0px;
position: fixed;
text-align: center;
width: 100%;
}
.footer > .footer-background {
filter: blur(1.0rem);
-o-filter: blur(1.0rem);
-ms-filter: blur(1.0rem);
-moz-filter: blur(1.0rem);
-khtml-filter: blur(1.0rem);
-webkit-filter: blur(1.0rem);
}
import React, { FC, ReactNode } from "react";
import "./footer.css";
type FooterProps = {
children: ReactNode;
style?: string[];
};
export const Footer: FC<FooterProps> = ({ children, style = [] }) => {
const classes = () => ["footer", ...style].join(" ");
return <div className={classes()}>
<div className="footer-background"></div>
<div className="footer-contents">{children}</div>
</div>
};
export default Footer;
export * from "./button/button"; export * from "./button/button";
export * from "./button-increment/button-increment"; export * from "./button-increment/button-increment";
export * from "./button-switch/button-switch"; export * from "./button-switch/button-switch";
export * from "./footer/footer";
export * from "./info/info"; export * from "./info/info";
export * from "./link/link"; export * from "./link/link";
export * from "./pair/pair"; export * from "./pair/pair";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment