Skip to content

Commit

Permalink
Added variable footer margin
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Lucas committed Apr 11, 2024
1 parent bf2bbb9 commit be60b72
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import {Link} from "react-router-dom";

export function Footer() {
return <footer className="pt-3 mt-4">

type HeightUnit = 'px' | 'rem' | 'vh';
type HeightProp = `${number}${HeightUnit}` | "0";

interface Props {
margin?: HeightProp;
}

export function Footer({margin = "0"}: Props) {
return <footer style={{marginTop: margin}}>
<hr className="my-0 w-100"/>

<div style={{padding: "2.75rem 0"}}>
Expand Down

0 comments on commit be60b72

Please sign in to comment.